|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.responsive.Condition<T>
jhomenet.responsive.SensorCondition<T>
jhomenet.responsive.ValueCondition<T>
public class ValueCondition<T extends ValueSensor>
| Nested Class Summary | |
|---|---|
static class |
ValueCondition.ValueOperator
Define the different operators. |
| Field Summary |
|---|
| Fields inherited from class jhomenet.responsive.SensorCondition |
|---|
sensor |
| Fields inherited from class jhomenet.responsive.Condition |
|---|
description, ID |
| Constructor Summary | |
|---|---|
ValueCondition()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Condition testCondition)
Test for equality between two conditions. |
boolean |
evaluateToBoolean()
Evaluate the condition. |
java.util.ArrayList<java.lang.String> |
getOperators()
Get a list of operators available for the condition. |
T |
getSensor()
Get a reference to the condition's sensor object. |
boolean |
isSimple()
Whether the expression element is simple. |
void |
setOperator(ValueCondition.ValueOperator operator)
Set the test operator. |
void |
setSensor(T sensor)
Set the condition's sensor object. |
void |
setTestValue(double testValue)
Set the test value. |
java.lang.String |
toString()
Get the string representation of the value condition. |
| Methods inherited from class jhomenet.responsive.Condition |
|---|
evaluateToString, setDescription, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueCondition()
| Method Detail |
|---|
public void setSensor(T sensor)
SensorCondition
setSensor in class SensorCondition<T extends ValueSensor>jhomenet.responsive.Condition#setSensor(Sensor)public T getSensor()
SensorCondition
getSensor in class SensorCondition<T extends ValueSensor>jhomenet.responsive.Condition#getSensor()public void setOperator(ValueCondition.ValueOperator operator)
operator - public void setTestValue(double testValue)
testValue - public java.util.ArrayList<java.lang.String> getOperators()
SensorCondition
getOperators in class SensorCondition<T extends ValueSensor>jhomenet.responsive.Condition#getOperators()public java.lang.String toString()
toString in class Condition<T extends ValueSensor>Object.toString()public boolean equals(Condition testCondition)
Condition
equals in class Condition<T extends ValueSensor>Condition.equals(jhomenet.responsive.Condition)public boolean evaluateToBoolean()
Condition
evaluateToBoolean in class Condition<T extends ValueSensor>Condition.evaluateToBoolean()public boolean isSimple()
ExpressionElement
ExpressionElement.isSimple()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||