|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.commons.responsive.condition.AbstractCondition
jhomenet.commons.responsive.condition.SensorCondition<ValueSensor>
jhomenet.commons.responsive.condition.ValueCondition
public class ValueCondition
An interface defining a sensor responsive value condition.
Id: $Id: $
| Constructor Summary | |
|---|---|
ValueCondition(java.lang.String conditionName,
ValueSensor valueSensor,
java.lang.Integer ioChannel,
ValueConditionOperator testOperator,
ValueData testValue)
Constructor. |
|
ValueCondition(java.lang.String conditionName,
ValueSensor valueSensor,
ValueConditionOperator testOperator,
ValueData testValue)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Boolean |
evaluate()
Evaluation the condition. |
ValueConditionOperator |
getTestOperator()
|
ValueData |
getTestValue()
|
int |
hashCode()
|
void |
setTestOperator(ValueConditionOperator testOperator)
Set the test operator. |
void |
setTestValue(ValueData testValue)
Set the test value. |
| Methods inherited from class jhomenet.commons.responsive.condition.SensorCondition |
|---|
getChannel, getHardwareAddr, getSensor, setSensor |
| Methods inherited from class jhomenet.commons.responsive.condition.AbstractCondition |
|---|
evaluateToString, getConditionName, getId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueCondition(java.lang.String conditionName,
ValueSensor valueSensor,
java.lang.Integer ioChannel,
ValueConditionOperator testOperator,
ValueData testValue)
conditionName - Condition namevalueSensor - Reference to the value sensorioChannel - The I/O channeltestOperator - The test operatortestValue - The test value
public ValueCondition(java.lang.String conditionName,
ValueSensor valueSensor,
ValueConditionOperator testOperator,
ValueData testValue)
conditionName - Condition namevalueSensor - Reference to the value sensortestOperator - The test operatortestValue - The test value| Method Detail |
|---|
public final void setTestOperator(ValueConditionOperator testOperator)
testOperator - public final ValueConditionOperator getTestOperator()
public void setTestValue(ValueData testValue)
testValue - public final ValueData getTestValue()
public java.lang.Boolean evaluate()
throws ResponsiveException
Condition
ResponsiveExceptionCondition.evaluate()public int hashCode()
hashCode in interface ConditionhashCode in class SensorCondition<ValueSensor>Object.hashCode()public boolean equals(java.lang.Object obj)
equals in interface Conditionequals in class SensorCondition<ValueSensor>Object.equals(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||