org.fosstrak.ale.server.readers.hal
Class HALManager

java.lang.Object
  extended by org.fosstrak.ale.server.readers.hal.HALManager

public class HALManager
extends java.lang.Object

the HALManager creates and maintains instances of the HAL readers.

Author:
sawielan

Method Summary
 org.fosstrak.hal.HardwareAbstraction define(java.lang.String halName, java.lang.String propFile, java.lang.String ImplementingClass)
          define a new HardwareAbstraction reader. if the reader already exists a reference to the reader is returned. otherwise a new reader is created.
static HALManager getInstance()
          create the singleton instance of the HALManager.
 void undefine(java.lang.String halName)
          removes a HAL reader. if there is no other adaptor using the instance of this HAL reader, the HAL will be destroyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

define

public org.fosstrak.hal.HardwareAbstraction define(java.lang.String halName,
                                                   java.lang.String propFile,
                                                   java.lang.String ImplementingClass)
define a new HardwareAbstraction reader. if the reader already exists a reference to the reader is returned. otherwise a new reader is created.

Parameters:
halName - the name of the HAL reader that shall be created.
propFile - the properties file for the reader.
ImplementingClass - the class to invoke that implements the hal (eg. org.fosstrak.hal.impl.sim.SimulatorController).
Returns:
an instance of a HardwareAbstraction reader.

undefine

public void undefine(java.lang.String halName)
removes a HAL reader. if there is no other adaptor using the instance of this HAL reader, the HAL will be destroyed.

Parameters:
halName - the name of the HAL reader that shall be undefined.

getInstance

public static HALManager getInstance()
create the singleton instance of the HALManager.

Returns:
an instance of the singleton HALManager.


Copyright © 2009. All Rights Reserved.