Class DataType

java.lang.Object
   |
   +----DataType

class DataType
extends Object
The type of the data a module operates on.

Version:
$Revision: 1.10 $

Variable Index

 o codeClass
The class that holds the code for each `variable' of this data type.
 o defaultFixedFileName
The default fixed filename as it is defined in the module description file.
 o logicalType
The logical data type.
 o logicalTypeTag
Analogue to physicalTypeTag.
 o physicalType
The physical data type.
 o physicalTypeTag
A short version of the physical data type.

Constructor Index

 o DataType(String, String, String)

Method Index

 o getCodeClass()
 o getDataClassName()
A data class can be determined by the physical type.
 o getDefaultFixedFileName()
 o getLogicalType()
 o getLogicalTypeTag()
 o getPhysicalType()
 o getPhysicalTypeTag()

Variables

 o physicalType
 private String physicalType
The physical data type. Identifies the physical data type of a connector, what the extension would be if it was stored on disk. For example gif, mrp or txt.

 o logicalType
 private String logicalType
The logical data type. A data type is identified by a physical type and a logical type. One physical type can be divided into different connectors by its logical type. This allows the framework to recognise a distinction between two connectors that both have the same physical type. For example: the logical types eyes and mouth. The logical type also determines the name of the class that holds the code for each `variable' of this data type. This is a class that implements the framework.Data interface.

See Also:
Data
 o physicalTypeTag
 private String physicalTypeTag
A short version of the physical data type. This string can be used in the construction of the actual file name the data is stored in, while physicalType is a more descriptive string.

 o logicalTypeTag
 private String logicalTypeTag
Analogue to physicalTypeTag.

See Also:
physicalType
 o defaultFixedFileName
 private String defaultFixedFileName
The default fixed filename as it is defined in the module description file.

 o codeClass
 private Class codeClass
The class that holds the code for each `variable' of this data type. This class must implement the framework.Data interface.

See Also:
Data

Constructors

 o DataType
 DataType(String physicalType,
          String logicalType,
          String defaultFixedFileName)

Methods

 o getPhysicalType
 String getPhysicalType()
 o getLogicalType
 String getLogicalType()
 o getPhysicalTypeTag
 String getPhysicalTypeTag()
 o getLogicalTypeTag
 String getLogicalTypeTag()
 o getDefaultFixedFileName
 String getDefaultFixedFileName()
 o getDataClassName
 public String getDataClassName()
A data class can be determined by the physical type.

 o getCodeClass
 Class getCodeClass() throws ClassNotFoundException
Returns:
A Class object for the class that holds the code for this data type. This class is dynamically loaded the first time this method is called. The name of the file the bytecode is loaded from is logicalType.
Throws: ClassNotFoundException
if the class could not be found.
See Also:
logicalType, Class