public class OdgGPin
extends java.lang.Object
OdgGBlock#idxPinInstance,
as given in the graphic
pinType is set with the PinType_FBcl due to the type
and pinObj is set with all Pin_FBcl of the instances of OdgGBlock.fbw.
There the real existing connections between FBlocks are stored.| Modifier and Type | Field and Description |
|---|---|
DoutTargetCodeAccess |
accTargetCode
Kind of access to the output for target code.
|
private boolean |
bDeferredAssocEvData
Set temporary to regard pins for the second call of
OdgModule.buildAssociatedEventDataPins(org.vishia.fbcl.readOdg.OdgGBlock, org.vishia.fbcl.fblockwr.Write_Module_FBwr)
for association of event and data because in a second call default behavior on missing events are done. |
java.util.List<OdgConnection> |
connections
If a variable is assigned after the pinObj as output, this is it.
|
static OdgGPin |
dummy |
OdgGBlock |
fbg
where the pin is member of.
|
(package private) java.lang.String |
id
id from this instance
|
PinKind_FBcl |
kind
The same as
PinType_FBcl.kind but stored before create the pin instances. |
protected java.lang.String |
name |
OdgNameTypeArray |
nameType |
(package private) XY_FBcl |
odgxy |
private java.util.List<Pin_FBcl> |
pinObj |
private PinType_FBcl |
pinType
The associated roundup of the pin.
|
java.lang.String |
sText
The text to the pin as input for name, type etc. as written in graphic.
|
| Modifier | Constructor and Description |
|---|---|
private |
OdgGPin() |
|
OdgGPin(OdgGPin src,
PinKind_FBcl kind)
Builds a copy for replacement of a pin which other kind.
|
|
OdgGPin(OdgGPin src,
PinKind_FBcl kind,
java.lang.String name,
java.lang.String text,
OdgModule odgMdl,
LogMessage log)
Builds a copy for replacement of a pin which other kind and also other functionality given in text.
|
|
OdgGPin(PinType_FBcl pinType,
XY_FBcl xy,
OdgGBlock fbg,
OdgNameTypeArray nameType,
PinKind_FBcl kind)
Builds a pin with given descriptions .
|
|
OdgGPin(java.lang.String id,
XY_FBcl odgxy,
PinKind_FBcl kind,
PinType_FBcl pinType,
Pin_FBcl pin,
java.lang.String text,
OdgGBlock fbg,
OdgModule odgMdl,
LogMessage log)
Ctor with already given Pin_FBcl and PinType_FBcl
|
|
OdgGPin(java.lang.String id,
XY_FBcl odgxy,
PinKind_FBcl kind,
java.lang.String text,
OdgGBlock fbg,
OdgModule odgMdl,
LogMessage log)
Constructs a graphic pin
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(OdgConnection conn,
LogMessage log) |
void |
addPinObj(Pin_FBcl pinObj,
LogMessage log) |
private static DoutTargetCodeAccess |
getAccTargetCode(java.lang.String sAccTargetCode)
Analyzes max 2 characters which are written after the identifier:
"name(":
DoutTargetCodeAccess.OperValue :'('
"name&(": DoutTargetCodeAccess.OperValue :'C'
"name*(": DoutTargetCodeAccess.OperValue :'c'
"name%": DoutTargetCodeAccess.ReturnValue :'%'
"name&%": DoutTargetCodeAccess.OperValue :'R'
"name*%": DoutTargetCodeAccess.OperValue :'r'
"name*": DoutTargetCodeAccess.ReferVar :')'
"name)": DoutTargetCodeAccess.ReferVar :')'
|
boolean |
isDeferredAssocEvDataClean()
Tests and cleans the event-data association as deferred (used in association from the graphic,
see
OdgModule.buildAssociatedEventDataPins(org.vishia.fbcl.readOdg.OdgGBlock, org.vishia.fbcl.fblockwr.Write_Module_FBwr)
It sets the highest bit (MSB) as tag. |
PinKind_FBcl |
kind() |
java.lang.String |
name() |
java.util.List<Pin_FBcl> |
pinObj() |
PinType_FBcl |
pinType() |
void |
setDeferredAssocEvData()
Sets the event-data association as deferred (used in association from the graphic,
see
OdgModule.buildAssociatedEventDataPins(org.vishia.fbcl.readOdg.OdgGBlock, org.vishia.fbcl.fblockwr.Write_Module_FBwr) |
boolean |
setPinType(PinType_FBcl pinType,
LogMessage log) |
java.lang.String |
toString() |
java.lang.StringBuilder |
toString(java.lang.StringBuilder app,
java.lang.String... cond) |
java.lang.String id
private PinType_FBcl pinType
private java.util.List<Pin_FBcl> pinObj
public final java.util.List<OdgConnection> connections
connections to this pin.public final OdgGBlock fbg
OdgGBlock.fbtw and OdgGBlock#obj is referenced.private transient boolean bDeferredAssocEvData
OdgModule.buildAssociatedEventDataPins(org.vishia.fbcl.readOdg.OdgGBlock, org.vishia.fbcl.fblockwr.Write_Module_FBwr)
for association of event and data because in a second call default behavior on missing events are done.
It cannot be done in the first call. First all ...final XY_FBcl odgxy
public final java.lang.String sText
nameType
But it may be important for debugging to recognize a pin.public final OdgNameTypeArray nameType
protected java.lang.String name
public PinKind_FBcl kind
PinType_FBcl.kind but stored before create the pin instances.public final DoutTargetCodeAccess accTargetCode
public static final OdgGPin dummy
public OdgGPin(java.lang.String id,
XY_FBcl odgxy,
PinKind_FBcl kind,
java.lang.String text,
OdgGBlock fbg,
OdgModule odgMdl,
LogMessage log)
id - odgxy - kind - text - fbg - odgMdl - log - Only for problem report if text is faulty.public OdgGPin(java.lang.String id,
XY_FBcl odgxy,
PinKind_FBcl kind,
PinType_FBcl pinType,
Pin_FBcl pin,
java.lang.String text,
OdgGBlock fbg,
OdgModule odgMdl,
LogMessage log)
id - odgxy - kind - pinType - pin - text - fbg - odgMdl - public OdgGPin(OdgGPin src, PinKind_FBcl kind)
public OdgGPin(OdgGPin src, PinKind_FBcl kind, java.lang.String name, java.lang.String text, OdgModule odgMdl, LogMessage log)
OdgGBlock.fbPinDst or OdgGBlock.fbPinSrcsrc - The original pin containing id, odgxy, fbgkind - The necessary kind of pintext - adequate the graphic textodgMdl - module necessary to replace stuff in text (alias)log - for error messages for OdgNameTypeArray creation.public OdgGPin(PinType_FBcl pinType, XY_FBcl xy, OdgGBlock fbg, OdgNameTypeArray nameType, PinKind_FBcl kind)
private OdgGPin()
private static DoutTargetCodeAccess getAccTargetCode(java.lang.String sAccTargetCode)
DoutTargetCodeAccess.OperValue :'('
DoutTargetCodeAccess.OperValue :'C'
DoutTargetCodeAccess.OperValue :'c'
DoutTargetCodeAccess.ReturnValue :'%'
DoutTargetCodeAccess.OperValue :'R'
DoutTargetCodeAccess.OperValue :'r'
DoutTargetCodeAccess.ReferVar :')'
DoutTargetCodeAccess.ReferVar :')'
sAccTargetCode - public final java.lang.String name()
public final PinKind_FBcl kind()
public void addConnection(OdgConnection conn, LogMessage log)
public PinType_FBcl pinType()
public java.util.List<Pin_FBcl> pinObj()
public boolean setPinType(PinType_FBcl pinType, LogMessage log)
public void addPinObj(Pin_FBcl pinObj, LogMessage log)
public void setDeferredAssocEvData()
OdgModule.buildAssociatedEventDataPins(org.vishia.fbcl.readOdg.OdgGBlock, org.vishia.fbcl.fblockwr.Write_Module_FBwr)public boolean isDeferredAssocEvDataClean()
OdgModule.buildAssociatedEventDataPins(org.vishia.fbcl.readOdg.OdgGBlock, org.vishia.fbcl.fblockwr.Write_Module_FBwr)
It sets the highest bit (MSB) as tag.public java.lang.StringBuilder toString(java.lang.StringBuilder app,
java.lang.String... cond)
public java.lang.String toString()
toString in class java.lang.Object