public class PowerConsumptionStateTransformer extends Object
| Modifier and Type | Field and Description |
|---|---|
static Double |
DEFAULTVOLTAGE
Default voltage of a socket in volt.
|
| Constructor and Description |
|---|
PowerConsumptionStateTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static rst.domotic.state.PowerConsumptionStateType.PowerConsumptionState |
transform(Double value)
OpenHAB receives the value for the current in milli ampere and therefore
must be transformed.
|
static Double |
transform(rst.domotic.state.PowerConsumptionStateType.PowerConsumptionState powerConsumptionState)
Get the current in milli ampere from a PowerConsumptionState.
|
public static final Double DEFAULTVOLTAGE
public static rst.domotic.state.PowerConsumptionStateType.PowerConsumptionState transform(Double value)
value - the new value for the current in mApublic static Double transform(rst.domotic.state.PowerConsumptionStateType.PowerConsumptionState powerConsumptionState)
powerConsumptionState - the stateCopyright © 2015–2017 openbase.org. All rights reserved.