Package alarm
Class SimpleAlarmCounter
java.lang.Object
alarm.AlarmCounter
alarm.SimpleAlarmCounter
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue(int countType, PamDataUnit dataUnit) Get a count value from a source of alarm trigger databooleanvoidbooleanshowOptions(Window parent) Show module specific optionsMethods inherited from class alarm.AlarmCounter
addCount, getAlarmControl, getExtraFieldData, getExtraFieldNames, subtractCount 
- 
Constructor Details
- 
SimpleAlarmCounter
 
 - 
 - 
Method Details
- 
getValue
Description copied from class:AlarmCounterGet a count value from a source of alarm trigger dataTwo types of counting are available. COUNT_SIMPLE in which case each data unit scores either 0 or 1 and COUNT_SCORES in which case each unit is assigned a value (could still be 0 or 1 !)
- Specified by:
 getValuein classAlarmCounter- Parameters:
 countType- type of countingdataUnit- dataunit to consider- Returns:
 - value to add to trigger count.
 
 - 
resetCounter
public void resetCounter()- Specified by:
 resetCounterin classAlarmCounter
 - 
hasOptions
public boolean hasOptions()- Overrides:
 hasOptionsin classAlarmCounter- Returns:
 - true if the counter has module specific options.
 
 - 
showOptions
Description copied from class:AlarmCounterShow module specific options- Overrides:
 showOptionsin classAlarmCounter- Parameters:
 parent- parent frame for dialog- Returns:
 - true if options were changed (false if cancel button pressed on dialog)
 
 
 -