Package | Description |
---|---|
org.opentrafficsim.road.network.factory.xml.demand |
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
org.opentrafficsim.road.network.factory.xml.parser |
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
org.opentrafficsim.road.network.factory.xml.utils |
Utilities for the parsing.
|
Modifier and Type | Method and Description |
---|---|
void |
XmlOdParser.apply(InputStream stream)
Applies demand from stream.
|
void |
XmlOdParser.apply(InputStream stream,
ODOptions odOptions)
Applies demand from stream using OD options.
|
void |
XmlOdParser.apply(Node xmlNode)
Applies demand from xml node.
|
void |
XmlOdParser.apply(Node xmlNode,
ODOptions odOptions)
Applies demand from URL using OD options.
|
void |
XmlOdParser.apply(URL url)
Applies demand from URL.
|
void |
XmlOdParser.apply(URL url,
ODOptions odOptions)
Applies demand from URL using OD options.
|
ODMatrix |
XmlOdParser.build(InputStream stream)
Build demand from stream.
|
ODMatrix |
XmlOdParser.build(Node xmlNode)
Build demand from xml node.
|
ODMatrix |
XmlOdParser.build(URL url)
Build demand from URL.
|
static DemandTag.DemandType |
DemandTag.DemandType.fromLevelNode(Node level)
Returns the demand type based on a LEVEL tag.
|
GTUType |
XmlOdParser.getGTUType(String id)
Returns the GTU type for the given id.
|
static double |
DemandTag.parseFactor(String value)
Parses a String of percentage or value to a double.
|
Modifier and Type | Method and Description |
---|---|
static Experiment.TimeDoubleUnit<OTSSimulatorInterface> |
XmlNetworkLaneParser.build(InputStream xmlStream,
OTSRoadNetwork otsNetwork,
OTSSimulatorInterface simulator)
Parse the XML file and build the network.
|
static OTSRoadNetwork |
XmlNetworkLaneParser.build(String filename,
OTSRoadNetwork otsNetwork,
OTSSimulatorInterface simulator)
Parse the XML file and build the network.
|
static void |
DefinitionsParser.parseDefinitions(OTSRoadNetwork otsNetwork,
DEFINITIONS definitions,
boolean overwriteDefaults,
Map<String,ROADLAYOUT> roadLayoutMap,
Map<String,GTUTEMPLATE> gtuTemplates,
Map<String,StreamInformation> streamMap,
Map<LinkType,Map<GTUType,Speed>> linkTypeSpeedLimitMap)
Parse the DEFINITIONS tag in the OTS XML file.
|
static List<LaneBasedGTUGenerator> |
DemandParser.parseDemand(OTSRoadNetwork otsNetwork,
OTSSimulatorInterface simulator,
List<NETWORKDEMAND> demands,
Map<String,GTUTEMPLATE> gtuTemplates,
Map<String,LaneBasedStrategicalPlannerFactory<?>> factories,
Map<String,String> modelIdReferrals,
Map<String,StreamInformation> streamMap)
Creates generators and returns OD matrices.
|
static List<LaneBasedGTUGenerator> |
GeneratorSinkParser.parseGenerators(OTSRoadNetwork otsNetwork,
NETWORKDEMAND demand,
Map<String,GTUTEMPLATE> gtuTemplates,
OTSSimulatorInterface simulator,
Map<String,StreamInformation> streamMap)
Parse the Generators.
|
static void |
DefinitionsParser.parseGtuTemplates(DEFINITIONS definitions,
OTSRoadNetwork otsNetwork,
boolean overwriteDefaults,
Map<String,GTUTEMPLATE> gtuTemplates,
Map<String,StreamInformation> streamMap)
Store the GTUTEMPLATE tags in the OTS XML file.
|
static void |
DefinitionsParser.parseGtuTypes(DEFINITIONS definitions,
OTSRoadNetwork otsNetwork,
boolean overwriteDefaults)
Parse the GTUTYPES tag in the OTS XML file.
|
static void |
DefinitionsParser.parseLaneTypes(DEFINITIONS definitions,
OTSRoadNetwork otsNetwork,
boolean overwriteDefaults)
Parse the LANETYPES tag in the OTS XML file.
|
static void |
DefinitionsParser.parseLinkTypes(DEFINITIONS definitions,
OTSRoadNetwork otsNetwork,
boolean overwriteDefaults,
Map<LinkType,Map<GTUType,Speed>> linkTypeSpeedLimitMap)
Parse the LINKTYPES tag in the OTS XML file.
|
static <U extends Unit<U>,T extends AbstractDoubleScalarRel<U,T>,K> |
ModelParser.parseModel(OTSRoadNetwork otsNetwork,
List<MODELTYPE> models,
InputParameters inputParameters,
Map<String,ParameterType<?>> parameterTypes,
Map<String,StreamInformation> streamMap,
Map<String,ParameterFactory> parameterFactories)
Creates strategical planner factories for models.
|
static <U extends Unit<U>,T extends AbstractDoubleScalarRel<U,T>,K> |
ModelParser.parseParameters(OTSRoadNetwork otsNetwork,
List<MODELTYPE> models,
InputParameters inputParameters,
Map<String,ParameterType<?>> parameterTypes,
Map<String,StreamInformation> streamMap)
Parse parameter factories.
|
static void |
DefinitionsParser.parseParameterTypes(DEFINITIONS definitions,
OTSRoadNetwork otsNetwork,
Map<String,ParameterType<?>> parameterMap)
Parse the PARAMETERTYPE tags in the OTS XML file.
|
static void |
DefinitionsParser.parseRoadLayouts(DEFINITIONS definitions,
OTSRoadNetwork otsNetwork,
Map<String,ROADLAYOUT> roadLayoutMap)
Parse the ROADLAYOUTS tag in the OTS XML file.
|
static Experiment.TimeDoubleUnit<OTSSimulatorInterface> |
RunParser.parseRun(OTSRoadNetwork otsNetwork,
RUN run,
Map<String,StreamInformation> streamMap,
OTSSimulatorInterface simulator)
Parse the RUN tag in the OTS XML file.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Cloner.clone(T object)
Clone an object that is serializable and that has serializable fields.
|
static Generator<Acceleration> |
Generators.makeAccelerationGenerator(Map<String,StreamInformation> streamMap,
ACCELERATIONDISTTYPE accelerationDist)
Parse an Acceleration distribution into a Generator for Accelerations.
|
static Generator<Acceleration> |
Generators.makeDecelerationGenerator(Map<String,StreamInformation> streamMap,
ACCELERATIONDISTTYPE decelerationDist)
Parse an Acceleration distribution into a Generator for Decelerations (accceleration with a minus sign).
|
static DistContinuous |
ParseDistribution.makeDistContinuous(Map<String,StreamInformation> streamMap,
CONTDISTTYPE distType)
Parse a continuous distribution.
|
static DistDiscrete |
ParseDistribution.makeDistDiscrete(Map<String,StreamInformation> streamMap,
DISCRETEDISTTYPE distType)
Parse a discrete distribution.
|
static Generator<Duration> |
Generators.makeDurationGenerator(Map<String,StreamInformation> streamMap,
DURATIONDISTTYPE durationDist)
Parse a Duration distribution into a Generator for Durations
|
static Generator<Length> |
Generators.makeLengthGenerator(Map<String,StreamInformation> streamMap,
LENGTHDISTTYPE lengthDist)
Parse a Length distribution into a Generator for Lengths
|
static Generator<Position> |
Generators.makePositionGenerator(Map<String,StreamInformation> streamMap,
POSITIONDISTTYPE positionDist)
Parse a Position distribution into a Generator for Positions
|
static Generator<Speed> |
Generators.makeSpeedGenerator(Map<String,StreamInformation> streamMap,
SPEEDDISTTYPE speedDist)
Parse a Speed distribution into a Generator for Speeds
|
static Generator<Time> |
Generators.makeTimeGenerator(Map<String,StreamInformation> streamMap,
TIMEDISTTYPE timeDist)
Parse a Time distribution into a Generator for Times
|
static ContinuousDistDoubleScalar.Rel<Acceleration,AccelerationUnit> |
ParseDistribution.parseAccelerationDist(Map<String,StreamInformation> streamMap,
ACCELERATIONDISTTYPE accelerationDist)
Parse a relative acceleration distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<Duration,DurationUnit> |
ParseDistribution.parseDurationDist(Map<String,StreamInformation> streamMap,
DURATIONDISTTYPE durationDist)
Parse a relative duration distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<Frequency,FrequencyUnit> |
ParseDistribution.parseFrequencyDist(Map<String,StreamInformation> streamMap,
FREQUENCYDISTTYPE frequencyDist)
Parse a relative frequency distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<Length,LengthUnit> |
ParseDistribution.parseLengthDist(Map<String,StreamInformation> streamMap,
LENGTHDISTTYPE lengthDist)
Parse a relative length distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit> |
ParseDistribution.parseLinearDensityDist(Map<String,StreamInformation> streamMap,
LINEARDENSITYDISTTYPE linearDensityDist)
Parse a relative linear density distribution, e.g.
|
static ContinuousDistDoubleScalar.Abs<Position,PositionUnit,LengthUnit> |
ParseDistribution.parsePositionDist(Map<String,StreamInformation> streamMap,
POSITIONDISTTYPE positionDist)
Parse an absolute position distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> |
ParseDistribution.parseSpeedDist(Map<String,StreamInformation> streamMap,
SPEEDDISTTYPE speedDist)
Parse a relative speed distribution, e.g.
|
static ContinuousDistDoubleScalar.Abs<Time,TimeUnit,DurationUnit> |
ParseDistribution.parseTimeDist(Map<String,StreamInformation> streamMap,
TIMEDISTTYPE timeDist)
Parse an absolute time distribution, e.g.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.