public class OpenDriveNetworkLaneParser extends Object implements Serializable
Copyright (c) 2013-2019 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 |
---|---|
Map<Object,Renderable2D<?>> |
animationMap
The generated animation per object.
|
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.ControllerTag> |
controllerTags
Junction tags.
|
protected Map<String,GTUType> |
gtuTypes
The GTUTypes that have been created.
|
protected HeaderTag |
headerTag
Header tag.
|
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.JunctionTag> |
junctionTags
Controller tags.
|
protected Map<String,LaneType> |
laneTypes
The LaneTypes that have been created.
|
protected OTSRoadNetwork |
network
OTS network
|
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.RoadTag> |
roadTags
Road tags.
|
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.SignalTag> |
signalTags
The signalTags that have been created.
|
protected OTSSimulatorInterface |
simulator
The simulator for creating the animation.
|
protected Map<String,Set<SimpleTrafficLight>> |
trafficLightsByLanes
The trafficLights that have been created, organized by lanes
|
protected Map<String,Set<SimpleTrafficLight>> |
trafficLightsBySignals
The trafficLights that have been created, organized by signals
|
Constructor and Description |
---|
OpenDriveNetworkLaneParser(OTSSimulatorInterface simulator) |
Modifier and Type | Method and Description |
---|---|
OTSRoadNetwork |
build(URL url) |
HeaderTag |
getHeaderTag() |
String |
toString() |
protected HeaderTag headerTag
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.ControllerTag> controllerTags
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.JunctionTag> junctionTags
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.RoadTag> roadTags
protected OTSSimulatorInterface simulator
protected OTSRoadNetwork network
protected Map<String,org.opentrafficsim.road.network.factory.opendrive.SignalTag> signalTags
protected Map<String,Set<SimpleTrafficLight>> trafficLightsBySignals
protected Map<String,Set<SimpleTrafficLight>> trafficLightsByLanes
public Map<Object,Renderable2D<?>> animationMap
public OpenDriveNetworkLaneParser(OTSSimulatorInterface simulator)
simulator
- OTSSimulatorInterface; the simulator for creating the animation. Null if no animation needed.public final OTSRoadNetwork build(URL url) throws NetworkException, ParserConfigurationException, SAXException, IOException, NamingException, GTUException, OTSGeometryException, SimRuntimeException
url
- URL; the file with the network in the agreed xml-grammar.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 foundGTUException
- in case of a problem with creating the LaneBlock (which is a GTU right now)OTSGeometryException
- when construction of a lane contour or offset design line failsSimRuntimeException
- when simulator cannot be used to schedule GTU generationpublic HeaderTag getHeaderTag()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.