|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.lang.DeviceAddress
public abstract class DeviceAddress
DeviceAddress uniquely identifies a Device on a home
network
| Constructor Summary | |
|---|---|
DeviceAddress()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Equals returns true if two addresses are equal. |
abstract int |
getAddress()
The getAddress method returns an integer representation
of the address. |
abstract HomeCommand |
getBrightCommand()
gets bright command for this address |
abstract HomeCommand |
getDimCommand()
gets dim command for this address |
abstract HomeCommand |
getHailCommand()
gets hail command for this address |
abstract HomeCommand |
getOffCommand()
gets off command for this address |
abstract HomeCommand |
getOnCommand()
gets on command for this address |
abstract HomeCommand |
getOnCommand(int level)
gets command to turn on to a specific level |
abstract HomeCommand |
getStatusRequestCommand()
gets status request comand for this address |
int |
hashCode()
HashCode is used by containers such as HashTable. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceAddress()
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
getAddress method.
equals in class java.lang.Objectobj - the object to be compared.
public int hashCode()
HashTable.
hashCode in class java.lang.Objectpublic abstract int getAddress()
getAddress method returns an integer representation
of the address. This integer is used as the objects
hashCode and as such it must adhere to that method's
constraints.
public abstract HomeCommand getOnCommand()
public abstract HomeCommand getOnCommand(int level)
level - the desired level
public abstract HomeCommand getOffCommand()
public abstract HomeCommand getDimCommand()
public abstract HomeCommand getBrightCommand()
public abstract HomeCommand getHailCommand()
public abstract HomeCommand getStatusRequestCommand()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||