Class PositionUnits
java.lang.Object
org.opentrafficsim.core.network.factory.xml.units.PositionUnits
public final class PositionUnits extends Object
Parser for position with unit.
Copyright (c) 2013-2019 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
- Author:
- Alexander Verbraeck
-
Field Summary
Fields Modifier and Type Field Description static Map<String,PositionUnit>POSITION_UNITSThe position units. -
Method Summary
Modifier and Type Method Description static PositionparsePosition(String s)static StringparsePositionUnit(String s)
-
Field Details
-
POSITION_UNITS
The position units.
-
-
Method Details
-
parsePositionUnit
- Parameters:
s- String; the string to parse- Returns:
- the unit as a String in the Map.
- Throws:
NetworkException- when parsing fails
-
parsePosition
- Parameters:
s- String; the string to parse- Returns:
- the next value.
- Throws:
NetworkException- when parsing fails
-