public class PowerMeterProxy extends DeviceProxy<PowerMeter> implements PowerMeter
UNKNOWN_VALUE
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
public int getInstantConsumption()
PowerMeter
getInstantConsumption
in interface PowerMeter
PowerMeter.UNKNOWN_VALUE
if unknown.public void requestInstantConsumptionUpdate() throws java.io.IOException
PowerMeter
requestInstantConsumptionUpdate
in interface PowerMeter
java.io.IOException
- if there is a communication error with the devicepublic int getAccumulatedConsumption()
PowerMeter
getAccumulatedConsumption
in interface PowerMeter
PowerMeter.UNKNOWN_VALUE
if unknown.public void requestAccumulatedConsumptionUpdate() throws java.io.IOException
PowerMeter
requestAccumulatedConsumptionUpdate
in interface PowerMeter
java.io.IOException
- if there is a communication error with the devicepublic void resetAccumulatedConsumption()
PowerMeter
resetAccumulatedConsumption
in interface PowerMeter