Class FeedbackLoopMicrotron
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.FeedbackLoopMicrotron
- All Implemented Interfaces:
Application,OnDemandValueProcessor.ValueProvider
FeedbackLoopMicrotron class.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantACTIVE="feedbackActive"static final StringConstantARMED="armed"static final StringConstantENABLED="enabled"static final StringConstantERROR_SUM="ErrorSum"static final StringConstantINC_SET="increment"static final StringConstantINPUT="input"static final StringConstantMAX_INP="maxInp"static final StringConstantMAX_OUT="maxOut"static final StringConstantMIN_INP="minInp"static final StringConstantMIN_OUT="minOut"static final StringConstantOUTPUT="output"static final StringConstantOUTPUT_SET="outputSet"static final StringConstantSAMPLES="samples"static final StringConstantUSE_MAX="maxenb"static final StringConstantUSE_MAXOUT="outmaxenb"static final StringConstantUSE_MIN="minenb"static final StringConstantUSE_MINOUT="outminenb"static final StringConstantUSE_USER="enableUser"static final StringConstantUSER_INP="userInput"Fields inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
database, DEFAULT_NAME_DELIMITER, dynamicRecordCreator, LINK_ERROR, LINK_ERROR_STRING, links, log, name, NAME_DELIMITER, nameDelimiter, records -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Application has now reference to Database.voidConfigures the internals of this application, provides reference to configuration with root inside applications tag.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)).Methods inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
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
-
ARMED
ConstantARMED="armed"- See Also:
-
ENABLED
ConstantENABLED="enabled"- See Also:
-
ERROR_SUM
ConstantERROR_SUM="ErrorSum"- See Also:
-
OUTPUT
ConstantOUTPUT="output"- See Also:
-
OUTPUT_SET
ConstantOUTPUT_SET="outputSet"- See Also:
-
INPUT
ConstantINPUT="input"- See Also:
-
INC_SET
ConstantINC_SET="increment"- See Also:
-
ACTIVE
ConstantACTIVE="feedbackActive"- See Also:
-
MIN_INP
ConstantMIN_INP="minInp"- See Also:
-
MAX_INP
ConstantMAX_INP="maxInp"- See Also:
-
SAMPLES
ConstantSAMPLES="samples"- See Also:
-
USE_MAX
ConstantUSE_MAX="maxenb"- See Also:
-
USE_MIN
ConstantUSE_MIN="minenb"- See Also:
-
USER_INP
ConstantUSER_INP="userInput"- See Also:
-
USE_USER
ConstantUSE_USER="enableUser"- See Also:
-
USE_MAXOUT
ConstantUSE_MAXOUT="outmaxenb"- See Also:
-
USE_MINOUT
ConstantUSE_MINOUT="outminenb"- See Also:
-
MIN_OUT
ConstantMIN_OUT="minOut"- See Also:
-
MAX_OUT
ConstantMAX_OUT="maxOut"- See Also:
-
-
Constructor Details
-
FeedbackLoopMicrotron
public FeedbackLoopMicrotron()Constructor for FeedbackLoopMicrotron.
-
-
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.
-
activate
public void activate()Application has now reference to Database. Application 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 application that records has been loaded and linking to other values can be commenced.- Specified by:
activatein interfaceApplication- Overrides:
activatein classAbstractApplication
-
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
-