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
Modifier and TypeFieldDescriptionstatic final String
ConstantBEST_INP="Best:Inp"
static final String
ConstantBEST_OUT="Best:Out"
static final String
ConstantCMD_START="Cmd:Start"
static final String
ConstantCMD_STOP="Cmd:Stop"
static final String
ConstantINPUT="Input"
static final String
ConstantINPUT_MAX="Input:Max"
static final String
ConstantINPUT_MIN="Input:Min"
static final String
ConstantINPUT_PREC="Input:Prec"
static final String
ConstantINPUT_START_MAX="Input:Start:Max"
static final String
ConstantINPUT_START_MIN="Input:Start:Min"
static final String
ConstantLAST_INP="Last:Inp"
static final String
ConstantLAST_OUT="Last:Out"
static final String
ConstantOUTPUT="Output"
static final String
ConstantOUTPUT_IN_RANGE="Output:InRange"
static final String
ConstantOUTPUT_WAIT="Output:Wait"
static final String
ConstantSTATUS="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
-
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
notifyRecordWrite
(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:
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
-
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:
notifyRecordWrite
in classAbstractApplication
- Parameters:
name
- the name of record, that triggered change.
-