public class SwitchWithReturnStateProxy extends DeviceProxy<SwitchWithReturnState> implements SwitchWithReturnState
UNKNOWN_NAME
Constructor and Description |
---|
SwitchWithReturnStateProxy() |
Modifier and Type | Method and Description |
---|---|
int |
getLastKnownState()
Get the last known state of this device.
|
void |
off()
Change the switch state to off.
|
void |
on()
Change the switch state to on.
|
void |
requestStateUpdate()
Ask for this device's state to be updated.
|
getChildren, getDescriptor, getName, getParent
getReference, invoke, invokeBoolean, invokeByte, invokeChar, invokeDouble, invokeFloat, invokeInt, invokeLong, invokeRef, invokeShort
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptor, getName, getParent
public int getLastKnownState()
SwitchWithReturnState
getLastKnownState
in interface SwitchWithReturnState
public void off() throws IOException
Switch
off
in interface Switch
IOException
- if there is a communication error with the devicepublic void on() throws IOException
Switch
on
in interface Switch
IOException
- if there is a communication error with the devicepublic void requestStateUpdate() throws IOException
SwitchWithReturnState
requestStateUpdate
in interface SwitchWithReturnState
IOException
- if there is a communication error with the device