Package io.molr.commons.domain
Class MissionState
- java.lang.Object
-
- io.molr.commons.domain.MissionState
-
public final class MissionState extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MissionState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<BlockCommand>
allowedBlockCommandsFor(Block block)
java.util.Set<BlockCommand>
allowedBlockCommandsFor(java.lang.String blockId)
java.util.Set<StrandCommand>
allowedCommandsFor(Strand strand)
java.util.Set<MissionCommand>
allowedMissionCommands()
java.util.Set<Strand>
allStrands()
java.util.Map<java.lang.String,java.util.Collection<BlockCommand>>
blockIdsToAllowedCommands()
java.util.Map<java.lang.String,Result>
blockIdsToResult()
java.util.Map<java.lang.String,RunState>
blockIdsToRunState()
java.util.Set<java.lang.String>
breakpointBlockIds()
static MissionState.Builder
builder(Result result)
java.util.List<Strand>
childrenOf(Strand parent)
java.util.Optional<java.lang.String>
cursorBlockIdIn(Strand strand)
Result
result()
Result
resultOf(Block block)
Result
resultOfBlockId(java.lang.String blockId)
Strand
rootStrand()
RunState
runState()
RunState
runStateOf(Block block)
RunState
runStateOf(Strand strand)
RunState
runStateOfBlockId(java.lang.String blockId)
-
-
-
Method Detail
-
allowedCommandsFor
public java.util.Set<StrandCommand> allowedCommandsFor(Strand strand)
-
cursorBlockIdIn
public java.util.Optional<java.lang.String> cursorBlockIdIn(Strand strand)
-
blockIdsToResult
public java.util.Map<java.lang.String,Result> blockIdsToResult()
-
blockIdsToRunState
public java.util.Map<java.lang.String,RunState> blockIdsToRunState()
-
resultOfBlockId
public Result resultOfBlockId(java.lang.String blockId)
-
result
public Result result()
-
runStateOfBlockId
public RunState runStateOfBlockId(java.lang.String blockId)
-
rootStrand
public Strand rootStrand()
-
runState
public RunState runState()
-
allStrands
public java.util.Set<Strand> allStrands()
-
breakpointBlockIds
public java.util.Set<java.lang.String> breakpointBlockIds()
-
allowedBlockCommandsFor
public java.util.Set<BlockCommand> allowedBlockCommandsFor(java.lang.String blockId)
-
allowedBlockCommandsFor
public java.util.Set<BlockCommand> allowedBlockCommandsFor(Block block)
-
allowedMissionCommands
public java.util.Set<MissionCommand> allowedMissionCommands()
-
blockIdsToAllowedCommands
public java.util.Map<java.lang.String,java.util.Collection<BlockCommand>> blockIdsToAllowedCommands()
-
builder
public static final MissionState.Builder builder(Result result)
-
-