public class NMEAControl extends PamControlledUnit implements PamSettings
Controller for NMEA data acquisition into the Pamguard framework
The controller contains two processes, each of which produces a single output PamDataBlock.
The first process adds all NMEA strings to it's output block in their original format
The second process takes only the GPRMC data and adds them to a separate data block. the map should subscribe to this second process and tell it how much data it wished to keep using the FirstRequiredSample method of the PamObserver interface.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
nmeaUnitType |
Constructor and Description |
---|
NMEAControl(java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses
|
javax.swing.JMenuItem |
createNMEAMenu(java.awt.Frame parentFrame) |
NMEADataBlock |
getNMEADataBLock()
Get the NMEA DataBlock.
|
NMEAParameters |
getNmeaParameters() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
void |
pamClose()
Called when PAMGUARD is finally closing down so that a module
may free any remaining resources (e.g.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setupControlledUnit()
called for all PamControlledUnits after all units have been created.
|
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, canPlayViewerSound, createDisplayMenu, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, notifyModelChanged, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
public static final java.lang.String nmeaUnitType
public javax.swing.JMenuItem createNMEAMenu(java.awt.Frame parentFrame)
public NMEAParameters getNmeaParameters()
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public void setupControlledUnit()
PamControlledUnit
setupControlledUnit
in class PamControlledUnit
public javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu
in class PamControlledUnit
parentFrame
- The owner frame of the menuNote that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void pamClose()
PamControlledUnit
pamClose
in class PamControlledUnit
public NMEADataBlock getNMEADataBLock()