public class NetworkSender extends PamControlledUnit implements PamSettings
Not currently configured in Java.
Constructor and Description |
---|
NetworkSender(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
|
NetworkSendParams |
getNetworkSendParams() |
int |
getQueueLength()
Get the size of the queue as a number of objects.
|
int |
getQueueSize()
Get the current queue size in kilobytes
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
PamSidePanel |
getSidePanel()
Gets a reference to a small panel to be displayed along the
left hand edge of the main tab panel.
|
java.lang.String |
getStatus() |
java.util.ArrayList<PamDataBlock> |
listPossibleDataSources() |
java.util.ArrayList<PamDataBlock> |
listWantedDataSources() |
void |
mitigateEmulate(java.awt.Frame parentFrame)
Call the emulator to pop up a dialog which willcontrol everything.
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
void |
pamClose()
Called when PAMGUARD is finally closing down so that a module
may free any remaining resources (e.g.
|
void |
pamHasStopped()
Called for all controlled units after Pam acquisition has stopped
|
void |
pamToStart()
called just before data acquisition starts.
|
void |
queueDataObject(NetworkQueuedObject networkQueuedObject)
Put data objects in a queue.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
senderSettings(java.awt.Frame parentFrame) |
int |
sendQueuedData()
Called from within the swing worker thread to send data from the queue.
|
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, getVerboseLevel, gotoTab, isViewer, 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 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 PamSidePanel 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 void senderSettings(java.awt.Frame parentFrame)
public void mitigateEmulate(java.awt.Frame parentFrame)
parentFrame
- 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 NetworkSendParams getNetworkSendParams()
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic java.util.ArrayList<PamDataBlock> listWantedDataSources()
public java.util.ArrayList<PamDataBlock> listPossibleDataSources()
public void queueDataObject(NetworkQueuedObject networkQueuedObject)
networkQueuedObject
- Object to add to the queuepublic int getQueueLength()
public int getQueueSize()
public java.lang.String getStatus()
public void pamClose()
PamControlledUnit
pamClose
in class PamControlledUnit
public void pamHasStopped()
PamControlledUnit
pamHasStopped
in class PamControlledUnit
public void pamToStart()
PamControlledUnit
pamToStart
in class PamControlledUnit
public int sendQueuedData()