public class PinConnect_FBcl
extends java.lang.Object
--Pin_FBcl--------+ +--PinConnect_FBcl--+ +-----Pin_FBcl-----
connectDst----->| -sElemSrc |<-------connectSrc
|<-----pinSrc pinDst------->|
| | -sElemDst | |
-----------------+ | -sVariant | +-------------------
+-------------------+
Both, a source pin and a destination pin of a logical connection refers an instance of this.
The pins can have more connections between, but with different functionality.
For example, in C-code:dst.y[5] = src.x.re; dst.y[6] = src.x.im;and on another place und another condition (in another branch of the processing software): dst.y[5] = srcOther.value[3];
In all these examples only the pin 'y' is connected as destination, but with 3 connections, and also from the source 'x' two connections are existing, which are related to parts of the pin which presents embedded data (Here a complex value with '.re' and '.im').
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<PinConnect_FBcl> |
conn1Empty
Empty List with only one empty entry.
|
static java.util.List<PinConnect_FBcl> |
connEmpty
Empty List without entry.
|
private java.util.List<FBlock_FBcl> |
fbSrc
null or one or more FBlocks where the (textual given) connection goes to inside of this module presented by the FBlocks.
|
int |
ixMux
If >=0, then it is the selection of a connection from more as one
Pin_FBcl.connectSrc
due to the given index of a array FBlock. |
Pin_FBcl |
pinDst
The pin on the connection side.
|
Pin_FBcl |
pinSrc
The pin on the connection side.
|
java.lang.String |
sElemDst
Maybe null, describes if the connection delivers a value only for a part of the destination pin.
|
java.lang.String |
sElemSrc
maybe null, set with the access String if an element of the data,
which is representing by the
pinSrc, should be accessed. |
static java.lang.String |
version
Version, history and license.
|
| Constructor and Description |
|---|
PinConnect_FBcl(java.util.List<FBlock_FBcl> fbSrc,
Pin_FBcl pinSrc,
Pin_FBcl pinDst,
int ixMux,
java.lang.String sElemSrc,
java.lang.String sElemDst) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKeyDst()
Returns a key for the back connection from the source to the destination.
|
java.lang.String |
getKeySrc()
Returns a key for the connection from the destination to the source
used for
Pin_FBcl.connectSrc as key. |
java.lang.Iterable<FBlock_FBcl> |
iterFBsrc()
null or one or more FBlocks where the (textual given) connection via
pinSrc goes to inside of this module presented by the FBlocks. |
java.lang.String |
toString() |
public static final java.lang.String version
getKeySrc() and getKeyDst() to build the proper key from the connection
used for the container Pin_FBcl.connectSrc and Pin_FBcl.connectDst.
public static java.util.List<PinConnect_FBcl> connEmpty
Pin_FBcl.connSrc() is null.public static java.util.List<PinConnect_FBcl> conn1Empty
Din_FBcl contains a Din_FBcl.sConstant
only to get an output onpublic final Pin_FBcl pinSrc
public final Pin_FBcl pinDst
private final java.util.List<FBlock_FBcl> fbSrc
public final int ixMux
Pin_FBcl.connectSrc
due to the given index of a array FBlock.public final java.lang.String sElemSrc
pinSrc, should be accessed.
This is an array index or also an element if the DType_FBcl of a Dinout_FBcl
presents a structure in the target language. The writing stype of the connection is always:
public final java.lang.String sElemDst
sElemSrc.
If for example the 5th element of the array representing by the #pinDst should be set,
then it should contain the String "[5]".
FBlock_FBcl index in the FBlock array
is equal with then number after @PinConnect_FBcl(java.util.List<FBlock_FBcl> fbSrc, Pin_FBcl pinSrc, Pin_FBcl pinDst, int ixMux, java.lang.String sElemSrc, java.lang.String sElemDst)
fbSrc - Only given on textual connections to reference a FBlock inside a contained module.pinSrc - pinDst - ixMux - sElemSrc - sElemDst - sVariant - public java.lang.String getKeySrc()
Pin_FBcl.connectSrc as key.
The key regards that they may be more as one connections between the same pin
if different sElemDst are used and/or different #sVariant are given.
The key starts with Pin_FBcl.nameFBpin() of the destination pin
which is referred from the source by this connection.public java.lang.String getKeyDst()
Pin_FBcl.connectDst as key.
The key regards that they may be more as one connections between the same pin
if different sElemSrc are used and/or different #sVariant are given.
The key starts with Pin_FBcl.nameFBpin() of the source pin
which is referred from the destination by this connection.public java.lang.Iterable<FBlock_FBcl> iterFBsrc()
pinSrc goes to inside of this module presented by the FBlocks.
A connection to inside of a module, not via a modules pin, may be especially for test values.
Usual this operation returns null. The the connection goes to a pin of the own module.
If given, the pinSrc : Pin_FBcl.fb : FBlock_FBcl.mdl : Module_FBcl.fbtMdlifc is the same instance
as the last gotten FBlock_FBcl.fbt().
But the Module_FBcl.fbActual is not usable, because this aggregation is only given for code generation of the module, after them invalid.
There may be more as one Modules, which contains exact this module.FBlock_FBcl which references the last FBlock_FBcl which contains the given pinSrcpublic java.lang.String toString()
toString in class java.lang.Object