Uses of Class
org.opentrafficsim.road.network.factory.xml.XmlParserException
| 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.
|
-
Uses of XmlParserException in org.opentrafficsim.road.network.factory.xml.demand
Methods in org.opentrafficsim.road.network.factory.xml.demand that throw XmlParserException Modifier and Type Method Description voidXmlOdParser. apply(InputStream stream)Applies demand from stream.voidXmlOdParser. apply(InputStream stream, ODOptions odOptions)Applies demand from stream using OD options.voidXmlOdParser. apply(URL url)Applies demand from URL.voidXmlOdParser. apply(URL url, ODOptions odOptions)Applies demand from URL using OD options.voidXmlOdParser. apply(Node xmlNode)Applies demand from xml node.voidXmlOdParser. apply(Node xmlNode, ODOptions odOptions)Applies demand from URL using OD options.ODMatrixXmlOdParser. build(InputStream stream)Build demand from stream.ODMatrixXmlOdParser. build(URL url)Build demand from URL.ODMatrixXmlOdParser. build(Node xmlNode)Build demand from xml node.static DemandTag.DemandTypeDemandTag.DemandType. fromLevelNode(Node level)Returns the demand type based on a LEVEL tag.GTUTypeXmlOdParser. getGTUType(String id)Returns the GTU type for the given id.static doubleDemandTag. parseFactor(String value)Parses a String of percentage or value to a double. -
Uses of XmlParserException in org.opentrafficsim.road.network.factory.xml.parser
Methods in org.opentrafficsim.road.network.factory.xml.parser that throw XmlParserException Modifier and Type Method Description static Experiment.TimeDoubleUnit<OTSSimulatorInterface>XmlNetworkLaneParser. build(InputStream xmlStream, OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator)Parse the XML input stream and build the network.static OTSRoadNetworkXmlNetworkLaneParser. build(String filename, OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator)Parse the XML file and build the network.static Experiment.TimeDoubleUnit<OTSSimulatorInterface>XmlNetworkLaneParser. build(URL xmlURL, OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator)Parse the XML file and build the network.static Experiment.TimeDoubleUnit<OTSSimulatorInterface>XmlNetworkLaneParser. build(OTS ots, OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator)Build the network from an OTS object (probably constructed by parsing an OTS XML file; e.g.static voidDefinitionsParser. 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>ODParser. 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, Map<String,List<Distribution.FrequencyAndObject<Route>>> routeMixMap, Map<String,List<Distribution.FrequencyAndObject<Route>>> shortestRouteMixMap, OTSSimulatorInterface simulator, Map<String,StreamInformation> streamMap)Parse the Generators.static voidDefinitionsParser. 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 voidDefinitionsParser. parseGtuTypes(DEFINITIONS definitions, OTSRoadNetwork otsNetwork, boolean overwriteDefaults)Parse the GTUTYPES tag in the OTS XML file.static voidDefinitionsParser. parseLaneTypes(DEFINITIONS definitions, OTSRoadNetwork otsNetwork, boolean overwriteDefaults)Parse the LANETYPES tag in the OTS XML file.static voidDefinitionsParser. 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>
Map<String,LaneBasedStrategicalPlannerFactory<?>>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>
Map<String,ParameterFactory>ModelParser. parseParameters(OTSRoadNetwork otsNetwork, List<MODELTYPE> models, InputParameters inputParameters, Map<String,ParameterType<?>> parameterTypes, Map<String,StreamInformation> streamMap)Parse parameter factories.static voidDefinitionsParser. parseParameterTypes(DEFINITIONS definitions, OTSRoadNetwork otsNetwork, Map<String,ParameterType<?>> parameterMap)Parse the PARAMETERTYPE tags in the OTS XML file.static voidDefinitionsParser. 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. -
Uses of XmlParserException in org.opentrafficsim.road.network.factory.xml.utils
Methods in org.opentrafficsim.road.network.factory.xml.utils that throw XmlParserException Modifier and Type Method Description static <T> TCloner. 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 (acceleration with a minus sign).static DistContinuousParseDistribution. makeDistContinuous(Map<String,StreamInformation> streamMap, CONTDISTTYPE distType)Parse a continuous distribution.static DistDiscreteParseDistribution. 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.