Class WaveformSumApplication
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.WaveformSumApplication
- All Implemented Interfaces:
Application,OnDemandValueProcessor.ValueProvider
WaveformSumApplication class.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intSample index.protected static final StringSample index PV.protected RecordInput link.protected static final StringInput link PV.protected RecordWaveform integral link.protected static final StringWaveform integral PV.protected RecordMax value link.protected static final StringMax value PV.protected RecordMin value link.protected static final StringMin value PV,protected StringInput PV.protected RecordSample value link.protected static final StringSample value PV.protected doubleWaveform array step between samples.Fields inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
database, DEFAULT_NAME_DELIMITER, dynamicRecordCreator, ERROR_SUM, LINK_ERROR, LINK_ERROR_STRING, links, log, name, NAME_DELIMITER, nameDelimiter, records -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures the internals of this application, provides reference to configuration with root inside applications tag.protected double[]Implementation must extract array data from record.protected voidnotifyRecordChange(String name, boolean alarmOnly) This method is called whenever record value changed for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)).protected voidupdate()update.Methods inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
activate, addRecord, addRecordOfCommandProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfOnDemandProcessor, addRecordOfOnLinkValueProcessor, configure, connectLinks, createNewStore, fullRecordName, getLinks, getName, getNameDelimiter, getNotNull, getRecord, getRecordErrorSum, getRecordLinkError, getRecordNames, getRecords, getStore, getStore, getValue, initialize, isActivated, isDynamicRecordCreator, log4debug, log4error, log4error, log4info, notifyLinkChange, notifyRecordWrite, processLinkChange, pushDoneCommandProcessor, reconnectLinks, resetOnDemandProcessor, restore, store, toString, updateErrorSum, updateErrorSum, updateLinkError, updateLinkError
-
Field Details
-
INPUT
Input link PV.- See Also:
-
SAMPLE
Sample value PV.- See Also:
-
INDEX
Sample index PV.- See Also:
-
MAX
Max value PV.- See Also:
-
MIN
Min value PV,- See Also:
-
INTEGRAL
Waveform integral PV.- See Also:
-
psInput
Input PV. -
idx
protected int idxSample index. -
input
Input link. -
sample
Sample value link. -
max
Max value link. -
min
Min value link. -
integral
Waveform integral link. -
sampleStep
protected double sampleStepWaveform array step between samples.
-
-
Constructor Details
-
WaveformSumApplication
public WaveformSumApplication()Constructor for WaveformSumApplication.
-
-
Method Details
-
configure
public void configure(String name, org.apache.commons.configuration.HierarchicalConfiguration config) Configures the internals of this application, provides reference to configuration with root inside applications tag. Server structure is not yet initialized, so does not have reference to Database, the Database reference will be available during activate call.- Specified by:
configurein interfaceApplication- Overrides:
configurein classAbstractApplication- Parameters:
name- aStringobjectconfig- configuration with room inside application tag.
-
extract
Implementation must extract array data from record. Any data manipulation should be applied here.- Parameters:
input- aRecordobject- Returns:
- an array of
objects
invalid reference
double
-
update
protected void update()update.
-
notifyRecordChange
This method is called whenever record value changed for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)). Implementation class should override this method to intercept the update.- Overrides:
notifyRecordChangein classAbstractApplication- Parameters:
name- the name of record, that triggered change.alarmOnly- iftruethen only alarm has been changed
-