public class DataType_FBcl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DataType_FBcl.RealOrComplex |
Modifier and Type | Field and Description |
---|---|
boolean |
bfix
True then the type is fully deterministic.
|
char |
charPrimitive
If not 0 then it is the Java primitive character identification FDISBLZ for float, double, int short, byte, long, boolean.
|
static DataType_FBcl |
dbgdType |
(package private) int |
instanceId |
(package private) static int |
instanceIdCt |
static java.util.Map<java.lang.String,java.lang.Character> |
mapComplexToChar
Map to translate a complex block with several types.
|
static java.util.Map<java.lang.String,java.lang.String> |
mapComplexToReal
Map to translate a complex block with several types.
|
(package private) static java.util.Map<java.lang.String,DataType_FBcl> |
mapComplexToRealType
Map to translate a complex block with several types.
|
static java.util.Map<java.lang.String,java.lang.String> |
mapRealToComplex
Map to translate a real type to its complex block
|
(package private) static java.util.Map<java.lang.Character,DataType_FBcl> |
mapTypecharToComplex
Map to translate a real type to its complex block
|
static java.util.Map<java.lang.Character,DataType_FBcl> |
mapTypecharToReal
Map to translate a real type to its complex block
|
(package private) static java.lang.String |
orderType |
static java.util.Map<java.lang.String,java.lang.Character> |
primitiveChars |
DataType_FBcl.RealOrComplex |
realOrComplex
c for complex, r for real, 0 for undefined.
|
int |
sizeArray
0=scalar , 1 = vector with 1 element.
|
(package private) static java.util.Map<java.lang.String,DataType_FBcl> |
stdAnyTypes
That are all known flexible types sorted by name of IEC61499.
|
(package private) static java.util.Map<java.lang.String,DataType_FBcl> |
stdTypes
That are all standard fix types sorted by name of IEC61499.
|
java.lang.String |
sTypeJava
Type in Java, either a primitive or a class type.
|
static java.lang.String |
sTypeNotDeterminded |
static DataType_FBcl |
typeBoolean |
char |
typeChar |
int |
XXXstepTime
Step time info.
|
int |
XXXXXzVectorDim |
Modifier | Constructor and Description |
---|---|
private |
DataType_FBcl() |
private |
DataType_FBcl(char typeChar,
int sizeArray,
int zVectorDim) |
|
DataType_FBcl(DataType_FBcl src)
Copy constructor.
|
private |
DataType_FBcl(DataType_FBcl src,
int zVectorDim)
Copy constructor.
|
|
DataType_FBcl(java.lang.String sType)
Creates a user defined type with a given type name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkSetCharPrimitive() |
boolean |
checkType(DataType_FBcl cp)
Only invoked but not evaluated in PrepareFromSlx::associateLines()
|
boolean |
compatible(DataType_FBcl cmp,
int zVectorDim)
Returns true if this is compatible with cmp.
|
private static java.util.Map<java.lang.String,DataType_FBcl> |
createStdTypes() |
(package private) void |
dbgObj() |
boolean |
equ(DataType_FBcl cp)
Check whether the cmp contains the same info.
|
static DataType_FBcl |
getStdtype(java.lang.String typename,
DataType_FBcl.RealOrComplex rcplx,
int sizeArray)
Searches and returns a Standard type, returns null if typename not found.
|
char |
getTypeChar()
Gets a character which represents the type.
|
java.lang.String |
info(int zVectorDimConnection) |
boolean |
isDeterministic() |
boolean |
isMoreDeterministic(DataType_FBcl cp)
Returns true if this is more deterministic as cp.
|
boolean |
isPrimitive() |
boolean |
isUserDefinedType() |
boolean |
setCheckEqual(DataType_FBcl src)
Supplements some properties from src in this.
|
private void |
setTypeJava(DataType_FBcl src) |
void |
sizeArray(int val) |
java.lang.String |
toString() |
final int instanceId
static int instanceIdCt
public static DataType_FBcl dbgdType
static java.util.Map<java.lang.String,DataType_FBcl> stdTypes
static java.util.Map<java.lang.String,DataType_FBcl> stdAnyTypes
public static final DataType_FBcl typeBoolean
public java.lang.String sTypeJava
public static final java.lang.String sTypeNotDeterminded
public char charPrimitive
public char typeChar
public DataType_FBcl.RealOrComplex realOrComplex
public int sizeArray
public int XXXstepTime
GenJavaPrj_JgenMdl#stepTime(int)
public final boolean bfix
public final int XXXXXzVectorDim
static java.lang.String orderType
public static java.util.Map<java.lang.String,java.lang.Character> primitiveChars
public static java.util.Map<java.lang.String,java.lang.String> mapComplexToReal
public static java.util.Map<java.lang.String,java.lang.String> mapRealToComplex
static java.util.Map<java.lang.Character,DataType_FBcl> mapTypecharToComplex
public static java.util.Map<java.lang.Character,DataType_FBcl> mapTypecharToReal
static java.util.Map<java.lang.String,DataType_FBcl> mapComplexToRealType
public static java.util.Map<java.lang.String,java.lang.Character> mapComplexToChar
private DataType_FBcl(DataType_FBcl src, int zVectorDim)
src
- The source type which's info are copiedzVectorDim
- from the associated DinoutType_FBcl#zVectorDim
:
If the connection is a sliced connection, its type should have sizeArray ==0. It is asserted.
This #sizeArray gets -1, for a free vector in that case.
Note: If the zVectorDim is transferred to the destination connection for this type, set this arg to 0.public DataType_FBcl(DataType_FBcl src)
src
- The source type which's info are copiedzVectorDim
- from the associated DinoutType_FBcl#zVectorDim
:
If the connection is a sliced connection, its type should have sizeArray ==0. It is asserted.
This #sizeArray gets -1, for a free vector in that case.
Note: If the zVectorDim is transferred to the destination connection for this type, set this arg to 0.private DataType_FBcl()
public DataType_FBcl(java.lang.String sType)
private DataType_FBcl(char typeChar, int sizeArray, int zVectorDim)
public boolean checkSetCharPrimitive()
public void sizeArray(int val)
public boolean equ(DataType_FBcl cp)
cmp
- public boolean setCheckEqual(DataType_FBcl src)
src
- public boolean compatible(DataType_FBcl cmp, int zVectorDim)
cmp
- maybe null, then it is compatible, returns true.public boolean isMoreDeterministic(DataType_FBcl cp)
#same(...)
, for example this can be a double_complex scalar, cp can be an float_complex scalar.private void setTypeJava(DataType_FBcl src)
public boolean isDeterministic()
public char getTypeChar()
sTypeJava
and realOrComplex
are not specified.
public boolean checkType(DataType_FBcl cp)
cp
- void dbgObj()
public java.lang.String info(int zVectorDimConnection)
public boolean isUserDefinedType()
public boolean isPrimitive()
public java.lang.String toString()
toString
in class java.lang.Object
private static java.util.Map<java.lang.String,DataType_FBcl> createStdTypes()
public static DataType_FBcl getStdtype(java.lang.String typename, DataType_FBcl.RealOrComplex rcplx, int sizeArray)