public class StateSimple.TransJoin extends StateSimple.Trans
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
joinStateHashes |
(package private) StateSimple[] |
joinStates
If not null then it is a join transitions.
|
action, choice, doneAction, doneEntry, doneExit, dst, entryStates, exitStates, ixCommonInStatePath, parent, retTrans, transId
Constructor and Description |
---|
TransJoin(java.lang.Class<?>... dstStates)
Filled with
StateParallel#join(TransJoin, Class...) |
TransJoin(java.lang.String name,
int[] dstKeys) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildJoinStates() |
boolean |
joined()
Checks this transition, returns true if all join states are
StateSimple.isInState() . |
StateSimple.TransJoin |
srcStates(java.lang.Class<?>... joinStateClassesArg)
Invoked with the constructor to set the source states of the join transition.
|
void |
srcStates(int[] stateHashes) |
action, buildTransitionPath, doAction, doEntry, doExit, eventConsumed, setAction, toString
int[] joinStateHashes
StateSimple[] joinStates
public TransJoin(java.lang.Class<?>... dstStates)
StateParallel#join(TransJoin, Class...)
which should be used to construct a Join transition.
Used by buildJoinStates()
.public TransJoin(java.lang.String name, int[] dstKeys)
public StateSimple.TransJoin srcStates(java.lang.Class<?>... joinStateClassesArg)
TransJoin myTransJoin = (new TransJoin(DstState.class, DstState2.class)).srcStates(SrcState1.class, SrcState2.class); DstState <-----|<----- SrcState1 DstState2 <----|<----- SrcState2Check the transition with
joined()
.
The constructor argument(s) is/are the destination state(s), more as one for a fork in the join transition.
This method names the source states to join.joinStateClassesArg
- public void srcStates(int[] stateHashes)
protected void buildJoinStates()
public boolean joined()
StateSimple.isInState()
.