Class SummaryAlarmProcessor
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.SummaryAlarmProcessor
- All Implemented Interfaces:
PropertyChangeListener,EventListener,ValueProcessor
This class listens to alarm events from input links (PVs) and
converts them to alarm state of this record in following way:
- Sets record alarm state to highest alarm state of input links.
- Sets record value to 0 if there is no alarm state and 1 if there is alarm state in input links.
- Sets record listens to machine state and blocks alarms when machine state does not match mask.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsFields inherited from class org.scictrl.csshell.epics.server.processor.MemoryValueProcessor
fixed, lastChangeTimestamp, timestamp, valueFields inherited from class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
log, record, trigger, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Record has now reference to Database.voidConfigures the internals of value processor, provides reference to parent record and to configuration with root inside processor tag.voidMethods inherited from class org.scictrl.csshell.epics.server.processor.DefaultAlarmProcessor
disableSupressTime, newProcessor, update, updateAlarmStatus, updateOrSupressMethods 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, setValueMethods 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
-
SummaryAlarmProcessor
public SummaryAlarmProcessor()Constructor for SummaryAlarmProcessor.
-
-
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:
configurein interfaceValueProcessor- Overrides:
configurein classDefaultAlarmProcessor- Parameters:
record- the parent record.config- configuration with room inside processor tag.
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classDefaultAlarmProcessor
-
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:
activatein interfaceValueProcessor- Overrides:
activatein classDefaultAlarmProcessor
-