public final class LengthUnits extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
| Modifier and Type | Field and Description |
|---|---|
static Map<String,org.djunits.unit.LengthUnit> |
LENGTH_UNITS
the length units.
|
static Map<String,org.djunits.unit.LinearDensityUnit> |
PER_LENGTH_UNITS
the per-length units.
|
| Modifier and Type | Method and Description |
|---|---|
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.LengthUnit> |
parseLengthAbs(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
parseLengthRel(String s) |
static String |
parseLengthUnit(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.LinearDensityUnit> |
parsePerLengthAbs(String s) |
static String |
parsePerLengthUnit(String s) |
public static final Map<String,org.djunits.unit.LengthUnit> LENGTH_UNITS
public static String parseLengthUnit(String s) throws NetworkException
s - the string to parseNetworkException - when parsing failspublic static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.LengthUnit> parseLengthAbs(String s) throws NetworkException
s - the string to parseNetworkException - when parsing failspublic static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> parseLengthRel(String s) throws NetworkException
s - the string to parseNetworkException - when parsing failspublic static String parsePerLengthUnit(String s) throws NetworkException
s - the string to parseNetworkException - when parsing failspublic static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.LinearDensityUnit> parsePerLengthAbs(String s) throws NetworkException
s - the string to parseNetworkException - when parsing failsCopyright © 2014–2015 Delft University of Technology. All rights reserved.