Package NMEA
Class AcquireNmeaData
java.lang.Object
PamguardMVC.PamProcess
NMEA.AcquireNmeaData
- All Implemented Interfaces:
 ActionListener,EventListener,ModuleStatusManager,PamObserver,ProcessAnnotator
- Author:
 - Doug Gillespie, Dave McLaren, Paul Redmond
         
PamProcess for NMEA data acquisition.
 
- 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) static bytecreateStringChecksum(StringBuffer nmeaString) Calculate the correct string buffer for an NMEA sentence.longfirstRequiredTime(PamObservable o, Object arg) static bytegetStringChecksum(StringBuffer nmeaString) Gets the checksum from the end of a string.voidvoidvoidvoidvoidvoidpamStart()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 ratevoidstartNmeaSource(NMEAParameters.NmeaSources sourceType) protected voidMethods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, 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, newData, notifyModelChanged, 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
- 
makeSimThread
public void makeSimThread() - 
makeUdpThread
public void makeUdpThread() - 
makeMulticastThread
public void makeMulticastThread() - 
makeSerialThread
public void makeSerialThread() - 
stopNMEASource
protected void stopNMEASource() - 
startNmeaSource
 - 
actionPerformed
- Specified by:
 actionPerformedin interfaceActionListener
 - 
createStringChecksum
Calculate the correct string buffer for an NMEA sentence.The checksum is an exclusive OR of all characters between, but not including the first ($ or !) and the * preceding the checksum
- Parameters:
 nmeaString- NMEA sentence- Returns:
 - checksum value.
 
 - 
getStringChecksum
Gets the checksum from the end of a string. The is the two characters that follow the *- Parameters:
 nmeaString- NMEA string- Returns:
 - Checksum value
 
 - 
noteNewSettings
public void noteNewSettings()- Specified by:
 noteNewSettingsin interfacePamObserver- Overrides:
 noteNewSettingsin classPamProcess
 - 
firstRequiredTime
 - 
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
 - 
getOutputDatablock
- Returns:
 - Returns the outputDatablock.
 
 - 
getStatus
- Specified by:
 getStatusin interfaceModuleStatusManager
 
 -