public class TLcdPowerUnit extends Object
Modifier and Type | Field and Description |
---|---|
static TLcdPowerUnit |
KW_UNIT
Kilowatt.
|
static TLcdPowerUnit |
MW_UNIT
Megawatt.
|
static TLcdPowerUnit |
W_UNIT
Watt.
|
Modifier and Type | Method and Description |
---|---|
static TLcdPowerUnit[] |
getAllPowerUnits()
Returns all
TLcdPowerUnit objects to consider in a JVM session. |
double |
getToWattFactor()
Returns the factor to apply to convert a power expressed in the
TLcdPowerUnit into a power in Watt. |
String |
getUnitName()
Returns the name of the
TLcdPowerUnit (e.g. |
String |
getUnitShortName()
Returns the short name of the
TLcdPowerUnit (e.g. |
static void |
setAllPowerUnits(TLcdPowerUnit[] aAllPowerUnitArray)
Sets statically all
TLcdPowerUnit objects to consider in a JVM session. |
String |
toString()
Returns the unit name.
|
public static final TLcdPowerUnit KW_UNIT
public static final TLcdPowerUnit MW_UNIT
public static final TLcdPowerUnit W_UNIT
public String getUnitName()
TLcdPowerUnit
(e.g. Watt, Kilohertz, etc ...).TLcdPowerUnit
(e.g. Watt, Kilohertz, etc ...)public String getUnitShortName()
TLcdPowerUnit
(e.g. Hz, KHz, etc ...).TLcdPowerUnit
(e.g. Hz, KHz, etc ...)public double getToWattFactor()
TLcdPowerUnit
into a power in Watt.TLcdPowerUnit
into a power in Wattpublic static TLcdPowerUnit[] getAllPowerUnits()
TLcdPowerUnit
objects to consider in a JVM session.TLcdPowerUnit
objects to consider in a JVM sessionpublic static void setAllPowerUnits(TLcdPowerUnit[] aAllPowerUnitArray)
TLcdPowerUnit
objects to consider in a JVM session.
Typically, this method should be called in the main of the application.aAllPowerUnitArray
- the power units to consider in a JVM session