AIS
Class AISLogger

java.lang.Object
  extended by generalDatabase.SQLLogging
      extended by AIS.AISLogger

public class AISLogger
extends SQLLogging


Field Summary
private  AISDataBlock aisDataBlock
           
private  ProcessAISData aisProcess
           
private static int AISRAWLENGTH
           
protected  PamTableItem callSign
           
protected  PamTableItem courseOverGround
           
protected  PamTableItem dataString
           
protected  PamTableItem destination
           
protected  PamTableItem draft
           
protected  PamTableItem eta
           
protected  PamTableItem imoNumber
           
private  int lastMMONumber
           
private  long lastTime
           
protected  PamTableItem latitude
           
protected  PamTableItem longitude
           
protected  PamTableItem navigationStatus
           
protected  PamTableItem rateOfTurn
           
protected  PamTableItem shipName
           
protected  PamTableItem shipType
           
protected  PamTableItem speedOverGround
           
private  PamTableDefinition tableDef
           
protected  PamTableItem trueHeading
           
 
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
 
Constructor Summary
AISLogger(AISDataBlock aisDataBlock, ProcessAISData aisProcess)
           
 
Method Summary
protected  boolean createDataUnit(long timeMilliseconds, int databaseIndex)
          Turn the data, which have been transferred back into the PamTableItems back into a useable data unit and put it into the datablock.
 void setTableData(PamDataUnit pamDataUnit)
          Callback function when new data are created that allows the user to set the data for each column.
 
Methods inherited from class generalDatabase.SQLLogging
createInClause, createViewResultSet, doExtraChecks, fillTableData, finalize, findLogger, getIdListUpdatClause, getLastTime, getPamDataBlock, getTableDefinition, getTimesUpdateClause, getUpdatePolicy, getViewerCursorFinder, getViewerLoadClause, getViewerUpdateClause, isCanView, isLoadViewData, loadViewData, loadViewerData, logData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aisProcess

private ProcessAISData aisProcess

tableDef

private PamTableDefinition tableDef

aisDataBlock

private AISDataBlock aisDataBlock

imoNumber

protected PamTableItem imoNumber

callSign

protected PamTableItem callSign

shipName

protected PamTableItem shipName

shipType

protected PamTableItem shipType

eta

protected PamTableItem eta

draft

protected PamTableItem draft

destination

protected PamTableItem destination

navigationStatus

protected PamTableItem navigationStatus

rateOfTurn

protected PamTableItem rateOfTurn

speedOverGround

protected PamTableItem speedOverGround

longitude

protected PamTableItem longitude

latitude

protected PamTableItem latitude

courseOverGround

protected PamTableItem courseOverGround

trueHeading

protected PamTableItem trueHeading

dataString

protected PamTableItem dataString

AISRAWLENGTH

private static final int AISRAWLENGTH
See Also:
Constant Field Values

lastMMONumber

private int lastMMONumber

lastTime

private long lastTime
Constructor Detail

AISLogger

public AISLogger(AISDataBlock aisDataBlock,
                 ProcessAISData aisProcess)
Method Detail

setTableData

public void setTableData(PamDataUnit pamDataUnit)
Description copied from class: SQLLogging
Callback function when new data are created that allows the user to set the data for each column. Columns that have data which can be filled automatically (counters, primary keys and columns cross referenced to data in other tables) are filled automatically in fillTableData()

Specified by:
setTableData in class SQLLogging

createDataUnit

protected boolean createDataUnit(long timeMilliseconds,
                                 int databaseIndex)
Description copied from class: SQLLogging
Turn the data, which have been transferred back into the PamTableItems back into a useable data unit and put it into the datablock.

Overrides:
createDataUnit in class SQLLogging
Returns:
true if a data unit was sucessfully created