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
Modifier and TypeFieldDescriptionstatic final String
ConstantACTIVE="feedbackActive"
static final String
ConstantARMED="armed"
static final String
ConstantENABLED="enabled"
static final String
ConstantERROR_SUM="ErrorSum"
static final String
ConstantINC_SET="increment"
static final String
ConstantINPUT="input"
static final String
ConstantMAX_INP="maxInp"
static final String
ConstantMAX_OUT="maxOut"
static final String
ConstantMIN_INP="minInp"
static final String
ConstantMIN_OUT="minOut"
static final String
ConstantOUTPUT="output"
static final String
ConstantOUTPUT_SET="outputSet"
static final String
ConstantSAMPLES="samples"
static final String
ConstantUSE_MAX="maxenb"
static final String
ConstantUSE_MAXOUT="outmaxenb"
static final String
ConstantUSE_MIN="minenb"
static final String
ConstantUSE_MINOUT="outminenb"
static final String
ConstantUSE_USER="enableUser"
static final String
ConstantUSER_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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Application has now reference to Database.void
Configures the internals of this application, provides reference to configuration with root inside applications tag.protected void
notifyRecordChange
(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:
configure
in interfaceApplication
- Overrides:
configure
in classAbstractApplication
- Parameters:
name
- aString
objectconfig
- 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:
activate
in interfaceApplication
- Overrides:
activate
in 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:
notifyRecordChange
in classAbstractApplication
- Parameters:
name
- the name of record, that triggered change.alarmOnly
- iftrue
then only alarm has been changed
-