public class ZwaveNode extends ej.basedriver.impl.AbstractNode<ZwaveController> implements SendDataListener
RequestFrameListener.RequestFrameError
Modifier and Type | Field and Description |
---|---|
protected byte |
nodeid
Id of the node.
|
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() |
<D extends ej.ecom.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) |
public ZwaveNode(ZwaveController controller, byte nodeid)
controller
- the controller.nodeid
- the id of the node.public java.lang.String getName()
getName
in interface ej.ecom.Device
public byte getNodeUid()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public <D extends ej.ecom.Device> ej.ecom.HardwareDescriptor<D> getDescriptor()
getDescriptor
in interface ej.ecom.Device
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()
exclude
in interface ej.basedriver.Node
public void callbackComplete(byte[] bytes, int commandClassIndex)
callbackComplete
in interface SendDataListener