Class ModuleType
java.lang.Object
|
+----ModuleType
- class ModuleType
- extends Object
Class containing the information that several occurrances of the same
Module have in common.
- Version:
- $Revision: 1.25 $
-
codeClass
- The class containing the algoritm of the module.
-
codeClassFilename
- The name of the file containing the class that implements the actual
algoritm the module performs.
-
inDataTypeList
-
-
MDFileName
-
-
moduleDescription
-
-
name
-
-
nrOfInDataTypes
-
-
nrOfOutDataTypes
-
-
nrOfParameterTypes
-
-
outDataTypeList
-
-
parameterTypeList
-
-
ModuleType(Network, String)
-
-
clearCodeClass()
- Releases this class' only reference to the class containing the
algoritm of the module.
-
getCodeClass()
- Returns the class that implements the actual algoritm the module
performs.
-
getCodeClassFilename()
-
-
getMDFileName()
-
-
getModuleDescription()
-
-
getName()
-
-
newInDataType(String[])
- Add physical and logical type to the inconnector typelist of this module
when the investigated inconnector is a new connectortype.
-
newOutDataType(String[])
- Add physical and logical type to the outconnector typelist of this module
when the investigated outconnector is a new connectortype.
-
newParameterType(String[])
-
-
printMDFile()
-
-
setCodeClassFilename(String)
-
-
setMDFileName(String)
-
-
setModuleDescription(String)
-
-
setName(String)
-
MDFileName
private String MDFileName
name
private String name
moduleDescription
private String moduleDescription
codeClassFilename
private String codeClassFilename
- The name of the file containing the class that implements the actual
algoritm the module performs. The name of this file is taken from the
module description file.
codeClass
private Class codeClass
- The class containing the algoritm of the module. When the module is
not used, this should be the only reference to the class, so
ModuleType can `release' the class. Then when the class is needed
again, the JVM may load a new version of the class, if available.
The class can be released, or cleared, by using the method
clearCodeClass().
inDataTypeList
private DataType inDataTypeList[]
outDataTypeList
private DataType outDataTypeList[]
parameterTypeList
private ParameterType parameterTypeList[]
nrOfInDataTypes
private int nrOfInDataTypes
nrOfOutDataTypes
private int nrOfOutDataTypes
nrOfParameterTypes
private int nrOfParameterTypes
ModuleType
ModuleType(Network network,
String MDFileName)
getCodeClass
Class getCodeClass() throws ClassNotFoundException, LinkageError
- Returns the class that implements the actual algoritm the module
performs. The bytecode for this class is loaded from the file
codeClassFilename. ModuleType keeps a reference to the loaded class in
variable codeClass. While this reference exists, the JVM won't load
the class again, and the next call to this method gets a reference to
the same copy of the class. The reference can be released by using
method clearCodeClass(). If the class is no longer in use, and at the
next call to this method a new version of the class exists, the JVM
will load and use the new version.
- Throws: ClassNotFoundException
- if the class
could not be found.
- See Also:
- clearCodeClass, codeClass
clearCodeClass
void clearCodeClass()
- Releases this class' only reference to the class containing the
algoritm of the module. If there are no other references to the class
and a new version of the class exists, the JVM can use the new version
the next time getCodeClass() is called.
getMDFileName
String getMDFileName()
setMDFileName
void setMDFileName(String MDFileName)
getName
String getName()
setName
void setName(String name)
getModuleDescription
String getModuleDescription()
setModuleDescription
void setModuleDescription(String moduleDescription)
getCodeClassFilename
String getCodeClassFilename()
setCodeClassFilename
void setCodeClassFilename(String codeClassFilename)
newParameterType
ParameterType newParameterType(String cleanLines[])
newInDataType
DataType newInDataType(String cleanLines[])
- Add physical and logical type to the inconnector typelist of this module
when the investigated inconnector is a new connectortype.
- See Also:
- inDataTypeList
newOutDataType
DataType newOutDataType(String cleanLines[])
- Add physical and logical type to the outconnector typelist of this module
when the investigated outconnector is a new connectortype.
- See Also:
- outDataTypeList
printMDFile
void printMDFile()