private static class OdgMdlStates.ProcessStateTransCreateAndConnect
extends java.lang.Object
OdgMdlStates.processStateTransCreateAndConnect(OdgGBlock)| Modifier and Type | Field and Description |
|---|---|
private OdgMdlStates |
env |
(package private) StateTransCond |
fbTrans
The FBexpr for the transition itself with additional data for code generation.
|
(package private) OdgModule |
gMdl |
(package private) OdgGBlock |
gStateTrans |
(package private) java.util.List<CreateFBstate_FBcl> |
listStateWDst
All destination States for this transition as instances of
CreateFBstate_FBcl |
(package private) java.util.List<CreateFBstate_FBcl> |
listStateWSrc
All source States for this transition as instances of
CreateFBstate_FBcl |
private LogMessage |
log |
private Module_FBcl |
mdl |
(package private) Evout_FBcl |
pinEvSwitch
This pin of the
wFBTrans will be created, anyway necessary for connection to set and leave,
but also necessary to trigger a given transition operation. |
private Prj_FBcl |
prj |
(package private) java.lang.String |
sNameTrans
The name of the transition is built from "trans_StatesSrc__StatesDst.
|
private ModuleStateM_FBcl |
stm |
(package private) Write_FBlock_FBwr |
wFBTrans
The transition to create the
FBexpr_FBcl respectively here the StateTransCond. |
private Write_Module_FBwr |
wMdl
The real module.
|
| Constructor and Description |
|---|
ProcessStateTransCreateAndConnect(OdgMdlStates env,
OdgGBlock gStateTrans)
ctor called for temporary built transition processing.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
connectEventSetLeave()
last action: Evaluates the
listStateWSrc and listStateWDst which states are left and entered by this transition,
connects the events on FBcl level, and creates the StateTransCond#statesLeave and StateTransCond#statesSet
or adequate the StateTransCond#listStatesLeave or StateTransCond#listStatesSet for StateTransCond usage
on target code generation. |
private void |
createFBclInstancesOfTrans() |
void |
findEvinConnTrans(java.util.Iterator<OdgConnection> iterGcon)
Check whether there is an evin coming from outside to the transition on its GBlock, hence
OdgGBlock.fbPinDst
which triggers the transition. |
(package private) void |
process()
Processing the transition.
|
void |
processConnSrcTrans(java.util.Iterator<OdgConnection> iterGcon) |
void |
processConnTransDst(java.util.Iterator<OdgConnection> iterGcon) |
private CreateFBstate_FBcl |
searchWStateParent(java.util.List<CreateFBstate_FBcl> listfb1,
java.util.List<CreateFBstate_FBcl> listfb2)
Searches the common parent state for a transition between states in any hierarchy.
|
private void |
storeTransNameSrc() |
final OdgGBlock gStateTrans
private final OdgMdlStates env
private final LogMessage log
private final Prj_FBcl prj
final OdgModule gMdl
private final Write_Module_FBwr wMdl
private final Module_FBcl mdl
private final ModuleStateM_FBcl stm
Write_FBlock_FBwr wFBTrans
FBexpr_FBcl respectively here the StateTransCond.StateTransCond fbTrans
Evout_FBcl pinEvSwitch
wFBTrans will be created, anyway necessary for connection to set and leave,
but also necessary to trigger a given transition operation.java.util.List<CreateFBstate_FBcl> listStateWSrc
CreateFBstate_FBcljava.util.List<CreateFBstate_FBcl> listStateWDst
CreateFBstate_FBcljava.lang.String sNameTrans
storeTransNameSrc() in the wFBTrans and its StateTransCond instance.ProcessStateTransCreateAndConnect(OdgMdlStates env, OdgGBlock gStateTrans)
env - OdgMdlStates instance, it's the environment.gStateTrans - which OdgGBlock transition GBlockvoid process()
private void createFBclInstancesOfTrans()
public void findEvinConnTrans(java.util.Iterator<OdgConnection> iterGcon)
OdgGBlock.fbPinDst
which triggers the transition.
If an evin is found, an OdgGPin 'prep' is searched or created, the OdgConnection is transferred to this 'prep',
and the original connection is removed.iterGcon - The connection iterator for 'fbPinDst' OdgGPin.connections.
The Iterator.next() is called, after checking it's an incoming event, Iterator.remove() is called.public void processConnTransDst(java.util.Iterator<OdgConnection> iterGcon)
public void processConnSrcTrans(java.util.Iterator<OdgConnection> iterGcon)
private void storeTransNameSrc()
private void connectEventSetLeave()
listStateWSrc and listStateWDst which states are left and entered by this transition,
connects the events on FBcl level, and creates the StateTransCond#statesLeave and StateTransCond#statesSet
or adequate the StateTransCond#listStatesLeave or StateTransCond#listStatesSet for StateTransCond usage
on target code generation.private CreateFBstate_FBcl searchWStateParent(java.util.List<CreateFBstate_FBcl> listfb1, java.util.List<CreateFBstate_FBcl> listfb2)
cfb1 - One of the statelistCfb - maybe more as one state on the opposite side. Often only one.