public class StateTransCond extends FBexpr_FBcl
State_FBcl in a state machine.
It is derived from FBexpr_FBcl to use all possibilities to build an expression for the condition.
But of course only a boolean result can be pragmatically built and used.| Modifier and Type | Class and Description |
|---|---|
static class |
StateTransCond.StateEvout |
FBlock_FBcl.Blocktype, FBlock_FBcl.WriteFB| Modifier and Type | Field and Description |
|---|---|
private java.util.List<StateTransCond.StateEvout> |
evStatesLeave
The list contains in forward order the states to exit, first the inner state.
|
private java.util.List<StateTransCond.StateEvout> |
evStatesSet
The list contains in forward order the states to enter, first the outer state.
|
State_FBcl |
stateCommonParent |
private java.util.List<State_FBcl> |
statesDst
Destination state(s), only one if it is not a transition for fork to parallel states.
|
private java.util.List<State_FBcl> |
statesSrc
Source state(s), only one if it is not a transition for join from parallel states.
|
bCastoutput, bFullDTypePropagatedDin, bhasInputs, cmp2Operators, cOpSetExpr, cOpTextExpr, dTypeAllDin, limitOperators, mdlcr, nrBitTrueFalse, shiftOperatorsdin, dout, doutempty, dTypes, evin, evout, fbt, graphicPos, ixSlice, mdl, port, reference, sizeArrayFB, sOperators, steptime, sVersion, XXXfbPinDst, XXXfbPinSrcgraphicIntPos, name| Constructor and Description |
|---|
StateTransCond(FBtype_FBcl typeFb,
java.lang.String name,
Module_FBcl.CreateMdl parentModule,
XY_FBcl graphicPos) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStateDst(State_FBcl st) |
void |
addStatesLeave(java.util.List<StateTransCond.StateEvout> statesLeaveNew) |
void |
addStateSrc(State_FBcl st) |
void |
addStatesSet(java.util.List<StateTransCond.StateEvout> statesSetNew) |
boolean |
isForkStates() |
boolean |
isJoinStates() |
java.lang.Iterable<State_FBcl> |
iterStateDst()
All states, often only one which is the conditional destination state.
|
java.lang.Iterable<StateTransCond.StateEvout> |
iterStateLeave()
All states which are to leave if the transition switches.
|
java.lang.Iterable<StateTransCond.StateEvout> |
iterStateSet()
All states which are to set if the transition switches.
|
java.lang.Iterable<State_FBcl> |
iterStateSrc()
All states, often only one which is the conditional source state.
|
adjustFBexrFnDtypes, cAccess, castOutput, cOp, dTypeAllDin, dtypeExprOut, dtypeIxMdlExprOut, getAccess, getFirstDout, getFunction, hasInputs, iterDinExpr, setAccess, setCastOutput, setDTypeAllDin, setExprPinFromPinsExprFn, setFunction, setHasInputs, setOperation, setOperatorToPinsdin, dinForeach, dout, doutForeach, dtNonArrayFB, dTypes, evin, evin, evout, evout, fbt, getFbPinSrc, getNrofConnin, getNrofConnout, getNrofDin, getNrofDout, getNrofEvin, getNrofEvout, getOut1Properties, getPin, getPinEvInByName, getPinEvOutByName, getPinInByName, getPinOutByName, getSteptime, getSteptimeStr, getTypeFB, isKind, iterEvout, iterEvout, iterPins, ixSlice, kind, kindWhatis, setDtypeInFBlock, setSizeArray, setSliceIndex, sizeArray, sizeArray, toString, typeName, XXXgetConnin, XXXgetConnoutaddGpos, name, setNameprivate java.util.List<State_FBcl> statesSrc
private java.util.List<State_FBcl> statesDst
private java.util.List<StateTransCond.StateEvout> evStatesLeave
State_FBcl members in this list are deactivated on execute of the transition from #stateSrc.
It is also possible to come from a a parallel state. Then the states to leave are in the proper order,
first one bough, then the other(s) till a common state is reached, then from the common to the last before common parent.private java.util.List<StateTransCond.StateEvout> evStatesSet
State_FBcl members in this list are activated on execute of the transition from #stateDst.
It is also possible to go into parallel states. Then the states to set are in the proper order,
first from outer to the last common, then each bough one after another.public State_FBcl stateCommonParent
public StateTransCond(FBtype_FBcl typeFb, java.lang.String name, Module_FBcl.CreateMdl parentModule, XY_FBcl graphicPos)
public void addStateSrc(State_FBcl st)
public void addStateDst(State_FBcl st)
public void addStatesLeave(java.util.List<StateTransCond.StateEvout> statesLeaveNew)
public void addStatesSet(java.util.List<StateTransCond.StateEvout> statesSetNew)
public java.lang.Iterable<State_FBcl> iterStateSrc()
iterStateLeave().public boolean isJoinStates()
public java.lang.Iterable<State_FBcl> iterStateDst()
iterStateSet().public boolean isForkStates()
public java.lang.Iterable<StateTransCond.StateEvout> iterStateLeave()
public java.lang.Iterable<StateTransCond.StateEvout> iterStateSet()