public class Sim0MQUnitType extends Object implements Serializable
Copyright (c) 2016-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See Sim0MQ License.
Modifier and Type | Field and Description |
---|---|
static Sim0MQUnitType |
ABSOLUTETEMPERATURE
AbsoluteTemperature unit type with code 24.
|
static Sim0MQUnitType |
ACCELERATION
Acceleration unit type with code 1.
|
static Sim0MQUnitType |
ANGLE
Angle unit type with code 3.
|
static Sim0MQUnitType |
ANGLESOLID
AngleSolid unit type with code 2.
|
static Sim0MQUnitType |
AREA
Area unit type with code 5.
|
static Sim0MQUnitType |
DENSITY
Density unit type with code 6.
|
static Sim0MQUnitType |
DIMENSIONLESS
Dimensionless unit type with code 0.
|
static Sim0MQUnitType |
DIRECTION
Direction unit type with code 4.
|
static Sim0MQUnitType |
DURATION
Duration unit type with code 25.
|
static Sim0MQUnitType |
ELECTRICALCHARGE
ElectricalCharge unit type with code 7.
|
static Sim0MQUnitType |
ELECTRICALCURRENT
ElectricalCurrent unit type with code 8.
|
static Sim0MQUnitType |
ELECTRICALPOTENTIAL
ElectricalPotential unit type with code 9.
|
static Sim0MQUnitType |
ELECTRICALRESISTANCE
ElectricalResistance unit type with code 10.
|
static Sim0MQUnitType |
ENERGY
Energy unit type with code 11.
|
static Sim0MQUnitType |
FLOWMASS
FlowMass unit type with code 12.
|
static Sim0MQUnitType |
FLOWVOLUME
FlowVolume unit type with code 13.
|
static Sim0MQUnitType |
FORCE
Force unit type with code 14.
|
static Sim0MQUnitType |
FREQUENCY
Frequency unit type with code 15.
|
static Sim0MQUnitType |
LENGTH
Length unit type with code 16.
|
static Sim0MQUnitType |
LINEARDENSITY
LinearDensity unit type with code 18.
|
static Sim0MQUnitType |
MASS
Mass unit type with code 19.
|
static Sim0MQUnitType |
MONEY
Money unit type with code 100.
|
static Sim0MQUnitType |
MONEYPERAREA
MoneyPerArea unit type with code 101.
|
static Sim0MQUnitType |
MONEYPERDURATION
MoneyPerDuration unit type with code 105.
|
static Sim0MQUnitType |
MONEYPERENERGY
MoneyPerEnergy unit type with code 102.
|
static Sim0MQUnitType |
MONEYPERLENGTH
MoneyPerLength unit type with code 103.
|
static Sim0MQUnitType |
MONEYPERMASS
MoneyPerMass unit type with code 104.
|
static Sim0MQUnitType |
MONEYPERVOLUME
MoneyPerVolume unit type with code 106.
|
static Sim0MQUnitType |
POSITION
Position unit type with code 17.
|
static Sim0MQUnitType |
POWER
Power unit type with code 20.
|
static Sim0MQUnitType |
PRESSURE
Pressure unit type with code 21.
|
static Sim0MQUnitType |
SPEED
Speed unit type with code 22.
|
static Sim0MQUnitType |
TEMPERATURE
Temperature unit type with code 23.
|
static Sim0MQUnitType |
TIME
Time unit type with code 26.
|
static Sim0MQUnitType |
TORQUE
Torque unit type with code 27.
|
static Sim0MQUnitType |
VOLUME
Volume unit type with code 28.
|
Constructor and Description |
---|
Sim0MQUnitType(int code,
Class<U> djunitsType,
String name,
String description,
String siUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte |
getCode() |
String |
getDescription() |
Class<? extends org.djunits.unit.Unit<?>> |
getDjunitsType() |
String |
getName() |
String |
getSiUnit() |
static Class<? extends org.djunits.unit.Unit<?>> |
getUnitClass(byte code)
Return the unit class belonging to the byte code.
|
static <U extends org.djunits.unit.Unit<U>> |
getUnitCode(U unit)
Return the byte code belonging to the unit class.
|
static Sim0MQUnitType |
getUnitType(byte code)
Return the unit type belonging to the byte code.
|
static <U extends org.djunits.unit.Unit<U>> |
getUnitType(U unit)
Return the unit type belonging to the unit class.
|
int |
hashCode() |
String |
toString() |
public static final Sim0MQUnitType DIMENSIONLESS
public static final Sim0MQUnitType ACCELERATION
public static final Sim0MQUnitType ANGLESOLID
public static final Sim0MQUnitType ANGLE
public static final Sim0MQUnitType DIRECTION
public static final Sim0MQUnitType AREA
public static final Sim0MQUnitType DENSITY
public static final Sim0MQUnitType ELECTRICALCHARGE
public static final Sim0MQUnitType ELECTRICALCURRENT
public static final Sim0MQUnitType ELECTRICALPOTENTIAL
public static final Sim0MQUnitType ELECTRICALRESISTANCE
public static final Sim0MQUnitType ENERGY
public static final Sim0MQUnitType FLOWMASS
public static final Sim0MQUnitType FLOWVOLUME
public static final Sim0MQUnitType FORCE
public static final Sim0MQUnitType FREQUENCY
public static final Sim0MQUnitType LENGTH
public static final Sim0MQUnitType POSITION
public static final Sim0MQUnitType LINEARDENSITY
public static final Sim0MQUnitType MASS
public static final Sim0MQUnitType POWER
public static final Sim0MQUnitType PRESSURE
public static final Sim0MQUnitType SPEED
public static final Sim0MQUnitType TEMPERATURE
public static final Sim0MQUnitType ABSOLUTETEMPERATURE
public static final Sim0MQUnitType DURATION
public static final Sim0MQUnitType TIME
public static final Sim0MQUnitType TORQUE
public static final Sim0MQUnitType VOLUME
public static final Sim0MQUnitType MONEY
public static final Sim0MQUnitType MONEYPERAREA
public static final Sim0MQUnitType MONEYPERENERGY
public static final Sim0MQUnitType MONEYPERLENGTH
public static final Sim0MQUnitType MONEYPERMASS
public static final Sim0MQUnitType MONEYPERDURATION
public static final Sim0MQUnitType MONEYPERVOLUME
public Sim0MQUnitType(int code, Class<U> djunitsType, String name, String description, String siUnit)
U
- the Unitcode
- the byte code of the unit provided as an intdjunitsType
- the djunits data typename
- the unit namedescription
- the unit descriptionsiUnit
- the SI or default unit in SI-elementspublic static Sim0MQUnitType getUnitType(byte code)
code
- the code to search for.public static Class<? extends org.djunits.unit.Unit<?>> getUnitClass(byte code)
code
- the code to search for.public static <U extends org.djunits.unit.Unit<U>> Sim0MQUnitType getUnitType(U unit)
U
- the Unitunit
- the unit to search for.public static <U extends org.djunits.unit.Unit<U>> byte getUnitCode(U unit)
U
- the Unitunit
- the unit to search for.public final byte getCode()
public final Class<? extends org.djunits.unit.Unit<?>> getDjunitsType()
public final String getName()
public final String getDescription()
public final String getSiUnit()
Copyright © 2016–2018 Delft University of Technology. All rights reserved.