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 BlockState
getNextBlockToExecute()
Obtains the nextFunctionState
to execute.BlockState
getParallelBlock()
Obtains the parallelBlockState
.default BlockState
getParallelBlockToExecute()
Obtains the parallelBlockState
to execute.BlockState
getParallelOwner()
Obtains the parallel ownerBlockState
.BlockState
getSequentialBlock()
Obtains the sequentialBlockState
.default void
loadParallelBlock(BlockState parallelBlock)
static void
loadParallelOwner(BlockState parallelBlock, BlockState parallelOwner)
Loads the parallel owner to the parallelBlockState
.default void
loadSequentialBlock(BlockState sequentialBlock)
void
setParallelBlock(BlockState parallelBlock)
Specifies the parallelBlockState
.void
setParallelOwner(BlockState parallelOwner)
Specifies the parallel owningBlockState
.void
setSequentialBlock(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
-BlockState
to 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
-BlockState
to load to tree.
-
getParallelBlockToExecute
default BlockState getParallelBlockToExecute()
Obtains the parallel
BlockState
to execute.This will not include the sequential
BlockState
instances. Therefore, this provides ability to check if aBlockState
should be executed before thisBlockState
.- Returns:
- Parallel
BlockState
to execute. May benull
if no parallelBlockState
to execute.
-
getNextBlockToExecute
default BlockState getNextBlockToExecute()
Obtains the nextFunctionState
to execute.- Returns:
- Next
FunctionState
to execute. May benull
if no furtherBlockState
instances to execute.
-
-