Package com.luciad.ais.model.util
Class TLcdPowerUnit
java.lang.Object
com.luciad.ais.model.util.TLcdPowerUnit
This class defines power unit constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdPowerUnit
Kilowatt.static final TLcdPowerUnit
Megawatt.static final TLcdPowerUnit
Watt. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdPowerUnit[]
Returns allTLcdPowerUnit
objects to consider in a JVM session.double
Returns the factor to apply to convert a power expressed in theTLcdPowerUnit
into a power in Watt.Returns the name of theTLcdPowerUnit
(e.g.Returns the short name of theTLcdPowerUnit
(e.g.static void
setAllPowerUnits
(TLcdPowerUnit[] aAllPowerUnitArray) Sets statically allTLcdPowerUnit
objects to consider in a JVM session.toString()
Returns the unit name.
-
Field Details
-
KW_UNIT
Kilowatt. -
MW_UNIT
Megawatt. -
W_UNIT
Watt.
-
-
Method Details
-
getUnitName
Returns the name of theTLcdPowerUnit
(e.g. Watt, Kilohertz, etc ...).- Returns:
- the name of the
TLcdPowerUnit
(e.g. Watt, Kilohertz, etc ...)
-
getUnitShortName
Returns the short name of theTLcdPowerUnit
(e.g. Hz, KHz, etc ...).- Returns:
- the short name of the
TLcdPowerUnit
(e.g. Hz, KHz, etc ...)
-
getToWattFactor
public double getToWattFactor()Returns the factor to apply to convert a power expressed in theTLcdPowerUnit
into a power in Watt.- Returns:
- the factor to apply to convert a power expressed in the
TLcdPowerUnit
into a power in Watt
-
getAllPowerUnits
Returns allTLcdPowerUnit
objects to consider in a JVM session.- Returns:
- all
TLcdPowerUnit
objects to consider in a JVM session
-
setAllPowerUnits
Sets statically allTLcdPowerUnit
objects to consider in a JVM session. Typically, this method should be called in the main of the application.- Parameters:
aAllPowerUnitArray
- the power units to consider in a JVM session
-
toString
Returns the unit name.
-