public class Write_Module_FBwr extends Module_FBcl.Create
Modifier and Type | Field and Description |
---|---|
boolean |
bCombinatoricDout
TODO a port may be combinatoric.
|
private java.util.List<Dout_FBcl> |
dinPortList |
private java.util.List<Portdout_FBcl.Wr> |
doutPortList |
private java.util.List<Evchain_FBcl.Wr> |
evChains |
private java.util.List<Evout_FBcl> |
evinPortList |
private java.util.List<Evin_FBcl> |
evoutPortList |
private java.util.Map<java.lang.String,Write_FBlock_FBwr> |
fblockIdx
It is only for internal processing.
|
private java.util.List<Write_FBlock_FBwr> |
fblockList
It is only for internal processing.
|
(package private) java.util.Map<java.lang.String,SteptimeRef_FBcl> |
idxSteptimes |
(package private) int |
ixEvInput |
Write_FBlockType_FBwr |
mdlifcCreate |
mdl
Constructor and Description |
---|
Write_Module_FBwr(FBlock_Type_FBcl createParts)
Creates a Module for Parts of the given Interface.
|
Write_Module_FBwr(Module_FBcl mdl)
Constructs a writer to a given module.
|
Write_Module_FBwr(java.lang.String name)
Constructs a writer and constructs the module to write too inclusively its
Module_FBcl.ifcFB |
Modifier and Type | Method and Description |
---|---|
Dout_FBcl |
addDinPort(int ixPin,
java.lang.String namePin,
DataTypeRef_FBcl dtype)
Adds a bound out to the preliminary list.
|
Portdout_FBcl.Wr |
addDoutPort(int ixPin,
java.lang.String namePin,
DataTypeRef_FBcl dtype)
Adds a bound out to the preliminary list.
|
void |
addEvchain(Evchain_FBcl.Wr evChain) |
Evout_FBcl |
addEvinPort(java.lang.String namePin)
Adds a bound out to the preliminary list.
|
Evin_FBcl |
addEvoutPort(java.lang.String namePin)
Adds a bound out to the preliminary list.
|
void |
addFBlock(Write_FBlock_FBwr fbc,
int nrNetwork)
Adds the new FBlock.
|
void |
completeIfc(TranslationScripts trlScripts)
Completes the
FBlock_Type_FBcl of the Module_FBcl.ifcFB
because of all ports are set with the correct Data types. |
java.util.List<Evchain_FBcl.Wr> |
evChains() |
Evout_FBcl |
evinPort(int ix) |
void |
gatherAllFBdtypes() |
private java.util.HashMap<DataTypeRef_FBcl,DataTypeRef_FBcl> |
gatherPortDataTypes()
All datatypes inside the module are connected together, it means all non deterministic datatypes are present on the pins.
|
private void |
gatherPortDataTypes(Pin_FBcl[] conns,
java.util.Map<DataTypeRef_FBcl,DataTypeRef_FBcl> dtm) |
Evout_FBcl |
getaddEvinPort(java.lang.String namePin)
Gets the named port event input, if not found adds it to the preliminary list with
addEvinPort(String) . |
Pin_FBcl |
getaddEvoutPort(java.lang.String namePin)
Gets the named port event input, if not found adds it to the preliminary list with
addEvinPort(String) . |
SteptimeRef_FBcl |
getCreateSteptime(java.lang.String steptime) |
Dout_FBcl |
getDinPortByName(java.lang.String name) |
Portdout_FBcl.Wr |
getDoutPortByName(java.lang.String name) |
Write_FBlock_FBwr |
getFBlock(java.lang.String name) |
java.lang.Iterable<Dout_FBcl> |
iterDinPort() |
java.lang.Iterable<Portdout_FBcl.Wr> |
iterDoutPort() |
java.lang.Iterable<Write_FBlock_FBwr> |
iterFBlocks() |
void |
postPrepareDtypesToIfc() |
void |
postPrepareFBlocks() |
void |
setAllPortsToIfc() |
private void |
setEqualsSteptimeInFBlocks() |
addAlgorithm, addDoutCombin, addDoutVar, addEvchain, addFBlock_, addOperation, addState, containsDoutCombin, createDinPortsToInnerModule, createdoutPortsFromInnerModule, createEvinPortsToInnerModule, createEvoutPortsFromInnerModule, getdinPortArray, getdoutPortArray, getevinPortArray, getevoutPortArray, nextIxOperInMdl, setAlgorithmSimpleFB, setDtypes, toString
public final Write_FBlockType_FBwr mdlifcCreate
private java.util.List<Evout_FBcl> evinPortList
private java.util.List<Evin_FBcl> evoutPortList
private java.util.List<Dout_FBcl> dinPortList
private java.util.List<Portdout_FBcl.Wr> doutPortList
private java.util.List<Evchain_FBcl.Wr> evChains
private java.util.List<Write_FBlock_FBwr> fblockList
private java.util.Map<java.lang.String,Write_FBlock_FBwr> fblockIdx
int ixEvInput
public boolean bCombinatoricDout
java.util.Map<java.lang.String,SteptimeRef_FBcl> idxSteptimes
public Write_Module_FBwr(java.lang.String name)
Module_FBcl.ifcFB
name
- The name of the modulepublic Write_Module_FBwr(Module_FBcl mdl)
mdl
- public Write_Module_FBwr(FBlock_Type_FBcl createParts)
createParts
- public java.lang.Iterable<Write_FBlock_FBwr> iterFBlocks()
public void addFBlock(Write_FBlock_FBwr fbc, int nrNetwork)
fbwr
- nrNetwork
- from 1, max 254public Write_FBlock_FBwr getFBlock(java.lang.String name)
public Evout_FBcl addEvinPort(java.lang.String namePin)
setAllPortsToIfc()
to establish all port pins from the module and create all pins on the ifc-FBnamePin
- public Evout_FBcl getaddEvinPort(java.lang.String namePin)
addEvinPort(String)
.
Later call setAllPortsToIfc()
to establish all port pins from the module and create all pins on the ifc-FBnamePin
- public Evout_FBcl evinPort(int ix)
public Evin_FBcl addEvoutPort(java.lang.String namePin)
setAllPortsToIfc()
to establish all port pins from the module and create all pins on the ifc-FBnamePin
- public Pin_FBcl getaddEvoutPort(java.lang.String namePin)
addEvinPort(String)
.
Later call setAllPortsToIfc()
to establish all port pins from the module and create all pins on the ifc-FBnamePin
- public Dout_FBcl addDinPort(int ixPin, java.lang.String namePin, DataTypeRef_FBcl dtype)
setAllPortsToIfc()
to establish all port pins from the module and create all pins on the ifc-FBnamePin
- public Portdout_FBcl.Wr addDoutPort(int ixPin, java.lang.String namePin, DataTypeRef_FBcl dtype)
setAllPortsToIfc()
to establish all port pins from the module and create all pins on the ifc-FBnamePin
- public java.lang.Iterable<Dout_FBcl> iterDinPort()
public java.lang.Iterable<Portdout_FBcl.Wr> iterDoutPort()
public Portdout_FBcl.Wr getDoutPortByName(java.lang.String name)
public Dout_FBcl getDinPortByName(java.lang.String name)
public void addEvchain(Evchain_FBcl.Wr evChain)
public java.util.List<Evchain_FBcl.Wr> evChains()
public void setAllPortsToIfc()
public SteptimeRef_FBcl getCreateSteptime(java.lang.String steptime)
private java.util.HashMap<DataTypeRef_FBcl,DataTypeRef_FBcl> gatherPortDataTypes()
private void gatherPortDataTypes(Pin_FBcl[] conns, java.util.Map<DataTypeRef_FBcl,DataTypeRef_FBcl> dtm)
public void gatherAllFBdtypes()
public void completeIfc(TranslationScripts trlScripts)
FBlock_Type_FBcl
of the Module_FBcl.ifcFB
because of all ports are set with the correct Data types. It is important that the data type dependencies are correct.public void postPrepareFBlocks()
private void setEqualsSteptimeInFBlocks()
public void postPrepareDtypesToIfc()