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

      boolean isModuleLoaded(String moduleID)
      Parameters:
      moduleID - local ID of module
      Returns:
      true if module is loaded, false otherwise
    • getModuleById

      ModuleType getModuleById(String moduleID) throws SensorHubException
      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