Package alarm
Class AlarmProcess
java.lang.Object
PamguardMVC.PamProcess
alarm.AlarmProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
- 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidCalled from the PamControlled unit when a PamControlled unit is removed from the model.intvoidmasterClockUpdate(long timeMilliseconds, long sampleNumber) voidnewData(PamObservable o, PamDataUnit dataUnit) voidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).voidpamStop()Stops the process.voidsetAlarmStatus(int alarmStatus, double score, long timeMillis) booleanvoidupdateAlarmScore(double alarmCount, long timeMillis) Received an updated alarm score.voidupdateData(PamObservable o, PamDataUnit arg) Informs the PamObserver that existing data have been updatedMethods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, 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, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, noteNewSettings, notifyModelChanged, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, setupProcess, toString 
- 
Constructor Details
- 
AlarmProcess
 
 - 
 - 
Method Details
- 
pamStart
public void pamStart()Description copied from class:PamProcessCalled for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
 pamStartin classPamProcess
 - 
pamStop
public void pamStop()Description copied from class:PamProcessStops the process.- Specified by:
 pamStopin classPamProcess
 - 
getAlarmStatus
public int getAlarmStatus()- Returns:
 - the alarmStatus
 
 - 
updateAlarmScore
public void updateAlarmScore(double alarmCount, long timeMillis) Received an updated alarm score.- Parameters:
 alarmCount-
 - 
setAlarmStatus
public void setAlarmStatus(int alarmStatus, double score, long timeMillis) - Parameters:
 alarmStatus- the alarmStatus to set
 - 
masterClockUpdate
public void masterClockUpdate(long timeMilliseconds, long sampleNumber) - Specified by:
 masterClockUpdatein interfacePamObserver- Overrides:
 masterClockUpdatein classPamProcess
 - 
newData
- Overrides:
 newDatain classPamProcess
 - 
updateData
Description copied from interface:PamObserverInforms the PamObserver that existing data have been updated- Specified by:
 updateDatain interfacePamObserver- Overrides:
 updateDatain classPamProcess
 - 
setupAlarm
public boolean setupAlarm() - 
getAlarmDataBlock
 - 
getAlarmCounter
- Returns:
 - the alarmCounter
 
 - 
destroyProcess
public void destroyProcess()Description copied from class:PamProcessCalled from the PamControlled unit when a PamControlled unit is removed from the model. Offers an opportunity to disconnect individual processed from the rest of the model. May be necessary to override to clean up some processes.- Overrides:
 destroyProcessin classPamProcess
 
 -