Class StepOptimizationApplication
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.control.StepOptimizationApplication
- All Implemented Interfaces:
Application,OnDemandValueProcessor.ValueProvider
StepOptimizationApplication class.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantBEST_INP="Best:Inp"static final StringConstantBEST_OUT="Best:Out"static final StringConstantCMD_START="Cmd:Start"static final StringConstantCMD_STOP="Cmd:Stop"static final StringConstantINPUT="Input"static final StringConstantINPUT_MAX="Input:Max"static final StringConstantINPUT_MIN="Input:Min"static final StringConstantINPUT_PREC="Input:Prec"static final StringConstantINPUT_START_MAX="Input:Start:Max"static final StringConstantINPUT_START_MIN="Input:Start:Min"static final StringConstantLAST_INP="Last:Inp"static final StringConstantLAST_OUT="Last:Out"static final StringConstantOUTPUT="Output"static final StringConstantOUTPUT_IN_RANGE="Output:InRange"static final StringConstantOUTPUT_WAIT="Output:Wait"static final StringConstantSTATUS="Status"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 TypeMethodDescriptionvoidactivate()Application has now reference to Database.voidConfigures the internals of this application, provides reference to configuration with root inside applications tag.protected voidnotifyRecordWrite(String name) This method is called whenever record value has been written 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, notifyRecordChange, processLinkChange, pushDoneCommandProcessor, reconnectLinks, resetOnDemandProcessor, restore, store, toString, updateErrorSum, updateErrorSum, updateLinkError, updateLinkError
-
Field Details
-
OUTPUT
ConstantOUTPUT="Output"- See Also:
-
OUTPUT_IN_RANGE
ConstantOUTPUT_IN_RANGE="Output:InRange"- See Also:
-
INPUT
ConstantINPUT="Input"- See Also:
-
INPUT_MIN
ConstantINPUT_MIN="Input:Min"- See Also:
-
INPUT_MAX
ConstantINPUT_MAX="Input:Max"- See Also:
-
INPUT_PREC
ConstantINPUT_PREC="Input:Prec"- See Also:
-
OUTPUT_WAIT
ConstantOUTPUT_WAIT="Output:Wait"- See Also:
-
INPUT_START_MIN
ConstantINPUT_START_MIN="Input:Start:Min"- See Also:
-
INPUT_START_MAX
ConstantINPUT_START_MAX="Input:Start:Max"- See Also:
-
CMD_STOP
ConstantCMD_STOP="Cmd:Stop"- See Also:
-
CMD_START
ConstantCMD_START="Cmd:Start"- See Also:
-
STATUS
ConstantSTATUS="Status"- See Also:
-
BEST_INP
ConstantBEST_INP="Best:Inp"- See Also:
-
BEST_OUT
ConstantBEST_OUT="Best:Out"- See Also:
-
LAST_INP
ConstantLAST_INP="Last:Inp"- See Also:
-
LAST_OUT
ConstantLAST_OUT="Last:Out"- See Also:
-
-
Constructor Details
-
StepOptimizationApplication
public StepOptimizationApplication()Constructor for StepOptimizationApplication.
-
-
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
-
notifyRecordWrite
This method is called whenever record value has been written 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:
notifyRecordWritein classAbstractApplication- Parameters:
name- the name of record, that triggered change.
-