Interface BlockState
- All Superinterfaces:
FunctionState,LinkedListSetEntry<FunctionState,Flow>
- All Known Subinterfaces:
ManagedFunctionContainer
- All Known Implementing Classes:
ManagedFunctionContainerImpl
Representative of blocks of code to be executed.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiondefault BlockStateObtains the nextFunctionStateto execute.Obtains the parallelBlockState.default BlockStateObtains the parallelBlockStateto execute.Obtains the parallel ownerBlockState.Obtains the sequentialBlockState.default voidloadParallelBlock(BlockState parallelBlock) static voidloadParallelOwner(BlockState parallelBlock, BlockState parallelOwner) Loads the parallel owner to the parallelBlockState.default voidloadSequentialBlock(BlockState sequentialBlock) voidsetParallelBlock(BlockState parallelBlock) Specifies the parallelBlockState.voidsetParallelOwner(BlockState parallelOwner) Specifies the parallel owningBlockState.voidsetSequentialBlock(BlockState sequentialBlock) Specifies the sequentialBlockState.Methods inherited from interface net.officefloor.frame.internal.structure.FunctionState
cancel, execute, getLinkedListSetOwner, getResponsibleTeam, getThreadState, handleEscalation, isRequireThreadStateSafetyMethods inherited from interface net.officefloor.frame.internal.structure.LinkedListSetEntry
getNext, getPrev, setNext, setPrev
-
Method Details
-
setParallelOwner
Specifies the parallel owningBlockState.- Parameters:
parallelOwner- Parallel owningBlockState.
-
getParallelOwner
BlockState getParallelOwner()Obtains the parallel ownerBlockState.- Returns:
- Parallel owner
BlockState.
-
setParallelBlock
Specifies the parallelBlockState.- Parameters:
parallelBlock- ParallelBlockState.
-
getParallelBlock
BlockState getParallelBlock()Obtains the parallelBlockState.- Returns:
- Parallel
BlockState.
-
setSequentialBlock
Specifies the sequentialBlockState.- Parameters:
sequentialBlock- SequentialBlockState.
-
getSequentialBlock
BlockState getSequentialBlock()Obtains the sequentialBlockState.- Returns:
- Sequential
BlockState.
-
loadParallelBlock
- Parameters:
parallelBlock-BlockStateto load to tree.
-
loadParallelOwner
Loads the parallel owner to the parallelBlockState.- Parameters:
parallelBlock- ParallelBlockState.parallelOwner- Parallel owner.
-
loadSequentialBlock
- Parameters:
sequentialBlock-BlockStateto load to tree.
-
getParallelBlockToExecute
Obtains the parallel
BlockStateto execute.This will not include the sequential
BlockStateinstances. Therefore, this provides ability to check if aBlockStateshould be executed before thisBlockState.- Returns:
- Parallel
BlockStateto execute. May benullif no parallelBlockStateto execute.
-
getNextBlockToExecute
Obtains the nextFunctionStateto execute.- Returns:
- Next
FunctionStateto execute. May benullif no furtherBlockStateinstances to execute.
-