|
|||||||||
| 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
public class BinaryObject
BinaryObject represents an object that has on/off states.
StateChangeListener,
Serialized Form| Field Summary | |
|---|---|
static java.lang.Boolean |
OFF
|
static java.lang.Boolean |
ON
|
| Constructor Summary | |
|---|---|
BinaryObject()
Creats an BinaryObject |
|
BinaryObject(boolean on)
Creats an BinarDevice with the given value |
|
| Method Summary | |
|---|---|
boolean |
isOn()
Gets the current state of this Device. |
void |
setOn(boolean on)
Sets the current state of this Device. |
boolean |
stateEquals(java.lang.Object o)
compares state of the object |
| 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 |
| Field Detail |
|---|
public static final java.lang.Boolean ON
public static final java.lang.Boolean OFF
| Constructor Detail |
|---|
public BinaryObject()
BinaryObject
public BinaryObject(boolean on)
BinarDevice with the given value
on - initial value| Method Detail |
|---|
public boolean isOn()
Device.
public void setOn(boolean on)
Device.
on - current statepublic boolean stateEquals(java.lang.Object o)
stateEquals in class StateObjecto - value to be compared to current state
StateObject.stateEquals(Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||