Class CyclingApplication
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.CyclingApplication
- 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
FieldsModifier and TypeFieldDescriptionprotected RampingThreadRamping thread.protected StringPV name for remote get.protected StringPV name for remote set.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_STRFields 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 TypeMethodDescriptionvoidConfigures the internals of this application, provides reference to configuration with root inside applications tag.protected voiddoAbort()doAbort.protected voiddoCycle()doCycle.protected voiddoCycleTop.protected voidThis method is called from activate and initiate asynchonous get for metadata.protected MetaDataImplement 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, updateLastTimeCycledMethods 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
-
Field Details
-
getPV
PV name for remote get. -
setPV
PV name for remote set. -
cycler
Ramping thread.
-
-
Constructor Details
-
CyclingApplication
public CyclingApplication()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:
configurein interfaceApplication- Overrides:
configurein classAbstractCyclingApplication- Parameters:
name- aStringobjectconfig- 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:
restoreMetaDatain classAbstractCyclingApplication- Returns:
- a
MetaDataobject
-
getAsyncMetadata
This method is called from activate and initiate asynchonous get for metadata. If possible- Specified by:
getAsyncMetadatain classAbstractCyclingApplication- Throws:
Exception- if fails
-
doCycleTop
protected void doCycleTop()doCycleTop.
- Specified by:
doCycleTopin classAbstractCyclingApplication
-
doCycle
protected void doCycle()doCycle.
- Specified by:
doCyclein classAbstractCyclingApplication
-
doAbort
protected void doAbort()doAbort.
- Specified by:
doAbortin classAbstractCyclingApplication
-