Package org.graphwalker.core.machine
Class SimpleMachine
java.lang.Object
org.graphwalker.core.machine.MachineBase
org.graphwalker.core.machine.SimpleMachine
- All Implemented Interfaces:
Observable,Machine
- Direct Known Subclasses:
ReplayMachine
SimpleMachine
SimpleMachine is working implementation of the MachineBase. The SimpleMachine is the Finite State Machine which executes one or more contexts. Running the machine is done by callinggetNextStep(). Before calling
getNextStep check hasNextStep() if the machine has more steps to be executed or not.- Author:
- Nils Olsson
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleMachine(Collection<Context> contexts) SimpleMachine(Context... contexts) -
Method Summary
Methods inherited from class org.graphwalker.core.machine.MachineBase
addObserver, deleteObserver, deleteObservers, getContexts, getCurrentContext, getExceptionStrategy, getObservers, getProfiler, notifyObservers, setCurrentContext, setExceptionStrategy
-
Constructor Details
-
SimpleMachine
public SimpleMachine() -
SimpleMachine
-
SimpleMachine
-
-
Method Details
-
getNextStep
-
getNextStep
-
hasNextStep
public boolean hasNextStep()
-