Package org.sensorhub.api.module
Interface IModuleManager<ModuleType extends IModule<?>>
- Type Parameters:
ModuleType
-
- All Known Subinterfaces:
INetworkManager
- All Known Implementing Classes:
ModuleRegistry
public interface IModuleManager<ModuleType extends IModule<?>>
Base interface for all module managers. Module managers are used to manage all modules of the same type
- Since:
- Nov 12, 2010
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of all modules handled by this manager that are already loaded (i.e.getModuleById
(String moduleID) Retrieves a module instance by its local IDboolean
isModuleLoaded
(String moduleID)
-
Method Details
-
getLoadedModules
Collection<ModuleType> getLoadedModules()Gets the list of all modules handled by this manager that are already loaded (i.e. enabled)- Returns:
- list of module instances
-
isModuleLoaded
- Parameters:
moduleID
- local ID of module- Returns:
- true if module is loaded, false otherwise
-
getModuleById
Retrieves a module instance by its local ID- Parameters:
moduleID
- Id of module to retrieve- Returns:
- direct reference to the module instance
- Throws:
SensorHubException
- if no module with given ID can be found
-