Package io.molr.mole.core.tree.executor
Class ExecuteChildrenPausedState
- java.lang.Object
-
- io.molr.mole.core.tree.executor.StrandExecutionState
-
- io.molr.mole.core.tree.executor.ExecuteChildrenState
-
- io.molr.mole.core.tree.executor.ExecuteChildrenPausedState
-
public class ExecuteChildrenPausedState extends ExecuteChildrenState
-
-
Field Summary
-
Fields inherited from class io.molr.mole.core.tree.executor.ExecuteChildrenState
block, childExecutors, concurrencyLimit, finishedChildren, runningExecutors, toBeExecuted, waitingForInstantiation
-
Fields inherited from class io.molr.mole.core.tree.executor.StrandExecutionState
context
-
-
Constructor Summary
Constructors Constructor Description ExecuteChildrenPausedState(Block block, ConcurrentStrandExecutor context)
ExecuteChildrenPausedState(ConcurrentStrandExecutor context, Block block, Map<Block,ConcurrentStrandExecutor> childExecutors, Set<ConcurrentStrandExecutor> finishedChildren, Set<Block> toBeExecuted, Queue<Block> waitingForInstantiation, Set<ConcurrentStrandExecutor> runningExecutors, int concurrencyLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<StrandCommand>
allowedCommands()
protected void
executeCommand(StrandCommand command)
void
onEnterState()
void
run()
-
Methods inherited from class io.molr.mole.core.tree.executor.ExecuteChildrenState
areAllChildrenPaused, instructChildren, isAnyChildrenRunning, pauseChildren, removeCompletedChildExecutors, resumeChildren
-
-
-
-
Constructor Detail
-
ExecuteChildrenPausedState
public ExecuteChildrenPausedState(Block block, ConcurrentStrandExecutor context)
-
ExecuteChildrenPausedState
public ExecuteChildrenPausedState(ConcurrentStrandExecutor context, Block block, Map<Block,ConcurrentStrandExecutor> childExecutors, Set<ConcurrentStrandExecutor> finishedChildren, Set<Block> toBeExecuted, Queue<Block> waitingForInstantiation, Set<ConcurrentStrandExecutor> runningExecutors, int concurrencyLimit)
-
-
Method Detail
-
allowedCommands
public Set<StrandCommand> allowedCommands()
- Overrides:
allowedCommands
in classStrandExecutionState
-
run
public void run()
- Overrides:
run
in classExecuteChildrenState
-
executeCommand
protected void executeCommand(StrandCommand command)
- Specified by:
executeCommand
in classStrandExecutionState
-
onEnterState
public void onEnterState()
- Specified by:
onEnterState
in classStrandExecutionState
-
-