|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CModuleManager
public class CModuleManager
Helper class for the InterfaceBase which enumerates the modules present in supplied module factories and returns said modules by ID or by name on request.
A list of all available modules can also be supplied.
| Field Summary | |
|---|---|
protected java.util.HashMap<java.lang.Long,CModuleFactory> |
m_mapModules
Map from modules' IDs to the modules themselves |
| Constructor Summary | |
|---|---|
CModuleManager()
|
|
| Method Summary | |
|---|---|
CDasherModule |
GetModule(long iID)
Gets a module with the given identifier |
CDasherModule |
GetModuleByName(java.lang.String strName)
Retrieves a module by name. |
void |
ListModules(int iType,
java.util.Collection<java.lang.String> vList)
Retrieves a list of all modules with a given type. |
void |
RegisterFactory(CModuleFactory Factory)
Enumerates all modules provided by a given factory and stores them in our internal map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<java.lang.Long,CModuleFactory> m_mapModules
| Constructor Detail |
|---|
public CModuleManager()
| Method Detail |
|---|
public void RegisterFactory(CModuleFactory Factory)
These modules can henceforth be retrieved using GetModuleByName or GetModule.
Factory - Factory to search for new modulespublic CDasherModule GetModule(long iID)
iID - ID of the required module
public CDasherModule GetModuleByName(java.lang.String strName)
strName - Name of the requested module
public void ListModules(int iType,
java.util.Collection<java.lang.String> vList)
Available types:
0 - Input device
1 - Input filter
iType - Type of modules to enumeratevList - Collection to be filled with the names of available
modules
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||