gps.log.in
Class BT747LogConvert

java.lang.Object
  extended by gps.log.in.GPSLogConvertInterface
      extended by gps.log.in.BT747LogConvert

public final class BT747LogConvert
extends GPSLogConvertInterface

This class is used to convert the binary log to a new format. Basically this class interprets the log and creates a GPSRecord. The GPSRecord is then sent to the GPSFileConverterInterface class object to write it to the output.

Author:
Mario De Weerd

Constructor Summary
BT747LogConvert()
           
 
Method Summary
 int getType()
           
 int parseFile(java.lang.Object file, GPSFileConverterInterface gpsFile)
          Parse the binary input file and convert it.
 void setHolux(boolean holux)
           
 void setLoggerType(int loggerType)
           
 int toGPSFile(BT747Path path, GPSFileConverterInterface gpsFile)
           
 
Methods inherited from class gps.log.in.GPSLogConvertInterface
getErrorInfo, getLoggerType, setConvertWGS84ToMSL, stopConversion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BT747LogConvert

public BT747LogConvert()
Method Detail

parseFile

public final int parseFile(java.lang.Object file,
                           GPSFileConverterInterface gpsFile)
Parse the binary input file and convert it.

Specified by:
parseFile in class GPSLogConvertInterface
Parameters:
gpsFile - - object doing actual write to files
Returns:
non zero in case of err. The error text can be retrieved using GPSLogConvertInterface.getErrorInfo().

toGPSFile

public final int toGPSFile(BT747Path path,
                           GPSFileConverterInterface gpsFile)
Specified by:
toGPSFile in class GPSLogConvertInterface

setHolux

public final void setHolux(boolean holux)
Parameters:
holux - The holux to set.

setLoggerType

public final void setLoggerType(int loggerType)
Overrides:
setLoggerType in class GPSLogConvertInterface

getType

public int getType()
Specified by:
getType in class GPSLogConvertInterface
Returns:
log type such as Model.TRL_LOGTYPE.