Interface BlockState
-
- All Superinterfaces:
FunctionState,LinkedListSetEntry<FunctionState,Flow>
- All Known Subinterfaces:
ManagedFunctionContainer
- All Known Implementing Classes:
ManagedFunctionContainerImpl
public interface BlockState extends FunctionState
Representative of blocks of code to be executed.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BlockStategetNextBlockToExecute()Obtains the nextFunctionStateto execute.BlockStategetParallelBlock()Obtains the parallelBlockState.default BlockStategetParallelBlockToExecute()Obtains the parallelBlockStateto execute.BlockStategetParallelOwner()Obtains the parallel ownerBlockState.BlockStategetSequentialBlock()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, isRequireThreadStateSafety
-
Methods inherited from interface net.officefloor.frame.internal.structure.LinkedListSetEntry
getNext, getPrev, setNext, setPrev
-
-
-
-
Method Detail
-
setParallelOwner
void setParallelOwner(BlockState parallelOwner)
Specifies the parallel owningBlockState.- Parameters:
parallelOwner- Parallel owningBlockState.
-
getParallelOwner
BlockState getParallelOwner()
Obtains the parallel ownerBlockState.- Returns:
- Parallel owner
BlockState.
-
setParallelBlock
void setParallelBlock(BlockState parallelBlock)
Specifies the parallelBlockState.- Parameters:
parallelBlock- ParallelBlockState.
-
getParallelBlock
BlockState getParallelBlock()
Obtains the parallelBlockState.- Returns:
- Parallel
BlockState.
-
setSequentialBlock
void setSequentialBlock(BlockState sequentialBlock)
Specifies the sequentialBlockState.- Parameters:
sequentialBlock- SequentialBlockState.
-
getSequentialBlock
BlockState getSequentialBlock()
Obtains the sequentialBlockState.- Returns:
- Sequential
BlockState.
-
loadParallelBlock
default void loadParallelBlock(BlockState parallelBlock)
- Parameters:
parallelBlock-BlockStateto load to tree.
-
loadParallelOwner
static void loadParallelOwner(BlockState parallelBlock, BlockState parallelOwner)
Loads the parallel owner to the parallelBlockState.- Parameters:
parallelBlock- ParallelBlockState.parallelOwner- Parallel owner.
-
loadSequentialBlock
default void loadSequentialBlock(BlockState sequentialBlock)
- Parameters:
sequentialBlock-BlockStateto load to tree.
-
getParallelBlockToExecute
default BlockState 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
default BlockState getNextBlockToExecute()
Obtains the nextFunctionStateto execute.- Returns:
- Next
FunctionStateto execute. May benullif no furtherBlockStateinstances to execute.
-
-