de.fu_berlin.ties.context.sensor
Class BaseSensor
java.lang.Object
de.fu_berlin.ties.context.sensor.BaseSensor
- All Implemented Interfaces:
- Sensor
- Direct Known Subclasses:
- ListSensor
public abstract class BaseSensor
- extends Object
- implements Sensor
Abstract implementation of the
Sensor
interface that stores a
configuration and provides a factory method to initialize a set of sensors.
- Version:
- $Revision: 1.2 $, $Date: 2004/07/08 08:45:33 $, $Author: siefkes $
- Author:
- Christian Siefkes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.fu_berlin.ties.context.sensor.Sensor |
lookup |
BaseSensor
public BaseSensor(TiesConfiguration conf)
- Creates a new instance.
- Parameters:
conf
- the configuration to use
createSensors
public static Sensor[] createSensors(String[] classNames,
TiesConfiguration conf)
throws ProcessingException
- Factory method that initializes an array of sensors.
- Parameters:
classNames
- array of fully specified names of classes
implementing the Sensor
interface; each of them must provide
a constructor that accepts a TiesConfiguration
as single argumentconf
- used to configure the sensors
- Returns:
- an array of newly created sensors
- Throws:
ProcessingException
- if an error occurred while creating the
classifier
getConfig
public TiesConfiguration getConfig()
- Returns the configuration used by this instance.
- Returns:
- the configuration
Copyright © 2003-2004 Christian Siefkes. All Rights Reserved.