Class ITestCyclingApplication
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.cycling.AbstractCyclingApplication
org.scictrl.csshell.epics.server.application.cycling.ITestCyclingApplication
- All Implemented Interfaces:
Application
,OnDemandValueProcessor.ValueProvider
Implementation of cycling application, which uses setPV and getPV to implement cycling
- Author:
- igor@scictrl.com
-
Nested Class Summary
Nested classes/interfaces inherited from class org.scictrl.csshell.epics.server.application.cycling.AbstractCyclingApplication
AbstractCyclingApplication.Status
-
Field Summary
Fields inherited from class org.scictrl.csshell.epics.server.application.cycling.AbstractCyclingApplication
ABORT, CYCLE, CYCLE_TOP, DEVICE, DEVICE_FINAL_VALUE, DEVICE_MAX_LIMIT, DEVICE_MIN_LIMIT, DURATION, linear, PROGRESS, STATUS, STATUS_DESC, STATUS_LAST, STATUS_LAST_STR
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
Configures the internals of this application, provides reference to configuration with root inside applications tag.protected void
doAbort()
doAbort.protected void
doCycle()
doCycle.protected void
doCycleTop.protected void
This method is called from activate and initiate asynchonous get for metadata.protected MetaData
Implement this to provide inital metadata for the cycler.Methods inherited from class org.scictrl.csshell.epics.server.application.cycling.AbstractCyclingApplication
activate, configureDevice, getAsyncMetadata, getCyclingParameters, getDevice, getMetaData, getParameters, notifyRecordChange, notifyRecordWrite, restoreMetaData, setProgress, setStatus, storeCyclingParameters, updateDuration, updateLastTimeCycled
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, processLinkChange, pushDoneCommandProcessor, reconnectLinks, resetOnDemandProcessor, restore, store, toString, updateErrorSum, updateErrorSum, updateLinkError, updateLinkError
-
Constructor Details
-
ITestCyclingApplication
public ITestCyclingApplication()Constructor.
-
-
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 classAbstractCyclingApplication
- Parameters:
name
- aString
objectconfig
- configuration with room inside application tag.
-
restoreMetaData
Implement this to provide inital metadata for the cycler. If possible use helper methodAbstractCyclingApplication.restoreMetaData(String)
.- Specified by:
restoreMetaData
in classAbstractCyclingApplication
- Returns:
- a
MetaData
object
-
getAsyncMetadata
This method is called from activate and initiate asynchonous get for metadata. If possible- Specified by:
getAsyncMetadata
in classAbstractCyclingApplication
- Throws:
Exception
- if fails
-
doCycle
protected void doCycle()doCycle.
- Specified by:
doCycle
in classAbstractCyclingApplication
-
doCycleTop
protected void doCycleTop()doCycleTop.
- Specified by:
doCycleTop
in classAbstractCyclingApplication
-
doAbort
protected void doAbort()doAbort.
- Specified by:
doAbort
in classAbstractCyclingApplication
-