|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.log.out.GPSFile
public abstract class GPSFile
| Field Summary | |
|---|---|
static int |
FILE_SPLIT_NONE
|
static int |
FILE_SPLIT_ONE_FILE_PER_DAY
|
static int |
FILE_SPLIT_ONE_FILE_PER_TRACK
|
| Constructor Summary | |
|---|---|
GPSFile()
|
|
| Method Summary | |
|---|---|
void |
addLogRecord(GPSRecord r)
A record is added from the input log. |
boolean |
cachedRecordIsNeeded(GPSRecord r)
|
void |
finaliseFile()
Method called when all parsing is finished and the last file has to be closed. |
java.lang.String |
getBadTrackColor()
|
java.lang.String |
getErrorInfo()
|
BT747HashSet |
getFilesCreated()
|
java.lang.String |
getGoodTrackColor()
|
int |
getMaxDiff()
|
int |
getNbrFilesCreated()
|
GPSConversionParameters |
getParamObject()
|
GPSRecord[] |
getUserWayPointList()
|
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 |
isAddLogConditionInfo()
|
boolean |
isOverridePreviousTag()
|
boolean |
isRecordNbrInLogs()
|
boolean |
needPassToFindFieldsActivatedInLog()
|
boolean |
nextPass()
Called when the input file has been parsed. |
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)
Called every time the log format changes so that the appropriate header information can be written to the output files. |
void |
writeRecord(GPSRecord r)
Called for any new position. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FILE_SPLIT_NONE
public static final int FILE_SPLIT_ONE_FILE_PER_DAY
public static final int FILE_SPLIT_ONE_FILE_PER_TRACK
| Constructor Detail |
|---|
public GPSFile()
| Method Detail |
|---|
public void initialiseFile(BT747Path baseName,
java.lang.String extension,
int fileSeparationFreq)
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 setTrackSepTime(int time)
GPSFileConfInterface
setTrackSepTime in interface GPSFileConfInterfacetime - Seconds of unavailable positions require before deciding to
hava a new track.public final void setActiveFileFields(GPSRecord activeFileFieldsFormat)
GPSFileConfInterface
setActiveFileFields in interface GPSFileConverterInterfacesetActiveFileFields in interface GPSFileConfInterfacepublic final void setOutputFields(GPSRecord selectedOutputFields)
GPSFileConfInterface
setOutputFields in interface GPSFileConfInterfacepublic void writeLogFmtHeader(GPSRecord f)
activeFields so 'super()' should be called by the extending
class that must add a hook to this method to write the intermediate
header (if needed for the output format).
writeLogFmtHeader in interface GPSFileConverterInterfacef - public final void setFilters(GPSFilter[] ourFilters)
GPSFileConfInterface
setFilters in interface GPSFileConfInterfaceourFilters - Track point and way point filters.public final void setImperial(boolean useImperial)
GPSFileConfInterface
setImperial in interface GPSFileConfInterfaceuseImperial - when true, use imperial units.public final boolean cachedRecordIsNeeded(GPSRecord r)
public void setUserWayPointList(GPSRecord[] list)
GPSFileConfInterface
setUserWayPointList in interface GPSFileConfInterfacepublic GPSRecord[] getUserWayPointList()
public void setWayPointTimeCorrection(int seconds)
setWayPointTimeCorrection in interface GPSFileConfInterfacepublic void addLogRecord(GPSRecord r)
This is not to be extended.
The provided record should no longer be referenced in the caller.
It is supposed to be unique.
addLogRecord in interface GPSFileConverterInterfacer - public void writeRecord(GPSRecord r)
t property set.
r - information regarding the position.public void finaliseFile()
finaliseFile in interface GPSFileConverterInterfacepublic boolean nextPass()
nextPass in interface GPSFileConverterInterfacepublic boolean needPassToFindFieldsActivatedInLog()
needPassToFindFieldsActivatedInLog in interface GPSFileConverterInterfacepublic final java.lang.String getBadTrackColor()
public final void setBadTrackColor(java.lang.String badTrackColor)
setBadTrackColor in interface GPSFileConfInterfacebadTrackColor - The badTrackColor to set.public final java.lang.String getGoodTrackColor()
public final void setGoodTrackColor(java.lang.String goodTrackColor)
setGoodTrackColor in interface GPSFileConfInterfacegoodTrackColor - The goodTrackColor to set.public final int getNbrFilesCreated()
getNbrFilesCreated in interface GPSFileConverterInterfacepublic final BT747HashSet getFilesCreated()
getFilesCreated in interface GPSFileConverterInterfacepublic final boolean isRecordNbrInLogs()
public final void setRecordNbrInLogs(boolean recordNbrInLogs)
setRecordNbrInLogs in interface GPSFileConfInterfacerecordNbrInLogs - The recordNbrInLogs to set.public final boolean isAddLogConditionInfo()
public final void setAddLogConditionInfo(boolean addLogConditionInfo)
setAddLogConditionInfo in interface GPSFileConfInterfacepublic final java.lang.String getErrorInfo()
public final void setIncludeTrkComment(boolean isTrkComment)
setIncludeTrkComment in interface GPSFileConfInterfacepublic final void setIncludeTrkName(boolean isIncludeTrkName)
setIncludeTrkName in interface GPSFileConfInterfacepublic final void setFilenameBuilder(BT747FileName filenameBuilder)
setFilenameBuilder in interface GPSFileConfInterfacepublic final void setTimeOffset(int offset)
GPSFileConfInterface
setTimeOffset in interface GPSFileConfInterfaceoffset - The time offset in seconds.public final int getMaxDiff()
public final void setMaxDiff(int maxDiff)
setMaxDiff in interface GPSFileConfInterfacemaxDiff - the maxDiff to setpublic final boolean isOverridePreviousTag()
public final void setOverridePreviousTag(boolean overridePreviousTag)
setOverridePreviousTag in interface GPSFileConfInterfaceoverridePreviousTag - the overridePreviousTag to setpublic final GPSConversionParameters getParamObject()
getParamObject in interface GPSFileConfInterfacepublic final void setParamObject(GPSConversionParameters paramObject)
setParamObject in interface GPSFileConfInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||