public class PowerMeterProxy extends DeviceProxy<PowerMeter> implements PowerMeter
UNKNOWN_VALUE
UNKNOWN_NAME
Constructor and Description |
---|
PowerMeterProxy() |
Modifier and Type | Method and Description |
---|---|
int |
getAccumulatedConsumption()
Get the accumulated power consumption in Watts / hour (positive integer).
|
int |
getInstantConsumption()
Get the instant power consumption in Watts (positive integer).
|
void |
requestAccumulatedConsumptionUpdate()
Ask for accumulated consumption to be updated.
|
void |
requestInstantConsumptionUpdate()
Ask for instant consumption to be updated.
|
void |
resetAccumulatedConsumption()
Reset the accumulated power consumption to zero.
|
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 getAccumulatedConsumption()
PowerMeter
getAccumulatedConsumption
in interface PowerMeter
PowerMeter.UNKNOWN_VALUE
if unknown.public int getInstantConsumption()
PowerMeter
getInstantConsumption
in interface PowerMeter
PowerMeter.UNKNOWN_VALUE
if unknown.public void requestAccumulatedConsumptionUpdate() throws IOException
PowerMeter
requestAccumulatedConsumptionUpdate
in interface PowerMeter
IOException
- if there is a communication error with the devicepublic void requestInstantConsumptionUpdate() throws IOException
PowerMeter
requestInstantConsumptionUpdate
in interface PowerMeter
IOException
- if there is a communication error with the devicepublic void resetAccumulatedConsumption()
PowerMeter
resetAccumulatedConsumption
in interface PowerMeter