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 $

Variable Index

 o codeClass
The class containing the algoritm of the module.
 o codeClassFilename
The name of the file containing the class that implements the actual algoritm the module performs.
 o inDataTypeList
 o MDFileName
 o moduleDescription
 o name
 o nrOfInDataTypes
 o nrOfOutDataTypes
 o nrOfParameterTypes
 o outDataTypeList
 o parameterTypeList

Constructor Index

 o ModuleType(Network, String)

Method Index

 o clearCodeClass()
Releases this class' only reference to the class containing the algoritm of the module.
 o getCodeClass()
Returns the class that implements the actual algoritm the module performs.
 o getCodeClassFilename()
 o getMDFileName()
 o getModuleDescription()
 o getName()
 o newInDataType(String[])
Add physical and logical type to the inconnector typelist of this module when the investigated inconnector is a new connectortype.
 o newOutDataType(String[])
Add physical and logical type to the outconnector typelist of this module when the investigated outconnector is a new connectortype.
 o newParameterType(String[])
 o printMDFile()
 o setCodeClassFilename(String)
 o setMDFileName(String)
 o setModuleDescription(String)
 o setName(String)

Variables

 o MDFileName
 private String MDFileName
 o name
 private String name
 o moduleDescription
 private String moduleDescription
 o 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.

 o 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().

 o inDataTypeList
 private DataType inDataTypeList[]
 o outDataTypeList
 private DataType outDataTypeList[]
 o parameterTypeList
 private ParameterType parameterTypeList[]
 o nrOfInDataTypes
 private int nrOfInDataTypes
 o nrOfOutDataTypes
 private int nrOfOutDataTypes
 o nrOfParameterTypes
 private int nrOfParameterTypes

Constructors

 o ModuleType
 ModuleType(Network network,
            String MDFileName)

Methods

 o 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
 o 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.

 o getMDFileName
 String getMDFileName()
 o setMDFileName
 void setMDFileName(String MDFileName)
 o getName
 String getName()
 o setName
 void setName(String name)
 o getModuleDescription
 String getModuleDescription()
 o setModuleDescription
 void setModuleDescription(String moduleDescription)
 o getCodeClassFilename
 String getCodeClassFilename()
 o setCodeClassFilename
 void setCodeClassFilename(String codeClassFilename)
 o newParameterType
 ParameterType newParameterType(String cleanLines[])
 o 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
 o 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
 o printMDFile
 void printMDFile()