Package GPS
Class ProcessNmeaData
java.lang.Object
PamguardMVC.PamProcess
GPS.ProcessNmeaData
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
- Author:
 - Doug Gillespie PamProcess that subscribed to the AcquireNmeaData processes output data block, selects just the interesting stuff in the GPRMC string and creates a new data block with the string data unpacked into more usable doubles.
 
- 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Method Summary
Modifier and TypeMethodDescriptionvoidClears all data from all output data blocks of this process.longfirstRequiredTime(PamObservable o, Object arg) voidnewData(PamObservable o, PamDataUnit pamData) voidvoidnotifyModelChanged(int changeType) voidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).voidpamStop()Stops the process.voidsetSampleRate(float sampleRate, boolean notify) New sample rateprotected booleanwantDataUnit(GpsDataUnit newUnit) Decide if we want this unit or not based on the gpsPArameters and what the time, angle change and speed change are since the last unit.Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData 
- 
Method Details
- 
firstRequiredTime
 - 
notifyModelChanged
public void notifyModelChanged(int changeType) - Overrides:
 notifyModelChangedin classPamProcess
 - 
noteNewSettings
public void noteNewSettings()- Specified by:
 noteNewSettingsin interfacePamObserver- Overrides:
 noteNewSettingsin classPamProcess
 - 
newData
- Overrides:
 newDatain classPamProcess
 - 
wantDataUnit
Decide if we want this unit or not based on the gpsPArameters and what the time, angle change and speed change are since the last unit.- Returns:
 - true if GPS data should be stored / used.
 
 - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Overrides:
 setSampleRatein classPamProcess- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
pamStart
public void pamStart()Description copied from class:PamProcessCalled for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
 pamStartin classPamProcess
 - 
pamStop
public void pamStop()Description copied from class:PamProcessStops the process.- Specified by:
 pamStopin classPamProcess
 - 
clearOldData
public void clearOldData()Description copied from class:PamProcessClears all data from all output data blocks of this process.
This gets called from the main controller at the start of operations. Can be overridden in some classes which don't want to delete existing data or they can set the clearAtStart flag in any data block.- Overrides:
 clearOldDatain classPamProcess
 - 
getGpsController
 - 
getGpsDataBlock
 - 
getGpsLogger
 
 -