Package csw.alarm.models
Class AlarmMetadata
java.lang.Object
csw.alarm.models.AlarmMetadata
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
Represents the metadata of an alarm e.g. name, subsystem it belongs to, supported severities, etc. This information is
read from the config file for alarms and stored in alarm store. Metadata is referred while setting the severity to validate
the operation. An alarm does not change it's metadata in it's entire life span.
- See Also:
-
Constructor Summary
ConstructorDescriptionAlarmMetadata
(Prefix prefix, String name, String description, String location, AlarmType alarmType, scala.collection.immutable.Set<FullAlarmSeverity> supportedSeverities, String probableCause, String operatorResponse, boolean isAutoAcknowledgeable, boolean isLatchable, ActivationStatus activationStatus) -
Method Summary
Modifier and TypeMethodDescriptionalarmKey()
Represents a unique alarm in the storescala.collection.immutable.Set<FullAlarmSeverity>
A collection of all severities the alarm can be raised to including Indeterminate and Okayboolean
isActive()
Represents whether the alarm is active or notboolean
boolean
location()
name()
prefix()
scala.collection.immutable.Set<FullAlarmSeverity>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
AlarmMetadata
public AlarmMetadata(Prefix prefix, String name, String description, String location, AlarmType alarmType, scala.collection.immutable.Set<FullAlarmSeverity> supportedSeverities, String probableCause, String operatorResponse, boolean isAutoAcknowledgeable, boolean isLatchable, ActivationStatus activationStatus)
-
-
Method Details
-
prefix
-
name
-
description
-
location
-
alarmType
-
supportedSeverities
-
probableCause
-
operatorResponse
-
isAutoAcknowledgeable
public boolean isAutoAcknowledgeable() -
isLatchable
public boolean isLatchable() -
activationStatus
-
alarmKey
Represents a unique alarm in the store- Returns:
- an instance of AlarmKey composed of subsystem, component and name of the alarm
-
isActive
public boolean isActive()Represents whether the alarm is active or not- Returns:
- (undocumented)
-
allSupportedSeverities
A collection of all severities the alarm can be raised to including Indeterminate and Okay- Returns:
- (undocumented)
-