public class ModuleTranslated_JgenMdl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Operation_FBlock_JgenMdl> |
operBlocks
The Operation_FBlock which presents the clusterParts of this Submodule-Model.
|
(package private) Operation_FBlock_JgenMdl |
updateBlock
The Operation_FBlock which presents the update operation of this module.
|
private java.util.TreeMap<java.lang.String,Operation_FBlock_JgenMdl> |
updateBlocks
Container for all
updateBlock of sub modules of this. |
| Constructor and Description |
|---|
ModuleTranslated_JgenMdl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperBlock(Operation_FBlock_JgenMdl fb)
Add an update block from an inner sub module.
|
void |
addUpdateBlock(Operation_FBlock_JgenMdl updatefb)
Add an update block from an inner sub module.
|
boolean |
hasUpdateBlocks() |
private static Operation_FBlock_JgenMdl |
operationBlockForCallingLevel(Operation_FBlock_JgenMdl src,
Callmodule_FBlock_JgenMdl refBlock,
boolean bLibModule)
Prepares, maybe create Operation-Fblocks for the calling level of this Submodul.
|
java.lang.Iterable<Operation_FBlock_JgenMdl> |
operBlocks() |
java.util.List<Operation_FBlock_JgenMdl> |
replaceConnectionsToOperation(Callmodule_FBlock_JgenMdl refb,
ModuleTranslated_JgenMdl superiorModule)
Replaces the connections in the superior model from the given refb
Callmodule_FBlock_JgenMdl to new created Operation_FBlock_JgenMdl of this sub module.. |
private java.util.List<Operation_FBlock_JgenMdl> |
replaceConnectionsToOperation(Callmodule_FBlock_JgenMdl callfb,
ModuleTranslated_JgenMdl superiorModule,
boolean bLibModule)
Replaces the connection to one Callmodule_FBlock to the operations of this called Module_FBlock.
|
private static void |
replaceOutCon(ConnOut_FBcl outconOper,
FBlock_JgenMdl callBlock) |
java.util.Set<java.util.Map.Entry<java.lang.String,Operation_FBlock_JgenMdl>> |
updateBlocks() |
private java.util.List<Operation_FBlock_JgenMdl> operBlocks
Operation_FBlock_JgenMdl updateBlock
private java.util.TreeMap<java.lang.String,Operation_FBlock_JgenMdl> updateBlocks
updateBlock of sub modules of this.public void addOperBlock(Operation_FBlock_JgenMdl fb)
updatefb - public void addUpdateBlock(Operation_FBlock_JgenMdl updatefb)
updatefb - public boolean hasUpdateBlocks()
public java.util.Set<java.util.Map.Entry<java.lang.String,Operation_FBlock_JgenMdl>> updateBlocks()
public java.lang.Iterable<Operation_FBlock_JgenMdl> operBlocks()
public java.util.List<Operation_FBlock_JgenMdl> replaceConnectionsToOperation(Callmodule_FBlock_JgenMdl refb, ModuleTranslated_JgenMdl superiorModule)
Callmodule_FBlock_JgenMdl to new created Operation_FBlock_JgenMdl of this sub module..
Replaces all dependencies in Operation_FBlock_JgenMdl.dependingOperBlocks from the Callmodule_FBlock_JgenMdl to the new build Operation_FBlock_JgenMdl.
Module_FBlock_JgenMdl instance presents the access to the submodule (for call of its operations).
#clazz association is removed.
operBlocks. That are the operations which can be called (not should be called in any case).
operBlocks are copied.
Own instances of the Operation_FBlock_JgenMdl are need because that FBlocks can be used more as one time
if the model contains more as one access to the same library module.
#conin and FBlock_JgenMdl#conout of the refBlock are reassigned to the operBlocks
because instead using the refBlock the particular Operation_FBlock_JgenMdl are used instead.
That is because the model has different order of execution for the particular operations, or maybe some operations are not used.
refb - The FBlock used in the superior model.Operation_FBlock_JgenMdl of the translating model.
The new build Operation_FBlock_JgenMdl are associated in the translating model instead the Callmodule_FBlock_JgenMdl.
The return value is not used in translation, it is only for debug and documentation.private java.util.List<Operation_FBlock_JgenMdl> replaceConnectionsToOperation(Callmodule_FBlock_JgenMdl callfb, ModuleTranslated_JgenMdl superiorModule, boolean bLibModule)
#replaceConnectionsToOperation(Module_FBlock_JgenMdl) and #replaceConnectionsToOperation(Callmodule_FBlock_JgenMdl, Module_FBlock_JgenMdl)
are slightly similar.callfb - superiorModule - bLibModule - decides copy or used operBlocksprivate static Operation_FBlock_JgenMdl operationBlockForCallingLevel(Operation_FBlock_JgenMdl src, Callmodule_FBlock_JgenMdl refBlock, boolean bLibModule)
src - the originally Operation-FBlock, it is returned or copied.refBlock - the Module_FBlock_JgenMdl or Callmodule_FBlock_JgenMdl from the superior model which should be replacedbLibModule - true then the Submodule block is a lib block.private static void replaceOutCon(ConnOut_FBcl outconOper,
FBlock_JgenMdl callBlock)