public class XmlNetworkLaneParser 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.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ConnectorTag> |
connectorTags
The UNprocessed connectors for further reference.
|
protected GlobalTag |
globalTag
Global values from the GLOBAL tag.
|
protected Map<String,GTUMixTag> |
gtuMixTags
The GTUmix tags for further reference.
|
Map<String,GTUTag> |
gtuTags
The GTU tags for further reference.
|
Map<String,org.opentrafficsim.core.gtu.GTUType> |
gtuTypes
The GTUTypes that have been created.
|
protected Map<String,org.opentrafficsim.road.network.lane.LaneType> |
laneTypes
The LaneTypes that have been created.
|
protected Map<String,LaneTypeTag> |
laneTypeTags
The LaneType tags that have been created.
|
protected Map<String,LinkTag> |
linkTags
The UNprocessed links for further reference.
|
protected org.opentrafficsim.core.network.OTSNetwork |
network
The network to register the GTUs in.
|
protected Map<String,NodeTag> |
nodeTags
The UNprocessed nodes for further reference.
|
protected Map<String,RoadLayoutTag> |
roadLayoutTags
The road layout tags for further reference.
|
protected Map<String,RoadTypeTag> |
roadTypeTags
The road type tags for further reference.
|
protected Map<String,RouteMixTag> |
routeMixTags
The route mix tags for further reference.
|
protected Map<String,RouteTag> |
routeTags
The route tags for further reference.
|
protected Map<String,ShortestRouteMixTag> |
shortestRouteMixTags
The shortest route mix tags for further reference.
|
protected Map<String,ShortestRouteTag> |
shortestRouteTags
The shortest route tags for further reference.
|
protected org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
simulator
The simulator for creating the animation.
|
(package private) List<String> |
xmlComments
All comments encountered in the XML file.
|
| Constructor and Description |
|---|
XmlNetworkLaneParser(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
XmlNetworkLaneParser(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.gtu.animation.GTUColorer colorer) |
| Modifier and Type | Method and Description |
|---|---|
org.opentrafficsim.core.network.OTSNetwork |
build(InputStream stream,
boolean interpretXMLComments) |
org.opentrafficsim.core.network.OTSNetwork |
build(InputStream stream,
org.opentrafficsim.core.network.OTSNetwork otsNetwork,
boolean interpretXMLComments) |
org.opentrafficsim.core.network.OTSNetwork |
build(URL url,
boolean interpretXMLComments) |
org.opentrafficsim.core.network.OTSNetwork |
build(URL url,
org.opentrafficsim.core.network.OTSNetwork otsNetwork,
boolean interpretXMLComments) |
nl.tudelft.simulation.immutablecollections.ImmutableList<String> |
getXMLComments()
Obtain an immutable copy of the collected XML comments.
|
String |
toString() |
protected GlobalTag globalTag
protected Map<String,ConnectorTag> connectorTags
protected Map<String,RouteMixTag> routeMixTags
protected Map<String,ShortestRouteTag> shortestRouteTags
protected Map<String,ShortestRouteMixTag> shortestRouteMixTags
protected Map<String,RoadTypeTag> roadTypeTags
protected Map<String,RoadLayoutTag> roadLayoutTags
public Map<String,org.opentrafficsim.core.gtu.GTUType> gtuTypes
protected Map<String,LaneTypeTag> laneTypeTags
protected Map<String,org.opentrafficsim.road.network.lane.LaneType> laneTypes
protected org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator
protected org.opentrafficsim.core.network.OTSNetwork network
public XmlNetworkLaneParser(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
simulator - the simulator for creating the animation. Null if no animation needed.public XmlNetworkLaneParser(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.gtu.animation.GTUColorer colorer)
simulator - the simulator for creating the animation. Null if no animation needed.colorer - GTU colorerpublic final org.opentrafficsim.core.network.OTSNetwork build(URL url, boolean interpretXMLComments) throws org.opentrafficsim.core.network.NetworkException, ParserConfigurationException, SAXException, IOException, NamingException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, nl.tudelft.simulation.dsol.SimRuntimeException, org.djunits.value.ValueException, org.opentrafficsim.base.parameters.ParameterException
url - the file with the network in the agreed xml-grammar.interpretXMLComments - boolean; if true; interpret specifically formatted XML comments and modify the network
accordinglyorg.opentrafficsim.core.network.NetworkException - in case of parsing problems.SAXException - in case of parsing problems.ParserConfigurationException - in case of parsing problems.IOException - in case of file reading problems.NamingException - in case the animation context cannot be foundorg.opentrafficsim.core.gtu.GTUException - in case of a problem with creating the LaneBlock (which is a GTU right now)org.opentrafficsim.core.geometry.OTSGeometryException - when construction of a lane contour or offset design line failsnl.tudelft.simulation.dsol.SimRuntimeException - when simulator cannot be used to schedule GTU generationorg.opentrafficsim.base.parameters.ParameterException - ...org.djunits.value.ValueException - ...public final org.opentrafficsim.core.network.OTSNetwork build(InputStream stream, boolean interpretXMLComments) throws org.opentrafficsim.core.network.NetworkException, ParserConfigurationException, SAXException, IOException, NamingException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, nl.tudelft.simulation.dsol.SimRuntimeException, org.djunits.value.ValueException, org.opentrafficsim.base.parameters.ParameterException
stream - the input stream with the network in the agreed xml-grammar.interpretXMLComments - boolean; if true; interpret specifically formatted XML comments and modify the network
accordinglyorg.opentrafficsim.core.network.NetworkException - in case of parsing problems.SAXException - in case of parsing problems.ParserConfigurationException - in case of parsing problems.IOException - in case of file reading problems.NamingException - in case the animation context cannot be foundorg.opentrafficsim.core.gtu.GTUException - in case of a problem with creating the LaneBlock (which is a GTU right now)org.opentrafficsim.core.geometry.OTSGeometryException - when construction of a lane contour or offset design line failsnl.tudelft.simulation.dsol.SimRuntimeException - when simulator cannot be used to schedule GTU generationorg.opentrafficsim.base.parameters.ParameterException - ...org.djunits.value.ValueException - ...public final org.opentrafficsim.core.network.OTSNetwork build(URL url, org.opentrafficsim.core.network.OTSNetwork otsNetwork, boolean interpretXMLComments) throws org.opentrafficsim.core.network.NetworkException, ParserConfigurationException, SAXException, IOException, NamingException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, nl.tudelft.simulation.dsol.SimRuntimeException, org.djunits.value.ValueException, org.opentrafficsim.base.parameters.ParameterException
url - the file with the network in the agreed xml-grammar.otsNetwork - OTSNetwork; the networkinterpretXMLComments - boolean; if true; interpret specifically formatted XML comments and modify the network
accordinglyorg.opentrafficsim.core.network.NetworkException - in case of parsing problems.SAXException - in case of parsing problems.ParserConfigurationException - in case of parsing problems.IOException - in case of file reading problems.NamingException - in case the animation context cannot be foundorg.opentrafficsim.core.gtu.GTUException - in case of a problem with creating the LaneBlock (which is a GTU right now)org.opentrafficsim.core.geometry.OTSGeometryException - when construction of a lane contour or offset design line failsnl.tudelft.simulation.dsol.SimRuntimeException - when simulator cannot be used to schedule GTU generationorg.opentrafficsim.base.parameters.ParameterException - ...org.djunits.value.ValueException - ...public final org.opentrafficsim.core.network.OTSNetwork build(InputStream stream, org.opentrafficsim.core.network.OTSNetwork otsNetwork, boolean interpretXMLComments) throws org.opentrafficsim.core.network.NetworkException, ParserConfigurationException, SAXException, IOException, NamingException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, nl.tudelft.simulation.dsol.SimRuntimeException, org.djunits.value.ValueException, org.opentrafficsim.base.parameters.ParameterException
stream - the input stream with the network in the agreed xml-grammar.otsNetwork - OTSNetwork; the networkinterpretXMLComments - boolean; if true; interpret specifically formatted XML comments and modify the network
accordinglyorg.opentrafficsim.core.network.NetworkException - in case of parsing problems.SAXException - in case of parsing problems.ParserConfigurationException - in case of parsing problems.IOException - in case of file reading problems.NamingException - in case the animation context cannot be foundorg.opentrafficsim.core.gtu.GTUException - in case of a problem with creating the LaneBlock (which is a GTU right now)org.opentrafficsim.core.geometry.OTSGeometryException - when construction of a lane contour or offset design line failsnl.tudelft.simulation.dsol.SimRuntimeException - when simulator cannot be used to schedule GTU generationorg.opentrafficsim.base.parameters.ParameterException - ...org.djunits.value.ValueException - ...public nl.tudelft.simulation.immutablecollections.ImmutableList<String> getXMLComments()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.