public class SMLPingerControl extends PamControlledUnit implements PamSettings
Constructor and Description |
---|
SMLPingerControl(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
|
SMLPingerParams |
getPingerParams() |
SMLPingerProcess |
getPingerProcess() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
PingerSidePanel |
getSidePanel()
Gets a reference to a small panel to be displayed along the
left hand edge of the main tab panel.
|
int |
getVerboseLevel() |
void |
newStatusData(SMLStatusData status)
Called whenever new status data are read from the serial port by pingerPorcess
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
void |
pingerSettings(java.awt.Frame parentFrame) |
void |
portError()
Report a port error
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setRunMode(int runMode)
Called from the side panel when a new run mode is selected
|
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, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, gotoTab, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
public PingerSidePanel getSidePanel()
PamControlledUnit
It is possible for a PamControlled unit to have a side panel without having a pamTabPanel.
getSidePanel
in class PamControlledUnit
PamSidePanel
,
PamTabPanel
public SMLPingerProcess getPingerProcess()
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 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 pingerSettings(java.awt.Frame parentFrame)
public void newStatusData(SMLStatusData status)
status
- status datapublic SMLPingerParams getPingerParams()
public void setRunMode(int runMode)
runMode
- (0 - 4 see SMLPingerParamspublic void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic void portError()
public int getVerboseLevel()
getVerboseLevel
in class PamControlledUnit