public class PinDtype_FBcl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DataTypeRef_FBcl |
dataType
Reference to a dataType Reference.
|
PinBase_FBcl |
pin |
SteptimeRef_FBcl |
steptime
The steptime is only necessary if the module has no event connection.
|
int |
zVectorDim
If not 0 then this port is a scalar port and the associated
#fb can be used for a vector (sliced, for each) operation
if the data type of connection is a vector. |
Constructor and Description |
---|
PinDtype_FBcl(PinBase_FBcl pin) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustDataType(PinDtype_FBcl toDin)
Set the reference to the same instances of
DataTypeRef_FBcl of both connection ends. |
void |
changeDataType(DataTypeRef_FBcl src)
This is the only one operation to set the type.
|
void |
changeDataTypeWithoutDeregister(DataTypeRef_FBcl src)
Change the data type, do not deregister the current one
because prevent ConcurrentModificationException in the register list.
|
void |
changeSteptime(SteptimeRef_FBcl steptime)
Changes the steptime only for this connection.
|
DataTypeRef_FBcl |
dataType()
gets the dataType.
|
SteptimeRef_FBcl |
getSteptime()
Returns the steptime reference to the instance.
|
java.lang.String |
getSteptimeStr()
Returns the string representation of the Steptime.
|
void |
propagateSteptime(SteptimeRef_FBcl steptime) |
void |
setDataType(DataTypeRef_FBcl src)
Sets the datatype form src.
|
private void |
setSteptimeToOtherCon(Pin_FBcl[] thiscon,
DinoutType_FBcl[] typecon,
SteptimeRef_FBcl steptimeType) |
public final PinBase_FBcl pin
protected DataTypeRef_FBcl dataType
public SteptimeRef_FBcl steptime
public int zVectorDim
#fb
can be used for a vector (sliced, for each) operation
if the data type of connection is a vector.
Callmodule_FBlock_JgenMdl
-connection has this property >0 only if it is a for-each-subsystem and the port is a for-each-port.public PinDtype_FBcl(PinBase_FBcl pin)
public void setDataType(DataTypeRef_FBcl src)
dataType
its an error
This will be registered on the src DataTypesrc
- any given DataType.public DataTypeRef_FBcl dataType()
protected void adjustDataType(PinDtype_FBcl toDin)
DataTypeRef_FBcl
of both connection ends.
One of twice existing instances is dissolved, all usages in other Connection ends
are reassigned to the remaining only one.
With that operation the number of different instances of DataTypeRef_FBcl
are reduced to only one necessary.toDin
- the other end.public void changeDataType(DataTypeRef_FBcl src)
DataTypeRef_FBcl#registerConnection(DInOut_FBcl)
.
if a #dataType is stored already, this connection is deregistered there. Therewith clearing a type with src=null is admissible.src
- Any dataType, null is admissible.public void changeDataTypeWithoutDeregister(DataTypeRef_FBcl src)
DataTypeRef_FBcl.takeOverUsageFrom(DataTypeRef_FBcl)
because all registered DataTypeRef_FBcl
are replaced there.src
- type to use.public void changeSteptime(SteptimeRef_FBcl steptime)
steptime
- public java.lang.String getSteptimeStr()
public SteptimeRef_FBcl getSteptime()
private void setSteptimeToOtherCon(Pin_FBcl[] thiscon, DinoutType_FBcl[] typecon, SteptimeRef_FBcl steptimeType)
public void propagateSteptime(SteptimeRef_FBcl steptime)