|
||||||||||
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 GPSFileConverterInterface
public final void finaliseFile()
finaliseFile
in interface GPSFileConverterInterface
public final int getNbrFilesCreated()
getNbrFilesCreated
in interface GPSFileConverterInterface
public final BT747HashSet getFilesCreated()
getFilesCreated
in interface GPSFileConverterInterface
public final boolean needPassToFindFieldsActivatedInLog()
needPassToFindFieldsActivatedInLog
in interface GPSFileConverterInterface
public boolean nextPass()
nextPass
in interface GPSFileConverterInterface
public final void setActiveFileFields(GPSRecord activeFileFieldsFormat)
GPSFileConfInterface
setActiveFileFields
in interface GPSFileConverterInterface
setActiveFileFields
in interface GPSFileConfInterface
public final void writeLogFmtHeader(GPSRecord f)
writeLogFmtHeader
in interface GPSFileConverterInterface
public final GPSConversionParameters getParamObject()
getParamObject
in interface GPSFileConfInterface
public void initialiseFile(BT747Path baseName, java.lang.String extension, int fileSeparationFreq)
GPSFileConfInterface
initialiseFile
in interface GPSFileConfInterface
baseName
- 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_TRACK
public final void setAddLogConditionInfo(boolean addLogConditionInfo)
setAddLogConditionInfo
in interface GPSFileConfInterface
public final void setBadTrackColor(java.lang.String badTrackColor)
setBadTrackColor
in interface GPSFileConfInterface
badTrackColor
- The badTrackColor to set.public void setFilenameBuilder(BT747FileName filenameBuilder)
setFilenameBuilder
in interface GPSFileConfInterface
public void setFilters(GPSFilter[] ourFilters)
GPSFileConfInterface
setFilters
in interface GPSFileConfInterface
ourFilters
- Track point and way point filters.public void setGoodTrackColor(java.lang.String goodTrackColor)
setGoodTrackColor
in interface GPSFileConfInterface
goodTrackColor
- The goodTrackColor to set.public void setImperial(boolean useImperial)
GPSFileConfInterface
setImperial
in interface GPSFileConfInterface
useImperial
- when true, use imperial units.public void setIncludeTrkComment(boolean isTrkComment)
setIncludeTrkComment
in interface GPSFileConfInterface
public void setIncludeTrkName(boolean isIncludeTrkName)
setIncludeTrkName
in interface GPSFileConfInterface
public void setMaxDiff(int maxDiff)
setMaxDiff
in interface GPSFileConfInterface
maxDiff
- the maxDiff to setpublic void setOutputFields(GPSRecord selectedOutputFields)
GPSFileConfInterface
setOutputFields
in interface GPSFileConfInterface
public void setOverridePreviousTag(boolean overridePreviousTag)
setOverridePreviousTag
in interface GPSFileConfInterface
overridePreviousTag
- the overridePreviousTag to setpublic void setParamObject(GPSConversionParameters paramObject)
setParamObject
in interface GPSFileConfInterface
public void setRecordNbrInLogs(boolean recordNbrInLogs)
setRecordNbrInLogs
in interface GPSFileConfInterface
recordNbrInLogs
- The recordNbrInLogs to set.public void setTimeOffset(int offset)
GPSFileConfInterface
setTimeOffset
in interface GPSFileConfInterface
offset
- The time offset in seconds.public void setTrackSepTime(int time)
GPSFileConfInterface
setTrackSepTime
in interface GPSFileConfInterface
time
- Seconds of unavailable positions require before deciding to
hava a new track.public void setUserWayPointList(GPSRecord[] list)
GPSFileConfInterface
setUserWayPointList
in interface GPSFileConfInterface
public void setWayPointTimeCorrection(int seconds)
setWayPointTimeCorrection
in interface GPSFileConfInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |