jhomenet.responsive
Class SensorCondition<T extends Sensor>

java.lang.Object
  extended by jhomenet.responsive.Condition<T>
      extended by jhomenet.responsive.SensorCondition<T>
All Implemented Interfaces:
ExpressionElement
Direct Known Subclasses:
StateCondition, ValueCondition

public abstract class SensorCondition<T extends Sensor>
extends Condition<T>

Version:
$Revision$ Filename: $Source$ Description:
Author:
$Author$

Field Summary
protected  T sensor
          A reference to the sensor to check as part of the condition.
 
Fields inherited from class jhomenet.responsive.Condition
description, ID
 
Constructor Summary
SensorCondition()
          Constructor.
 
Method Summary
abstract  java.util.ArrayList<java.lang.String> getOperators()
          Get a list of operators available for the condition.
abstract  T getSensor()
          Get a reference to the condition's sensor object.
abstract  void setSensor(T sensor)
          Set the condition's sensor object.
 
Methods inherited from class jhomenet.responsive.Condition
equals, evaluateToBoolean, evaluateToString, setDescription, setID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jhomenet.responsive.ExpressionElement
isSimple
 

Field Detail

sensor

protected T extends Sensor sensor
A reference to the sensor to check as part of the condition.

Constructor Detail

SensorCondition

public SensorCondition()
Constructor.

Method Detail

getOperators

public abstract java.util.ArrayList<java.lang.String> getOperators()
Get a list of operators available for the condition.

Returns:
A list of operators

setSensor

public abstract void setSensor(T sensor)
Set the condition's sensor object.

Parameters:
sensor -

getSensor

public abstract T getSensor()
Get a reference to the condition's sensor object.

Returns:
A reference to the condition's sensor object


Copyright © 2004-2005 David Irwin. All Rights Reserved.