|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.lang.StateObject
sophware.home.lang.BinaryObject
sophware.home.logic.Condition
public class Condition
A condition becomes true when the given object matches the given value.
| Field Summary |
|---|
| Fields inherited from class sophware.home.lang.BinaryObject |
|---|
OFF, ON |
| Constructor Summary | |
|---|---|
Condition(BinaryObject obj)
Constructs a Condition |
|
Condition(StateObject obj,
java.lang.Object value)
Constructs a Condition |
|
| Method Summary | |
|---|---|
StateObject |
getObject()
Gets the object associated with this condition |
java.lang.Object |
getValue()
Gets the value |
boolean |
isTrue()
Gets the current state of the condition |
void |
stateChanged(StateObject obj)
Monitors object for state changes |
| Methods inherited from class sophware.home.lang.BinaryObject |
|---|
isOn, setOn, stateEquals |
| Methods inherited from class sophware.home.lang.StateObject |
|---|
addStateChangeListener, fireStateChange, removeStateChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Condition(BinaryObject obj)
Condition
This constructor is the same as Condition(obj,BinaryObject.ON)
obj - the binary object
public Condition(StateObject obj,
java.lang.Object value)
Condition
obj - the objectvalue - the value of the object that will makes this condition true| Method Detail |
|---|
public StateObject getObject()
public java.lang.Object getValue()
public boolean isTrue()
public void stateChanged(StateObject obj)
stateChanged in interface StateChangeListenerobj - the object that has changedStateChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||