Uses of Class
org.opentrafficsim.road.network.factory.xml.XmlParserException
-
Packages that use XmlParserException Package Description org.opentrafficsim.road.network.factory.xml.demand Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.org.opentrafficsim.road.network.factory.xml.parser Copyright (c) 2013-2020 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, StreamInformation streamInformation)Applies demand from stream.voidXmlOdParser. apply(InputStream stream, ODOptions odOptions, StreamInformation streamInformation)Applies demand from stream using OD options.voidXmlOdParser. apply(URL url, StreamInformation streamInformation)Applies demand from URL.voidXmlOdParser. apply(URL url, ODOptions odOptions, StreamInformation streamInformation)Applies demand from URL using OD options.voidXmlOdParser. apply(Node xmlNode, StreamInformation streamInformation)Applies demand from xml node.voidXmlOdParser. apply(Node xmlNode, ODOptions odOptions, StreamInformation streamInformation)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 ExperimentRunControl.TimeDoubleUnitXmlNetworkLaneParser. build(InputStream xmlStream, OTSRoadNetwork otsNetwork, boolean buildConflicts)Parse the XML input stream and build the network.static OTSRoadNetworkXmlNetworkLaneParser. build(String filename, OTSRoadNetwork otsNetwork, boolean buildConflicts)Parse the XML file and build the network.static ExperimentRunControl.TimeDoubleUnitXmlNetworkLaneParser. build(URL xmlURL, OTSRoadNetwork otsNetwork, boolean buildConflicts)Parse the XML file and build the network.static ExperimentRunControl.TimeDoubleUnitXmlNetworkLaneParser. build(OTS ots, OTSRoadNetwork otsNetwork, boolean buildConflicts)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, StreamInformation streamInformation, Map<LinkType,Map<GtuType,Speed>> linkTypeSpeedLimitMap)Parse the DEFINITIONS tag in the OTS XML file.static List<LaneBasedGTUGenerator>ODParser. parseDemand(OTSRoadNetwork otsNetwork, List<NETWORKDEMAND> demands, Map<String,GTUTEMPLATE> gtuTemplates, Map<String,LaneBasedStrategicalPlannerFactory<?>> factories, Map<String,String> modelIdReferrals, StreamInformation streamInformation)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, StreamInformation streamInformation)Parse the Generators.static voidDefinitionsParser. parseGtuTemplates(DEFINITIONS definitions, OTSRoadNetwork otsNetwork, boolean overwriteDefaults, Map<String,GTUTEMPLATE> gtuTemplates, StreamInformation streamInformation)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, StreamInformation streamInformation, 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, StreamInformation streamInformation)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 ExperimentRunControl.TimeDoubleUnitRunParser. parseRun(String networkId, RUN run, StreamSeedInformation streamInformation, 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(StreamInformation streamInformation, ACCELERATIONDISTTYPE accelerationDist)Parse an Acceleration distribution into a Generator for Accelerations.static Generator<Acceleration>Generators. makeDecelerationGenerator(StreamInformation streamInformation, ACCELERATIONDISTTYPE decelerationDist)Parse an Acceleration distribution into a Generator for Decelerations (acceleration with a minus sign).static DistContinuousParseDistribution. makeDistContinuous(StreamInformation streamInformation, CONTDISTTYPE distType)Parse a continuous distribution.static DistDiscreteParseDistribution. makeDistDiscrete(StreamInformation streamInformation, DISCRETEDISTTYPE distType)Parse a discrete distribution.static Generator<Duration>Generators. makeDurationGenerator(StreamInformation streamInformation, DURATIONDISTTYPE durationDist)Parse a Duration distribution into a Generator for Durations.static Generator<Length>Generators. makeLengthGenerator(StreamInformation streamInformation, LENGTHDISTTYPE lengthDist)Parse a Length distribution into a Generator for Lengths.static Generator<Position>Generators. makePositionGenerator(StreamInformation streamInformation, POSITIONDISTTYPE positionDist)Parse a Position distribution into a Generator for Positions.static Generator<Speed>Generators. makeSpeedGenerator(StreamInformation streamInformation, SPEEDDISTTYPE speedDist)Parse a Speed distribution into a Generator for Speeds.static Generator<Time>Generators. makeTimeGenerator(StreamInformation streamInformation, TIMEDISTTYPE timeDist)Parse a Time distribution into a Generator for Times.static ContinuousDistDoubleScalar.Rel<Acceleration,AccelerationUnit>ParseDistribution. parseAccelerationDist(StreamInformation streamInformation, ACCELERATIONDISTTYPE accelerationDist)Parse a relative acceleration distribution, e.g.static ContinuousDistDoubleScalar.Rel<Duration,DurationUnit>ParseDistribution. parseDurationDist(StreamInformation streamInformation, DURATIONDISTTYPE durationDist)Parse a relative duration distribution, e.g.static ContinuousDistDoubleScalar.Rel<Frequency,FrequencyUnit>ParseDistribution. parseFrequencyDist(StreamInformation streamInformation, FREQUENCYDISTTYPE frequencyDist)Parse a relative frequency distribution, e.g.static ContinuousDistDoubleScalar.Rel<Length,LengthUnit>ParseDistribution. parseLengthDist(StreamInformation streamInformation, LENGTHDISTTYPE lengthDist)Parse a relative length distribution, e.g.static ContinuousDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit>ParseDistribution. parseLinearDensityDist(StreamInformation streamInformation, LINEARDENSITYDISTTYPE linearDensityDist)Parse a relative linear density distribution, e.g.static ContinuousDistDoubleScalar.Abs<Position,PositionUnit,LengthUnit>ParseDistribution. parsePositionDist(StreamInformation streamInformation, POSITIONDISTTYPE positionDist)Parse an absolute position distribution, e.g.static ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit>ParseDistribution. parseSpeedDist(StreamInformation streamInformation, SPEEDDISTTYPE speedDist)Parse a relative speed distribution, e.g.static ContinuousDistDoubleScalar.Abs<Time,TimeUnit,DurationUnit>ParseDistribution. parseTimeDist(StreamInformation streamInformation, TIMEDISTTYPE timeDist)Parse an absolute time distribution, e.g.
-