public class AcquireNmeaData extends PamProcess implements java.awt.event.ActionListener
PamProcess for NMEA data acquisition.
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
static byte |
createStringChecksum(java.lang.StringBuffer nmeaString)
Calculate the correct string buffer for an NMEA sentence.
|
long |
firstRequiredTime(PamObservable o,
java.lang.Object arg) |
NMEADataBlock |
getOutputDatablock() |
static byte |
getStringChecksum(java.lang.StringBuffer nmeaString)
Gets the checksum from the end of a string.
|
void |
makeSerialThread() |
void |
makeSimThread() |
void |
makeUdpThread() |
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 |
setSampleRate(float sampleRate,
boolean notify)
New sample rate
|
void |
startNmeaSource(NMEAParameters.NmeaSources sourceType) |
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, newData, notifyModelChanged, prepareProcess, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setupProcess, toString, update, updateData
public void makeSimThread()
public void makeUdpThread()
public void makeSerialThread()
public void startNmeaSource(NMEAParameters.NmeaSources sourceType)
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public static byte createStringChecksum(java.lang.StringBuffer nmeaString)
The checksum is an exclusive OR of all characters between, but not including the first ($ or !) and the * preceding the checksum
nmeaString
- NMEA sentencepublic static byte getStringChecksum(java.lang.StringBuffer nmeaString)
nmeaString
- NMEA stringpublic void noteNewSettings()
noteNewSettings
in interface PamObserver
noteNewSettings
in class PamProcess
public long firstRequiredTime(PamObservable o, java.lang.Object arg)
public void setSampleRate(float sampleRate, boolean notify)
PamObserver
setSampleRate
in interface PamObserver
setSampleRate
in class PamProcess
notify
- Notify other PamObservers and PamObservables in the chain.public void pamStart()
PamProcess
pamStart
in class PamProcess
public void pamStop()
PamProcess
pamStop
in class PamProcess
public NMEADataBlock getOutputDatablock()