Class TimeValueProcessor
java.lang.Object
org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
org.scictrl.csshell.epics.server.processor.MemoryValueProcessor
org.scictrl.csshell.epics.server.processor.TimeValueProcessor
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,ValueProcessor
TimeValueProcessor class.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantFORMAT_ISO="yyyy-MM-dd'T'HH:mm:ss.SSSZ"
static final String
ConstantFORMAT_MIN="mm:ss"
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
-
Constructor Summary
ConstructorDescriptionConstructor for TimeValueProcessor.TimeValueProcessor
(String format) Constructor for TimeValueProcessor. -
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.convert
(long time) convert.void
process()
Called by Database in interval set by the trigger parameter in milliseconds.process
(long time, gov.aps.jca.dbr.Severity severity, gov.aps.jca.dbr.Status status, boolean notify) process.void
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, toString
-
Field Details
-
FORMAT_ISO
ConstantFORMAT_ISO="yyyy-MM-dd'T'HH:mm:ss.SSSZ"
- See Also:
-
FORMAT_MIN
ConstantFORMAT_MIN="mm:ss"
- See Also:
-
-
Constructor Details
-
TimeValueProcessor
public TimeValueProcessor()Constructor for TimeValueProcessor.
-
TimeValueProcessor
Constructor for TimeValueProcessor.
- Parameters:
format
- aString
object
-
-
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 classMemoryValueProcessor
- Parameters:
record
- the parent record.config
- configuration with room inside processor tag.
-
process
public void process()Called by Database in interval set by the trigger parameter in milliseconds. Not called if trigger in 0.- Specified by:
process
in interfaceValueProcessor
- Overrides:
process
in classAbstractValueProcessor
-
process
public Object process(long time, gov.aps.jca.dbr.Severity severity, gov.aps.jca.dbr.Status status, boolean notify) process.
- Parameters:
time
- a longseverity
- aSeverity
objectstatus
- aStatus
objectnotify
- a boolean- Returns:
- a
Object
object
-
convert
convert.
- Parameters:
time
- a long- Returns:
- a
Object
object
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
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 classMemoryValueProcessor
-