Package networkTransfer.send
Class NetworkSendProcess
java.lang.Object
PamguardMVC.PamProcess
networkTransfer.send.NetworkSendProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Constructor Summary
ConstructorDescriptionNetworkSendProcess
(NetworkSender networkSender, PamDataBlock parentDataBlock, int sendingFormat) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
newData
(PamObservable dataBlock, PamDataUnit dataUnit) 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
Called for each process before any of them receive the PamStart commandvoid
setCommandProcess
(boolean commandProcess) void
setOutputFormat
(int outputFormat) Methods 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, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, setupProcess, toString, updateData
-
Constructor Details
-
NetworkSendProcess
public NetworkSendProcess(NetworkSender networkSender, PamDataBlock parentDataBlock, int sendingFormat)
-
-
Method Details
-
prepareProcess
public void prepareProcess()Description copied from class:PamProcess
Called for each process before any of them receive the PamStart command- Overrides:
prepareProcess
in classPamProcess
-
pamStart
public void pamStart()Description copied from class:PamProcess
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
pamStart
in classPamProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Specified by:
pamStop
in classPamProcess
-
getProcessName
- Overrides:
getProcessName
in classPamProcess
- Returns:
- Name of the PamProcess
-
newData
- Overrides:
newData
in classPamProcess
-
setCommandProcess
public void setCommandProcess(boolean commandProcess) - Parameters:
commandProcess
- the commandProcess to set
-
isCommandProcess
public boolean isCommandProcess()- Returns:
- the commandProcess
-
getOutputFormat
public int getOutputFormat() -
setOutputFormat
public void setOutputFormat(int outputFormat)
-