wtanaka.praya.module
Class ModuleManager
java.lang.Object
|
+--wtanaka.praya.module.ModuleManager
- public class ModuleManager
- extends java.lang.Object
An ordered list of modules, along with methods to start new modules
and manage the list.
Return to
or the Praya Homepage
- Version:
- $Name: $ $Date: 2001/10/10 09:41:42 $
- Author:
- $Author: wtanaka $
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
MODULE_TABLE_SIZE
public static final int MODULE_TABLE_SIZE
modules
private Module[] modules
modulesAllocIndex
int modulesAllocIndex
ModuleManager
public ModuleManager()
assignModuleID
private int assignModuleID(Module module)
throws FailedLoadException
- Returns:
- the id allocated for the given module.
loadModule
public int loadModule(java.lang.Class moduleClass,
Protocol[] prots)
throws FailedLoadException
- Loads a module and starts it.
- Returns:
- the ID for the module.
- Throws:
FailedLoadException - if any of the reflection on the
module class failed.
removeModule
public void removeModule(int index)
- Removes a module, stopping it first.
getModule
public Module getModule(int index)
- Returns the given module.