Enum Constant and Description |
---|
AMPERE
Unit of Current [A]
|
AMPERE_HOURS
Unit of Electric Charge
|
CUMULATED_SECONDS
Unit of cumulated time [s]
|
DEGREE_CELSIUS
Unit of Temperature [C]
|
DEZIDEGREE_CELSIUS
Unit of Temperature [dC]
|
HERTZ
Unit of Frequency [Hz]
|
HOUR
Unit of Time
|
KILOAMPERE_HOURS
Unit of Electric Charge
|
KILOOHM
Unit of Resistance [kOhm]
|
KILOVOLT_AMPERE
Unit of Apparent Power [kVA]
|
KILOVOLT_AMPERE_REACTIVE
Unit of Reactive Power [kvar]
|
KILOVOLT_AMPERE_REACTIVE_HOURS
Unit of Reactive Energy [kVArh]
|
KILOWATT
Unit of Active Power [kW]
|
KILOWATT_HOURS
Unit of Energy [kWh]
|
MICROOHM
Unit of Resistance [uOhm]
|
MILLIAMPERE
Unit of Current [mA]
|
MILLIAMPERE_HOURS
Unit of Electric Charge
|
MILLIHERTZ
Unit of Frequency [mHz]
|
MILLIOHM
Unit of Resistance [mOhm]
|
MILLISECONDS
Unit of Time [ms]
|
MILLIVOLT
Unit of Voltage [mV]
|
MILLIWATT
Unit of Active Power [mW]
|
MINUTE
Unit of Time
|
NONE
No Unit
|
OHM
Unit of Resistance [Ohm]
|
ON_OFF
On or Off
|
PERCENT
Percentage [%], 0-100
|
SECONDS
Unit of Time [s]
|
THOUSANDTH
Thousandth [‰], 0-1000
|
VOLT
Unit of Voltage [V]
|
VOLT_AMPERE
Unit of Apparent Power [VA]
|
VOLT_AMPERE_HOURS
Unit of Apparent Energy [VAh]
|
VOLT_AMPERE_REACTIVE
Unit of Reactive Power [var]
|
VOLT_AMPERE_REACTIVE_HOURS
Unit of Reactive Energy [varh]
|
WATT
Unit of Active Power [W]
|
WATT_HOURS
Unit of Energy [Wh]
|
WATT_HOURS_BY_WATT_PEAK
Unit of Energy [Wh/Wp]
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object value,
OpenemsType type) |
java.lang.String |
formatAsBaseUnit(java.lang.Object value,
OpenemsType type) |
int |
getAsBaseUnit(int value) |
Unit |
getBaseUnit() |
java.lang.String |
getSymbol() |
java.lang.String |
toString() |
static Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit NONE
public static final Unit PERCENT
public static final Unit THOUSANDTH
public static final Unit ON_OFF
public static final Unit WATT
public static final Unit MILLIWATT
public static final Unit KILOWATT
public static final Unit VOLT_AMPERE_REACTIVE
public static final Unit KILOVOLT_AMPERE_REACTIVE
public static final Unit VOLT_AMPERE
public static final Unit KILOVOLT_AMPERE
public static final Unit VOLT
public static final Unit MILLIVOLT
public static final Unit AMPERE
public static final Unit MILLIAMPERE
public static final Unit AMPERE_HOURS
public static final Unit MILLIAMPERE_HOURS
public static final Unit KILOAMPERE_HOURS
public static final Unit WATT_HOURS
public static final Unit KILOWATT_HOURS
public static final Unit VOLT_AMPERE_REACTIVE_HOURS
public static final Unit KILOVOLT_AMPERE_REACTIVE_HOURS
public static final Unit WATT_HOURS_BY_WATT_PEAK
public static final Unit VOLT_AMPERE_HOURS
public static final Unit HERTZ
public static final Unit MILLIHERTZ
public static final Unit DEGREE_CELSIUS
public static final Unit DEZIDEGREE_CELSIUS
public static final Unit SECONDS
public static final Unit MILLISECONDS
public static final Unit MINUTE
public static final Unit HOUR
public static final Unit CUMULATED_SECONDS
public static final Unit OHM
public static final Unit KILOOHM
public static final Unit MILLIOHM
public static final Unit MICROOHM
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Unit getBaseUnit()
public int getAsBaseUnit(int value)
public java.lang.String getSymbol()
public java.lang.String format(java.lang.Object value, OpenemsType type)
public java.lang.String formatAsBaseUnit(java.lang.Object value, OpenemsType type)
public java.lang.String toString()
toString
in class java.lang.Enum<Unit>