AirgunDisplay
Class AirgunProcess

java.lang.Object
  extended by PamguardMVC.PamProcess
      extended by AirgunDisplay.AirgunProcess
All Implemented Interfaces:
Annotator, PamObserver

public class AirgunProcess
extends PamProcess


Field Summary
(package private)  AirgunControl airgunControl
           
(package private)  AISDataBlock aisDataBlock
           
(package private)  PamDataBlock<GpsDataUnit> gpsDataBlock
           
(package private)  PamDataBlock<AirgunDataUnit> outputDataBlock
           
 
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, processName, sampleRate
 
Constructor Summary
AirgunProcess(AirgunControl airgunControl)
           
 
Method Summary
private  void createAirgunData(GpsData gpsData)
           
 void destroyProcess()
          Called from the PamControlled unit when a PamControlled unit is removed from the model.
 void findSourceData()
           
 void newData(PamObservable o, PamDataUnit arg)
           
protected  void newViewTime()
          Called when view times change so that the display can update it's location based on the new time.
 void noteNewSettings()
           
 void pamStart()
          Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway.
 void pamStop()
          Stops the process.
 void prepareProcess()
          Called for each process before any of them receive the PamStart command
 void updateData(PamObservable o, PamDataUnit arg)
           
private  void useAisData(PamDataBlock dataBlock, AISDataUnit aisDataUnit)
           
private  void useAISPositionReport(AISDataUnit aisDataUnit, AISPositionReport positionReport)
           
private  void useData(PamObservable o, PamDataUnit arg)
          AIS data are generally updated rather than created new, so use newData and updateData in the same way,
private  void useGpsData(PamDataBlock dataBlock, GpsDataUnit gpsDataUnit)
           
 
Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, fillXMLElement, fillXMLParameters, getAncestorDataBlock, getAnnotation, getBackendProcess, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, notifyModelChanged, relMillisecondsToSamples, relSamplesToMilliseconds, removeObservable, removeOutputDatablock, saveViewerData, setBackendProcess, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setSampleRate, setupProcess, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

airgunControl

AirgunControl airgunControl

gpsDataBlock

PamDataBlock<GpsDataUnit> gpsDataBlock

aisDataBlock

AISDataBlock aisDataBlock

outputDataBlock

PamDataBlock<AirgunDataUnit> outputDataBlock
Constructor Detail

AirgunProcess

public AirgunProcess(AirgunControl airgunControl)
Method Detail

destroyProcess

public void destroyProcess()
Description copied from class: PamProcess
Called from the PamControlled unit when a PamControlled unit is removed from the model. Offers an opportunity to disconnect individual processed from the rest of the model. May be necessary to override to clean up some processes.

Overrides:
destroyProcess in class PamProcess

updateData

public void updateData(PamObservable o,
                       PamDataUnit arg)
Overrides:
updateData in class PamProcess

newData

public void newData(PamObservable o,
                    PamDataUnit arg)
Overrides:
newData in class PamProcess

useData

private void useData(PamObservable o,
                     PamDataUnit arg)
AIS data are generally updated rather than created new, so use newData and updateData in the same way,

Parameters:
o - PamObservable sent to updateData or newData
arg - PamDataUnit sent to updateData or newData

useGpsData

private void useGpsData(PamDataBlock dataBlock,
                        GpsDataUnit gpsDataUnit)

useAisData

private void useAisData(PamDataBlock dataBlock,
                        AISDataUnit aisDataUnit)

useAISPositionReport

private void useAISPositionReport(AISDataUnit aisDataUnit,
                                  AISPositionReport positionReport)

createAirgunData

private void createAirgunData(GpsData gpsData)

noteNewSettings

public void noteNewSettings()
Specified by:
noteNewSettings in interface PamObserver
Overrides:
noteNewSettings in class PamProcess

findSourceData

public void findSourceData()

newViewTime

protected void newViewTime()
Called when view times change so that the display can update it's location based on the new time.


prepareProcess

public void prepareProcess()
Description copied from class: PamProcess
Called for each process before any of them receive the PamStart command

Overrides:
prepareProcess in class PamProcess

pamStart

public void pamStart()
Description copied from class: PamProcess
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway.

Specified by:
pamStart in class PamProcess

pamStop

public void pamStop()
Description copied from class: PamProcess
Stops the process.

Specified by:
pamStop in class PamProcess