gps.log.out
Class GPSNMEAFile

java.lang.Object
  extended by gps.log.out.GPSFile
      extended by gps.log.out.GPSNMEAFile
All Implemented Interfaces:
GPSFileConverterInterface, GPSFileConfInterface, GPSFileInterface

public final class GPSNMEAFile
extends GPSFile

Class to write a NMEA file.

Author:
Mario De Weerd

Field Summary
 
Fields inherited from class gps.log.out.GPSFile
FILE_SPLIT_NONE, FILE_SPLIT_ONE_FILE_PER_DAY, FILE_SPLIT_ONE_FILE_PER_TRACK
 
Constructor Summary
GPSNMEAFile()
           
 
Method Summary
 void initialiseFile(BT747Path baseName, java.lang.String extension, int fileSeparationFreq)
          This function has to be called at some time to initialize the file conversion.
static java.lang.String toGGA(GPSRecord r)
           
static java.lang.String toRMC(GPSRecord r)
          Return RMC string for record.
 void writeRecord(GPSRecord r)
          Called for any new position.
 
Methods inherited from class gps.log.out.GPSFile
addLogRecord, cachedRecordIsNeeded, finaliseFile, getBadTrackColor, getErrorInfo, getFilesCreated, getGoodTrackColor, getMaxDiff, getNbrFilesCreated, getParamObject, getUserWayPointList, isAddLogConditionInfo, isOverridePreviousTag, isRecordNbrInLogs, needPassToFindFieldsActivatedInLog, nextPass, setActiveFileFields, setAddLogConditionInfo, setBadTrackColor, setFilenameBuilder, setFilters, setGoodTrackColor, setImperial, setIncludeTrkComment, setIncludeTrkName, setMaxDiff, setOutputFields, setOverridePreviousTag, setParamObject, setRecordNbrInLogs, setTimeOffset, setTrackSepTime, setUserWayPointList, setWayPointTimeCorrection, writeLogFmtHeader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPSNMEAFile

public GPSNMEAFile()
Method Detail

initialiseFile

public void initialiseFile(BT747Path baseName,
                           java.lang.String extension,
                           int fileSeparationFreq)
Description copied from class: GPSFile
This function has to be called at some time to initialize the file conversion. Other parameters can be set through other methods.

Specified by:
initialiseFile in interface GPSFileConfInterface
Overrides:
initialiseFile in class GPSFile
Parameters:
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.
See Also:
AppSettings.SPLIT_ONE_FILE, AppSettings.SPLIT_ONE_FILE_PER_DAY, AppSettings.SPLIT_ONE_FILE_PER_TRACK

writeRecord

public final void writeRecord(GPSRecord r)
Description copied from class: GPSFile
Called for any new position. This method is called by the input analysis class and should be extended for the output format. The extension must call super(). That will make sure that the appropriate files are opened, and the GPSFile.t property set.

Overrides:
writeRecord in class GPSFile
Parameters:
r - information regarding the position.

toRMC

public static final java.lang.String toRMC(GPSRecord r)
Return RMC string for record.

Parameters:
r - Record to use.
Returns:
RMC sentence.

toGGA

public static final java.lang.String toGGA(GPSRecord r)