Class OpenDriveNetworkLaneParserOld
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.opendrive.old.OpenDriveNetworkLaneParserOld
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenDriveNetworkLaneParserOld extends java.lang.Object implements java.io.SerializableCopyright (c) 2013-2020 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
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.Object,Renderable2D<?>>animationMapThe generated animation per object.protected java.util.Map<java.lang.String,ControllerTag>controllerTagsJunction tags.protected java.util.Map<java.lang.String,GTUType>gtuTypesThe GTUTypes that have been created.protected HeaderTagheaderTagHeader tag.protected java.util.Map<java.lang.String,JunctionTag>junctionTagsController tags.protected java.util.Map<java.lang.String,LaneType>laneTypesThe LaneTypes that have been created.protected OTSRoadNetworknetworkOTS network.protected java.util.Map<java.lang.String,RoadTag>roadTagsRoad tags.protected java.util.Map<java.lang.String,SignalTag>signalTagsThe signalTags that have been created.protected OTSSimulatorInterfacesimulatorThe simulator for creating the animation.protected java.util.Map<java.lang.String,java.util.Set<SimpleTrafficLight>>trafficLightsByLanesThe trafficLights that have been created, organized by lanes.protected java.util.Map<java.lang.String,java.util.Set<SimpleTrafficLight>>trafficLightsBySignalsThe trafficLights that have been created, organized by signals.
-
Constructor Summary
Constructors Constructor Description OpenDriveNetworkLaneParserOld(OTSSimulatorInterface simulator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OTSRoadNetworkbuild(java.net.URL url)HeaderTaggetHeaderTag()java.lang.StringtoString()
-
-
-
Field Detail
-
headerTag
protected HeaderTag headerTag
Header tag.
-
controllerTags
protected java.util.Map<java.lang.String,ControllerTag> controllerTags
Junction tags.
-
junctionTags
protected java.util.Map<java.lang.String,JunctionTag> junctionTags
Controller tags.
-
roadTags
protected java.util.Map<java.lang.String,RoadTag> roadTags
Road tags.
-
gtuTypes
protected java.util.Map<java.lang.String,GTUType> gtuTypes
The GTUTypes that have been created.
-
laneTypes
protected java.util.Map<java.lang.String,LaneType> laneTypes
The LaneTypes that have been created.
-
simulator
protected OTSSimulatorInterface simulator
The simulator for creating the animation. Null if no animation needed.
-
network
protected OTSRoadNetwork network
OTS network.
-
signalTags
protected java.util.Map<java.lang.String,SignalTag> signalTags
The signalTags that have been created.
-
trafficLightsBySignals
protected java.util.Map<java.lang.String,java.util.Set<SimpleTrafficLight>> trafficLightsBySignals
The trafficLights that have been created, organized by signals.
-
trafficLightsByLanes
protected java.util.Map<java.lang.String,java.util.Set<SimpleTrafficLight>> trafficLightsByLanes
The trafficLights that have been created, organized by lanes.
-
animationMap
public java.util.Map<java.lang.Object,Renderable2D<?>> animationMap
The generated animation per object.
-
-
Constructor Detail
-
OpenDriveNetworkLaneParserOld
public OpenDriveNetworkLaneParserOld(OTSSimulatorInterface simulator)
- Parameters:
simulator- OTSSimulatorInterface; the simulator for creating the animation. Null if no animation needed.
-
-
Method Detail
-
build
public final OTSRoadNetwork build(java.net.URL url) throws NetworkException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.naming.NamingException, GTUException, OTSGeometryException, SimRuntimeException
- Parameters:
url- URL; the file with the network in the agreed xml-grammar.- Returns:
- the network with Nodes, Links, and Lanes.
- Throws:
NetworkException- in case of parsing problems.org.xml.sax.SAXException- in case of parsing problems.javax.xml.parsers.ParserConfigurationException- in case of parsing problems.java.io.IOException- in case of file reading problems.javax.naming.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 generation
-
getHeaderTag
public HeaderTag getHeaderTag()
- Returns:
- headerTag
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-