public abstract static class Module_FBcl.CreateMdl
extends java.lang.Object
FBlock_FBcl and its properties.
The class is a static inner class because it should access private elements.
The class is seperated from FBlock_FBcl for a clarified structure. Separate creation from usage.| Modifier and Type | Field and Description |
|---|---|
private int |
ixOperInMdl |
Module_FBcl |
mdl
Access to the created FBlock
|
| Modifier | Constructor and Description |
|---|---|
protected |
CreateMdl(Prj_FBcl prj)
Constructs a writer to a given module.
|
protected |
CreateMdl(java.lang.String name,
Prj_FBcl prj)
Constructs a writer and constructs the module to write too inclusively its
Module_FBcl.fbtMdlifc |
| Modifier and Type | Method and Description |
|---|---|
protected Algorithm_FBcl.Write |
addAlgorithm(java.lang.String name) |
protected void |
addAllExprEv(java.util.List<FBexpr_FBcl> list) |
(package private) void |
addDType(java.lang.String key,
DType_FBcl.DtIxfb dtix) |
protected void |
addEvchain(Evchain_FBcl evChain) |
protected void |
addEvtreeRootnode(EvtreeNode_FBcl nodeRoot) |
protected void |
addFBlock_(FBlock_FBcl fb,
int nrNetwork) |
protected void |
addFBlockTEST_(FBlock_FBcl fb) |
void |
addFBlockType(FBtype_FBcl fbt)
Add a
FBtype_FBcl which is used in the module. |
void |
addOperation(EccAction_FBcl oper) |
void |
addVariable(java.lang.String name,
Dout_FBcl dout) |
protected void |
completeStates(java.util.Map<java.lang.String,EccState_FBcl.Create> idxState) |
protected void |
createInnerEvout(java.lang.Iterable<Evout_FBcl> iterEvoutMdlPins,
java.lang.Iterable<Evout_FBcl> iterEvoutInMdl,
int zInnerEvout)
Create the array of all relevant
Evout_FBcl which are connected to FBlocks on begin of an event chain
to execute the appropriate operation. |
DType_FBcl.DtIxmdl |
getCreateDtype(DType_FBcl.DTypeInfo dtInfo) |
DType_FBcl.DtIxmdl |
getCreateDtype(DType_FBcl dtref,
int[] sizeArray)
Searches or creates a new data type with the given sizeArray based on the given data type
inclusively the dependency id.
|
DType_FBcl.DtIxfb |
getCreateDTypeArrayEnhanced(DType_FBcl dtGiven,
int[] sizeArray)
Searches or creates a new DType in the module with enhanced array property.
|
int |
nextIxOperInMdl() |
(package private) void |
putKeyDType(java.lang.String key,
DType_FBcl.DtIxfb dtix) |
Algorithm_FBcl.Write |
setAlgorithmSimpleFB() |
void |
setMdlType(java.lang.String sMdlType)
Sets the module type name as base for code generation.
|
java.lang.String |
toString() |
public final Module_FBcl mdl
private int ixOperInMdl
protected CreateMdl(java.lang.String name,
Prj_FBcl prj)
Module_FBcl.fbtMdlifcname - The name of the moduleprotected CreateMdl(Prj_FBcl prj)
mdl - public DType_FBcl.DtIxfb getCreateDTypeArrayEnhanced(DType_FBcl dtGiven, int[] sizeArray)
dtGiven - this will be enhancedsizeArray - can also be [0] etc.public void setMdlType(java.lang.String sMdlType)
org.vishia.fbcl.readOdg.OdgModule#prepareImport()
while reading the content of the ofbImport box, '$mdlType'.
The mdlType can contain %pin% which is replaced by the pin type.sType - public DType_FBcl.DtIxmdl getCreateDtype(DType_FBcl dtref, int[] sizeArray)
dtref - sizeArray - public DType_FBcl.DtIxmdl getCreateDtype(DType_FBcl.DTypeInfo dtInfo)
void addDType(java.lang.String key,
DType_FBcl.DtIxfb dtix)
void putKeyDType(java.lang.String key,
DType_FBcl.DtIxfb dtix)
protected void completeStates(java.util.Map<java.lang.String,EccState_FBcl.Create> idxState)
protected void addFBlock_(FBlock_FBcl fb, int nrNetwork)
fb - nrNetwork - from 1, max 254protected void addFBlockTEST_(FBlock_FBcl fb)
fb - nrNetwork - from 1, max 254public void addFBlockType(FBtype_FBcl fbt)
FBtype_FBcl which is used in the module.fbt - public void addVariable(java.lang.String name,
Dout_FBcl dout)
protected void addEvtreeRootnode(EvtreeNode_FBcl nodeRoot)
public int nextIxOperInMdl()
public void addOperation(EccAction_FBcl oper)
protected void addEvchain(Evchain_FBcl evChain)
protected Algorithm_FBcl.Write addAlgorithm(java.lang.String name)
public Algorithm_FBcl.Write setAlgorithmSimpleFB()
protected void addAllExprEv(java.util.List<FBexpr_FBcl> list)
protected void createInnerEvout(java.lang.Iterable<Evout_FBcl> iterEvoutMdlPins, java.lang.Iterable<Evout_FBcl> iterEvoutInMdl, int zInnerEvout)
Evout_FBcl which are connected to FBlocks on begin of an event chain
to execute the appropriate operation.
The first pins created here are the same as in the inner Module_FBcl.fbmdlPins,
but the following are Evout_FBcl as inner pins of the module for the same functionalityiterEvoutMdlPins - Iterable over all module pins from the Write_Module_FBwr.fbMdl
and their Write_FBlock_FBwr.listEvout.iterEvoutInMdl - Iterable over all org.vishia.fbcl.fblockwr.Write_Module_FBwr#listInnerEvoutzInnerEvout - number of entries in sum in both lists.public java.lang.String toString()
toString in class java.lang.Object