Class DummyStateMachine
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.automata.StateMachine
org.scictrl.csshell.epics.server.application.automata.DummyStateMachine
- All Implemented Interfaces:
Application
,OnDemandValueProcessor.ValueProvider
DummyStateMachine class used for testing and simulation.
- Author:
- igor@scictrl.com
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
DummyAction specifies state machine dummy state.Nested classes/interfaces inherited from class org.scictrl.csshell.epics.server.application.automata.StateMachine
StateMachine.State
-
Field Summary
Fields inherited from class org.scictrl.csshell.epics.server.application.automata.StateMachine
ABORT, ACTIVATE, DESCRIPTION, DRYRUN, ENABLED, PREPARE, PROGRESS, STATE, STATE_STRING
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 TypeMethodDescriptionstatic final DummyStateMachine
newApplication
(String name, double timeout) newApplication.void
setDummyAction
(DummyStateMachine.DummyAction dummyAction) Setter for the fielddummyAction
.void
stateMachineAbort.void
stateMachineActivate
(boolean dryrun) Activates state machine.void
stateMachinePrepare.Methods inherited from class org.scictrl.csshell.epics.server.application.automata.StateMachine
activate, configure, getProgress, getState, getStatus, getTimeout, isAbortOnFail, isDryRun, isEnabled, isInitializationFailed, notifyRecordChange, notifyRecordWrite, setEnabled, setProgress, setState, setStateInitializationFailed, setStatus, setTimeout
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
-
DummyStateMachine
public DummyStateMachine()Constructor for DummyStateMachine.
-
-
Method Details
-
newApplication
newApplication.
- Parameters:
name
- aString
objecttimeout
- a double- Returns:
- a
DummyStateMachine
object
-
setDummyAction
Setter for the field
dummyAction
.- Parameters:
dummyAction
- aDummyStateMachine.DummyAction
object
-
stateMachineActivate
public void stateMachineActivate(boolean dryrun) Activates state machine. If this state machine is in dry-run mode or dry-run parameter with
true
is called, then this step is activate in dry-run mode.- Overrides:
stateMachineActivate
in classStateMachine
- Parameters:
dryrun
- dry-run mode request
-
stateMachineAbort
public void stateMachineAbort()stateMachineAbort.
- Overrides:
stateMachineAbort
in classStateMachine
-
stateMachinePrepare
public void stateMachinePrepare()stateMachinePrepare.
- Overrides:
stateMachinePrepare
in classStateMachine
-