public class ZwaveNode extends AbstractNode<ZwaveController> implements SendDataListener
RequestFrameListener.RequestFrameError
Modifier and Type | Field and Description |
---|---|
protected byte |
nodeid
Id of the node.
|
children, controller
Constructor and Description |
---|
ZwaveNode(ZwaveController controller,
byte nodeid)
Instantiate a zwave node for a specific controller.
|
Modifier and Type | Method and Description |
---|---|
void |
callbackComplete(byte[] bytes,
int commandClassIndex) |
void |
createProfiles(byte basic,
byte generic,
byte specific)
Creates and add a profile.
|
boolean |
equals(java.lang.Object obj) |
boolean |
exclude()
Exclude this node.
|
<D extends Device> |
getDescriptor() |
java.lang.String |
getName() |
ZwaveNode |
getNode() |
byte |
getNodeUid()
Gets the node unique id.
|
boolean |
isAwake() |
boolean |
isListening() |
boolean |
isReady() |
void |
notifyComplete() |
void |
notifyError(RequestFrameListener.RequestFrameError error) |
void |
options(byte capabilities,
byte security)
Set the option.
|
void |
setAwake(boolean awake) |
void |
setListening(boolean listening) |
addChild, getChildren, getController, getParent
public ZwaveNode(ZwaveController controller, byte nodeid)
controller
- the controller.nodeid
- the id of the node.public java.lang.String getName()
public byte getNodeUid()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public <D extends Device> <any> getDescriptor()
public void createProfiles(byte basic, byte generic, byte specific)
basic
- The basic type of profile.generic
- The generic type.specific
- The specific type.ZwaveProtocol
public void options(byte capabilities, byte security)
capabilities
- security
- public boolean isAwake()
public void setAwake(boolean awake)
awake
- public boolean isListening()
public void setListening(boolean listening)
listening
- public boolean isReady()
public void notifyComplete()
notifyComplete
in interface RequestFrameListener
public void notifyError(RequestFrameListener.RequestFrameError error)
notifyError
in interface RequestFrameListener
public ZwaveNode getNode()
getNode
in interface SendDataListener
public boolean exclude()
Node
public void callbackComplete(byte[] bytes, int commandClassIndex)
callbackComplete
in interface SendDataListener