public class DataTypeRef_FBcl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DataTypeRef_FBcl.Dependency
The first inport of the module with this type.
|
Modifier and Type | Field and Description |
---|---|
java.util.List<PinDtype_FBcl> |
connections
All connctions which uses this type.
|
java.util.List<DataTypeRef_FBcl.Dependency> |
deps
All data types instances which should be determine in some aspects one another
but other aspects may be different.
|
(package private) DataType_FBcl |
dt
The really used DataType.
|
(package private) static int |
instanceCt |
(package private) int |
instanceId |
private static java.util.Map<java.lang.Character,DataTypeRef_FBcl> |
mapTypecharToComplex
Map to translate a real type to its complex block
|
(package private) static java.util.Map<java.lang.String,DataTypeRef_FBcl> |
stdTypes
That are all standard fix types sorted by name of IEC61499.
|
Modifier | Constructor and Description |
---|---|
|
DataTypeRef_FBcl(DataType_FBcl refdt) |
private |
DataTypeRef_FBcl(DataType_FBcl refdt,
int instanceId) |
|
DataTypeRef_FBcl(DataTypeRef_FBcl src)
Clone a DataType because of create a Instance to a FB-type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkCopyFrom(DataTypeRef_FBcl src,
int zVectorDim,
int what)
Checks this against src.
|
static DataTypeRef_FBcl[] |
clone_dtypes(DataTypeRef_FBcl[] orig) |
private static java.util.Map<java.lang.String,DataTypeRef_FBcl> |
createStdTypes() |
void |
deregisterConnection(Pin_FBcl con) |
boolean |
determineFromToAllDependings(DataTypeRef_FBcl src,
int zVectorDim,
int what)
Checks this against src.
|
boolean |
determineNondefAspects(DataTypeRef_FBcl src,
int zVectorDim,
int what)
This operation is called only from
Module_FBlock_JgenMdl#replaceTypesInModuleForTranslation(Callmodule_FBlock_JgenMdl)
It determines all attributes which are not determined elsewhere. |
private void |
determineNondefAspectsAllDependings(DataTypeRef_FBcl src,
int zVectorDim,
java.util.HashMap<DataTypeRef_FBcl,DataTypeRef_FBcl> done,
int what,
int recursion) |
DataType_FBcl |
dt() |
DataTypeRef_FBcl |
findEquDepending(DataTypeRef_FBcl cmp)
Searches whether this has an equal depending type as cmp.
|
static DataTypeRef_FBcl |
getDataType(java.lang.String typename,
DataType_FBcl.RealOrComplex rcmplx,
int sizeArray) |
static DataTypeRef_FBcl |
getDataType(java.lang.String typename,
int sizeArray,
int baseArray) |
(package private) void |
infoConnections(java.lang.Appendable ap) |
boolean |
isDepending(DataTypeRef_FBcl deptype) |
void |
registerConnection(PinDtype_FBcl con)
Sets this
DataTypeRef_FBcl designation to the given connection and registers the connection on this. |
void |
registerDepending(DataTypeRef_FBcl depType,
int strongness)
Registers a depending data type.
|
(package private) void |
stopConnection(java.lang.String name) |
DataTypeRef_FBcl |
takeOverUsageFrom(DataTypeRef_FBcl old)
Replace the old type in all its connections. old should be never more used then.
|
java.lang.String |
toString() |
static int instanceCt
final int instanceId
DataType_FBcl dt
public java.util.List<PinDtype_FBcl> connections
public java.util.List<DataTypeRef_FBcl.Dependency> deps
private static java.util.Map<java.lang.Character,DataTypeRef_FBcl> mapTypecharToComplex
static final java.util.Map<java.lang.String,DataTypeRef_FBcl> stdTypes
public DataTypeRef_FBcl(DataType_FBcl refdt)
private DataTypeRef_FBcl(DataType_FBcl refdt, int instanceId)
public DataTypeRef_FBcl(DataTypeRef_FBcl src)
DataType
dt
itself is cloned too if it is not a fully determined type.src
- The given DataTypeRef in a type definition.public DataType_FBcl dt()
public boolean checkCopyFrom(DataTypeRef_FBcl src, int zVectorDim, int what)
src
- A second type. src is not changed. src maybe null, then no action is done, return true.zVectorDim
- from DinoutType_FBcl#zVectorDim
#sizeArray
was changed. (check and reset it firstly).
public boolean determineFromToAllDependings(DataTypeRef_FBcl src, int zVectorDim, int what)
src
- A second type. src is not changed. src maybe null, then no action is done, return true.zVectorDim
- from DinoutType_FBcl#zVectorDim
#sizeArray
was changed. (check and reset it firstly).
private void determineNondefAspectsAllDependings(DataTypeRef_FBcl src, int zVectorDim, java.util.HashMap<DataTypeRef_FBcl,DataTypeRef_FBcl> done, int what, int recursion)
public boolean determineNondefAspects(DataTypeRef_FBcl src, int zVectorDim, int what)
Module_FBlock_JgenMdl#replaceTypesInModuleForTranslation(Callmodule_FBlock_JgenMdl)
It determines all attributes which are not determined elsewhere.src
- bForeach
- void stopConnection(java.lang.String name)
public void registerConnection(PinDtype_FBcl con)
DataTypeRef_FBcl
designation to the given connection and registers the connection on this.con
- public void deregisterConnection(Pin_FBcl con)
public DataTypeRef_FBcl takeOverUsageFrom(DataTypeRef_FBcl old)
old
- the old instance for the connections.public void registerDepending(DataTypeRef_FBcl depType, int strongness)
depType
- Another Dtype which is registered to be depending on this.
deps
- ok, no registering is done. But stronger dependency will be stored.
public boolean isDepending(DataTypeRef_FBcl deptype)
public DataTypeRef_FBcl findEquDepending(DataTypeRef_FBcl cmp)
cmp
- void infoConnections(java.lang.Appendable ap)
public java.lang.String toString()
toString
in class java.lang.Object
private static java.util.Map<java.lang.String,DataTypeRef_FBcl> createStdTypes()
public static DataTypeRef_FBcl getDataType(java.lang.String typename, int sizeArray, int baseArray)
public static DataTypeRef_FBcl getDataType(java.lang.String typename, DataType_FBcl.RealOrComplex rcmplx, int sizeArray)
public static DataTypeRef_FBcl[] clone_dtypes(DataTypeRef_FBcl[] orig)