Class SimpleMachine

java.lang.Object
org.graphwalker.core.machine.MachineBase
org.graphwalker.core.machine.SimpleMachine
All Implemented Interfaces:
Observable, Machine
Direct Known Subclasses:
ReplayMachine

public class SimpleMachine extends MachineBase

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 calling getNextStep(). Before calling getNextStep check hasNextStep() if the machine has more steps to be executed or not.
Author:
Nils Olsson
  • Constructor Details

    • SimpleMachine

      public SimpleMachine()
    • SimpleMachine

      public SimpleMachine(Context... contexts)
    • SimpleMachine

      public SimpleMachine(Collection<Context> contexts)
  • Method Details

    • getNextStep

      public Context getNextStep()
    • getNextStep

      protected Context getNextStep(Context context)
    • hasNextStep

      public boolean hasNextStep()