public class XmlNetworkLaneParser extends Object
Copyright (c) 2013-2015 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 org.opentrafficsim.road.network.factory.xml.GlobalTag |
globalTag
global values from the GLOBAL tag.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.GTUMixTag> |
gtuMixTags
the gtumix tags for further reference.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.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,LaneType> |
laneTypes
the LaneTypes that have been created.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.LinkTag> |
linkTags
the UNprocessed links for further reference.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.NodeTag> |
nodeTags
the UNprocessed nodes for further reference.
|
protected static LaneType |
noTrafficLaneType
the no traffic LaneType.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.RoadTypeTag> |
roadTypeTags
the road type tags for further reference.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.RouteMixTag> |
routeMixTags
the route mix tags for further reference.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.RouteTag> |
routeTags
the route tags for further reference.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.ShortestRouteMixTag> |
shortestRouteMixTags
the shortest route mix tags for further reference.
|
protected Map<String,org.opentrafficsim.road.network.factory.xml.ShortestRouteTag> |
shortestRouteTags
the shortest route tags for further reference.
|
protected org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
simulator
the simulator for creating the animation.
|
| Constructor and Description |
|---|
XmlNetworkLaneParser(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
protected org.opentrafficsim.road.network.factory.xml.GlobalTag globalTag
protected Map<String,org.opentrafficsim.road.network.factory.xml.NodeTag> nodeTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.LinkTag> linkTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.GTUTag> gtuTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.GTUMixTag> gtuMixTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.RouteTag> routeTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.RouteMixTag> routeMixTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.ShortestRouteTag> shortestRouteTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.ShortestRouteMixTag> shortestRouteMixTags
protected Map<String,org.opentrafficsim.road.network.factory.xml.RoadTypeTag> roadTypeTags
public Map<String,org.opentrafficsim.core.gtu.GTUType> gtuTypes
protected static LaneType noTrafficLaneType
protected org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator
public XmlNetworkLaneParser(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
simulator - the simulator for creating the animation. Null if no animation needed.public final org.opentrafficsim.core.network.OTSNetwork build(URL url) throws org.opentrafficsim.core.network.NetworkException, ParserConfigurationException, SAXException, IOException, NamingException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, SimRuntimeException
url - the file with the network in the agreed xml-grammar.org.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 failsSimRuntimeException - when simulator cannot be used to schedule GTU generationCopyright © 2014–2015 Delft University of Technology. All rights reserved.