Package alarm

Class AlarmParameters

java.lang.Object
alarm.AlarmParameters
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class AlarmParameters extends Object implements Serializable, Cloneable, ManagedParameters
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • COUNT_SIMPLE

      public static final int COUNT_SIMPLE
      See Also:
    • COUNT_SCORES

      public static final int COUNT_SCORES
      See Also:
    • COUNT_SINGLES

      public static final int COUNT_SINGLES
      See Also:
    • COUNT_LEVELS

      public static final int COUNT_LEVELS
      See Also:
    • levelNames

      public static final String[] levelNames
    • alarmColours

      public static final Color[] alarmColours
    • dataSourceName

      public String dataSourceName
    • countType

      public int countType
    • countIntervalMillis

      public long countIntervalMillis
    • minAlarmIntervalMillis

      public long minAlarmIntervalMillis
  • Constructor Details

    • AlarmParameters

      public AlarmParameters()
  • Method Details

    • getTriggerCount

      public double getTriggerCount(int countLevel)
    • setTriggerCount

      public void setTriggerCount(int countLevel, double value)
    • sayLevel

      public static String sayLevel(int level)
    • getEnabledActions

      public boolean[] getEnabledActions()
    • setEnabledActions

      public void setEnabledActions(boolean[] enabledActions)
    • getHoldSeconds

      public int getHoldSeconds()
      Number of seconds to hold data for before deleting
      Returns:
      the holdSeconds
    • setHoldSeconds

      public void setHoldSeconds(int holdSeconds)
      Number of seconds to hold data for before deleting
      Parameters:
      holdSeconds - the holdSeconds to set
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.