Class StatusCheckAlarmProcessor
java.lang.Object
org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
org.scictrl.csshell.epics.server.processor.MemoryValueProcessor
org.scictrl.csshell.epics.server.processor.DefaultAlarmProcessor
org.scictrl.csshell.epics.server.processor.StatusCheckAlarmProcessor
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,ValueProcessor
StatusCheckAlarmProcessor class.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.csshell.epics.server.processor.MemoryValueProcessor
fixed, lastChangeTimestamp, timestamp, value
Fields inherited from class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
log, record, trigger, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Record has now reference to Database.void
Configures the internals of value processor, provides reference to parent record and to configuration with root inside processor tag.gov.aps.jca.dbr.Severity
Getter for the fieldalarmSeverity
.gov.aps.jca.dbr.Status
Getter for the fieldalarmStatus
.void
void
Alarm processor should check connections and other parameters and update alarm status.Methods inherited from class org.scictrl.csshell.epics.server.processor.DefaultAlarmProcessor
disableSupressTime, newProcessor, update, updateOrSupress
Methods inherited from class org.scictrl.csshell.epics.server.processor.MemoryValueProcessor
_forceValueUpdateEvent, _setValue, _setValue, _setValue, _setValue, convert, getChangeAccessTimestamp, getTimestamp, getValue, getValueAsBoolean, isFixed, newBooleanProcessor, newDoubleProcessor, newProcessor, newProcessor, setFixed, setValue
Methods inherited from class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
getName, getRecord, getTrigger, getType, process, toString
-
Field Details
-
input
Input value remote link.
-
-
Constructor Details
-
StatusCheckAlarmProcessor
public StatusCheckAlarmProcessor()Constructor for StatusCheckAlarmProcessor.
-
-
Method Details
-
configure
public void configure(Record record, org.apache.commons.configuration.HierarchicalConfiguration config) Configures the internals of value processor, provides reference to parent record and to configuration with root inside processor tag. Parent record is not yet initialized, so does not have reference to Database, the Database reference will be available during activate call.- Specified by:
configure
in interfaceValueProcessor
- Overrides:
configure
in classDefaultAlarmProcessor
- Parameters:
record
- the parent record.config
- configuration with room inside processor tag.
-
activate
public void activate()Record has now reference to Database. processor might want to connect to other records on this server or PVs on other servers. This can not be done until all records from configuration has been loaded. Call to this method signals to the processor that records has been loaded and linking to other values can be commenced.- Specified by:
activate
in interfaceValueProcessor
- Overrides:
activate
in classDefaultAlarmProcessor
-
getAlarmSeverity
public gov.aps.jca.dbr.Severity getAlarmSeverity()Getter for the field
alarmSeverity
.- Returns:
- a
Severity
object
-
getAlarmStatus
public gov.aps.jca.dbr.Status getAlarmStatus()Getter for the field
alarmStatus
.- Returns:
- a
Status
object
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classDefaultAlarmProcessor
-
updateAlarmStatus
public void updateAlarmStatus()Alarm processor should check connections and other parameters and update alarm status.
This method should be called by processor itself, for example from PropertyChange update loop.
As well could be called by asynchronous update loop, which does the supress_time handling.
- Overrides:
updateAlarmStatus
in classDefaultAlarmProcessor
-