Class DemandTag
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.xml.demand.DemandTag
-
- All Implemented Interfaces:
java.io.Serializable
public class DemandTag extends java.lang.Object implements java.io.SerializableDemand.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 25 mei 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDemandTag.DemandTypeDemand type.
-
Constructor Summary
Constructors Constructor Description DemandTag()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doubleparseFactor(java.lang.String value)Parses a String of percentage or value to a double.
-
-
-
Method Detail
-
parseFactor
public static double parseFactor(java.lang.String value) throws XmlParserExceptionParses a String of percentage or value to a double.- Parameters:
value- String; value- Returns:
- double
- Throws:
XmlParserException- if factor is not in range from 0 to 1
-
-