|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbt747.j2se_view.GpsFileProxyTemplate
public class GpsFileProxyTemplate
Pure template to gpsFile class
| Constructor Summary | |
|---|---|
GpsFileProxyTemplate(GPSFileInterface gpsFile)
|
|
| Method Summary | |
|---|---|
void |
addLogRecord(GPSRecord r)
|
void |
finaliseFile()
|
BT747HashSet |
getFilesCreated()
|
int |
getNbrFilesCreated()
|
GPSConversionParameters |
getParamObject()
|
void |
initialiseFile(BT747Path baseName,
java.lang.String extension,
int fileSeparationFreq)
This function has to be called at some time to initialize the file conversion. |
boolean |
needPassToFindFieldsActivatedInLog()
|
boolean |
nextPass()
|
void |
setActiveFileFields(GPSRecord activeFileFieldsFormat)
Called to set the fields that are active in the current input. |
void |
setAddLogConditionInfo(boolean addLogConditionInfo)
|
void |
setBadTrackColor(java.lang.String badTrackColor)
|
void |
setFilenameBuilder(BT747FileName filenameBuilder)
|
void |
setFilters(GPSFilter[] ourFilters)
Set the track point and way point filters. |
void |
setGoodTrackColor(java.lang.String goodTrackColor)
|
void |
setImperial(boolean useImperial)
Indicate whether Imperial units (miles, knots, mph) should be used. |
void |
setIncludeTrkComment(boolean isTrkComment)
|
void |
setIncludeTrkName(boolean isIncludeTrkName)
|
void |
setMaxDiff(int maxDiff)
|
void |
setOutputFields(GPSRecord selectedOutputFields)
Set the fields that should be written to the output. |
void |
setOverridePreviousTag(boolean overridePreviousTag)
|
void |
setParamObject(GPSConversionParameters paramObject)
|
void |
setRecordNbrInLogs(boolean recordNbrInLogs)
|
void |
setTimeOffset(int offset)
The time offset to apply to the output records in seconds. |
void |
setTrackSepTime(int time)
Set the track separation time. |
void |
setUserWayPointList(GPSRecord[] list)
Entry must be an ordered list (UTC time). |
void |
setWayPointTimeCorrection(int seconds)
|
void |
writeLogFmtHeader(GPSRecord f)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GpsFileProxyTemplate(GPSFileInterface gpsFile)
| Method Detail |
|---|
public final void addLogRecord(GPSRecord r)
addLogRecord in interface GPSFileConverterInterfacepublic final void finaliseFile()
finaliseFile in interface GPSFileConverterInterfacepublic final int getNbrFilesCreated()
getNbrFilesCreated in interface GPSFileConverterInterfacepublic final BT747HashSet getFilesCreated()
getFilesCreated in interface GPSFileConverterInterfacepublic final boolean needPassToFindFieldsActivatedInLog()
needPassToFindFieldsActivatedInLog in interface GPSFileConverterInterfacepublic boolean nextPass()
nextPass in interface GPSFileConverterInterfacepublic final void setActiveFileFields(GPSRecord activeFileFieldsFormat)
GPSFileConfInterface
setActiveFileFields in interface GPSFileConverterInterfacesetActiveFileFields in interface GPSFileConfInterfacepublic final void writeLogFmtHeader(GPSRecord f)
writeLogFmtHeader in interface GPSFileConverterInterfacepublic final GPSConversionParameters getParamObject()
getParamObject in interface GPSFileConfInterface
public void initialiseFile(BT747Path baseName,
java.lang.String extension,
int fileSeparationFreq)
GPSFileConfInterface
initialiseFile in interface GPSFileConfInterfacebaseName - Base name of the output file. This value will be provided to
the filename builder.extension - Extension of the output file. This value will be provided to
the filename builder.fileSeparationFreq - Indicates how the file must be separated.AppSettings.SPLIT_ONE_FILE,
AppSettings.SPLIT_ONE_FILE_PER_DAY,
AppSettings.SPLIT_ONE_FILE_PER_TRACKpublic final void setAddLogConditionInfo(boolean addLogConditionInfo)
setAddLogConditionInfo in interface GPSFileConfInterfacepublic final void setBadTrackColor(java.lang.String badTrackColor)
setBadTrackColor in interface GPSFileConfInterfacebadTrackColor - The badTrackColor to set.public void setFilenameBuilder(BT747FileName filenameBuilder)
setFilenameBuilder in interface GPSFileConfInterfacepublic void setFilters(GPSFilter[] ourFilters)
GPSFileConfInterface
setFilters in interface GPSFileConfInterfaceourFilters - Track point and way point filters.public void setGoodTrackColor(java.lang.String goodTrackColor)
setGoodTrackColor in interface GPSFileConfInterfacegoodTrackColor - The goodTrackColor to set.public void setImperial(boolean useImperial)
GPSFileConfInterface
setImperial in interface GPSFileConfInterfaceuseImperial - when true, use imperial units.public void setIncludeTrkComment(boolean isTrkComment)
setIncludeTrkComment in interface GPSFileConfInterfacepublic void setIncludeTrkName(boolean isIncludeTrkName)
setIncludeTrkName in interface GPSFileConfInterfacepublic void setMaxDiff(int maxDiff)
setMaxDiff in interface GPSFileConfInterfacemaxDiff - the maxDiff to setpublic void setOutputFields(GPSRecord selectedOutputFields)
GPSFileConfInterface
setOutputFields in interface GPSFileConfInterfacepublic void setOverridePreviousTag(boolean overridePreviousTag)
setOverridePreviousTag in interface GPSFileConfInterfaceoverridePreviousTag - the overridePreviousTag to setpublic void setParamObject(GPSConversionParameters paramObject)
setParamObject in interface GPSFileConfInterfacepublic void setRecordNbrInLogs(boolean recordNbrInLogs)
setRecordNbrInLogs in interface GPSFileConfInterfacerecordNbrInLogs - The recordNbrInLogs to set.public void setTimeOffset(int offset)
GPSFileConfInterface
setTimeOffset in interface GPSFileConfInterfaceoffset - The time offset in seconds.public void setTrackSepTime(int time)
GPSFileConfInterface
setTrackSepTime in interface GPSFileConfInterfacetime - Seconds of unavailable positions require before deciding to
hava a new track.public void setUserWayPointList(GPSRecord[] list)
GPSFileConfInterface
setUserWayPointList in interface GPSFileConfInterfacepublic void setWayPointTimeCorrection(int seconds)
setWayPointTimeCorrection in interface GPSFileConfInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||