public class DemandTag extends Object implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
DemandTag.DemandType
Demand type.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) org.opentrafficsim.road.gtu.strategical.od.Category |
category
Category.
|
(package private) String |
categoryName
Category name.
|
(package private) DemandTag.DemandType |
demandType
Demand type.
|
(package private) org.djunits.value.vdouble.vector.FrequencyVector |
demandVector
Demand vector.
|
(package private) org.opentrafficsim.core.network.Node |
destination
Destination.
|
(package private) Double |
factor
Fraction.
|
(package private) double[] |
factors
Fractions.
|
(package private) org.opentrafficsim.road.gtu.strategical.od.Interpolation |
interpolation
Interpolation.
|
(package private) org.opentrafficsim.core.network.Node |
origin
Origin.
|
(package private) org.djunits.value.vdouble.vector.TimeVector |
timeVector
Time vector.
|
| Constructor and Description |
|---|
DemandTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
parse(NodeList nodeList,
XmlOdParser parser)
Parse demand nodes.
|
static double |
parseFactor(String value)
Parses a String of percentage or value to a double.
|
org.opentrafficsim.core.network.Node origin
org.opentrafficsim.core.network.Node destination
org.opentrafficsim.road.gtu.strategical.od.Interpolation interpolation
org.opentrafficsim.road.gtu.strategical.od.Category category
String categoryName
DemandTag.DemandType demandType
org.djunits.value.vdouble.vector.TimeVector timeVector
org.djunits.value.vdouble.vector.FrequencyVector demandVector
Double factor
double[] factors
static void parse(NodeList nodeList, XmlOdParser parser) throws XmlParserException
nodeList - NodeList; node listparser - XmlOdParser; parserXmlParserException - if category cannot be parsedpublic static double parseFactor(String value) throws XmlParserException
value - String; valueXmlParserException - if factor is not in range from 0 to 1Copyright © 2014–2018 Delft University of Technology. All rights reserved.