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
FieldsModifier and TypeFieldDescriptionstatic final TLcdPowerUnitKilowatt.static final TLcdPowerUnitMegawatt.static final TLcdPowerUnitWatt. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdPowerUnit[]Returns allTLcdPowerUnitobjects to consider in a JVM session.doubleReturns the factor to apply to convert a power expressed in theTLcdPowerUnitinto a power in Watt.Returns the name of theTLcdPowerUnit(e.g.Returns the short name of theTLcdPowerUnit(e.g.static voidsetAllPowerUnits(TLcdPowerUnit[] aAllPowerUnitArray) Sets statically allTLcdPowerUnitobjects 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 theTLcdPowerUnitinto a power in Watt.- Returns:
- the factor to apply to convert a power expressed in the
TLcdPowerUnitinto a power in Watt
-
getAllPowerUnits
Returns allTLcdPowerUnitobjects to consider in a JVM session.- Returns:
- all
TLcdPowerUnitobjects to consider in a JVM session
-
setAllPowerUnits
Sets statically allTLcdPowerUnitobjects 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.
-