public class ZwaveThermostatMode extends java.lang.Object implements ej.basedriver.ThermostatMode, SendDataListener
RequestFrameListener.RequestFrameError
Constructor and Description |
---|
ZwaveThermostatMode(ZwaveThermostat thermostat,
int type,
byte modeId)
A thermostat mode on the Zwave protocol.
|
Modifier and Type | Method and Description |
---|---|
void |
callbackComplete(byte[] bytes,
int commandClassIndex) |
boolean |
equals(java.lang.Object obj) |
double |
getLastKnownValue() |
byte |
getModeId()
Gets the modeId.
|
ZwaveNode |
getNode() |
int |
getType() |
int |
hashCode() |
void |
notifyComplete() |
void |
notifyError(RequestFrameListener.RequestFrameError error) |
void |
requestUpdate() |
void |
setValue(double value) |
java.lang.String |
toString() |
void |
updateValue(double value)
Update the value and send notification.
|
public ZwaveThermostatMode(ZwaveThermostat thermostat, int type, byte modeId)
thermostat
- The node.type
- The type of mode.modeId
- The Zwave modeId.public void setValue(double value) throws java.io.IOException
setValue
in interface ej.basedriver.ThermostatMode
java.io.IOException
public void updateValue(double value)
value
- public double getLastKnownValue()
getLastKnownValue
in interface ej.basedriver.ThermostatMode
public void requestUpdate() throws java.io.IOException
requestUpdate
in interface ej.basedriver.ThermostatMode
java.io.IOException
public int getType()
getType
in interface ej.basedriver.ThermostatMode
public byte getModeId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
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 void callbackComplete(byte[] bytes, int commandClassIndex)
callbackComplete
in interface SendDataListener
public java.lang.String toString()
toString
in class java.lang.Object