Package alarm

Class SimpleAlarmCounter

java.lang.Object
alarm.AlarmCounter
alarm.SimpleAlarmCounter

public class SimpleAlarmCounter extends AlarmCounter
  • Constructor Details

  • Method Details

    • getValue

      public double getValue(int countType, PamDataUnit dataUnit)
      Description copied from class: AlarmCounter
      Get a count value from a source of alarm trigger data

      Two 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:
      getValue in class AlarmCounter
      Parameters:
      countType - type of counting
      dataUnit - dataunit to consider
      Returns:
      value to add to trigger count.
    • resetCounter

      public void resetCounter()
      Specified by:
      resetCounter in class AlarmCounter
    • hasOptions

      public boolean hasOptions()
      Overrides:
      hasOptions in class AlarmCounter
      Returns:
      true if the counter has module specific options.
    • showOptions

      public boolean showOptions(Window parent)
      Description copied from class: AlarmCounter
      Show module specific options
      Overrides:
      showOptions in class AlarmCounter
      Parameters:
      parent - parent frame for dialog
      Returns:
      true if options were changed (false if cancel button pressed on dialog)