Class DemandTag
java.lang.Object
org.opentrafficsim.road.network.factory.xml.demand.DemandTag
- All Implemented Interfaces:
Serializable
public class DemandTag extends Object implements Serializable
Demand.
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.
- 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
Modifier and Type Method Description static doubleparseFactor(String value)Parses a String of percentage or value to a double.
-
Constructor Details
-
DemandTag
public DemandTag()
-
-
Method Details
-
parseFactor
Parses 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
-