Package io.molr.mole.core.tree.executor
Class StrandExecutionState
- java.lang.Object
-
- io.molr.mole.core.tree.executor.StrandExecutionState
-
- Direct Known Subclasses:
CompletedState
,ExecuteChildrenState
,NavigatingState
,PausedState
public abstract class StrandExecutionState extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ConcurrentStrandExecutor
context
-
Constructor Summary
Constructors Constructor Description StrandExecutionState(ConcurrentStrandExecutor context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Set<StrandCommand>
allowedCommands()
protected abstract void
executeCommand(StrandCommand command)
abstract void
onEnterState()
abstract void
run()
-
-
-
Field Detail
-
context
protected ConcurrentStrandExecutor context
-
-
Constructor Detail
-
StrandExecutionState
public StrandExecutionState(ConcurrentStrandExecutor context)
-
-
Method Detail
-
run
public abstract void run()
-
onEnterState
public abstract void onEnterState()
-
allowedCommands
public Set<StrandCommand> allowedCommands()
-
executeCommand
protected abstract void executeCommand(StrandCommand command)
-
-