Class OpenDriveNetworkLaneParserOld
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.opendrive.old.OpenDriveNetworkLaneParserOld
-
- All Implemented Interfaces:
Serializable
public class OpenDriveNetworkLaneParserOld extends Object implements Serializable
Copyright (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 Map<Object,Renderable2D<?>>animationMapThe generated animation per object.protected Map<String,ControllerTag>controllerTagsJunction tags.protected Map<String,GTUType>gtuTypesThe GTUTypes that have been created.protected HeaderTagheaderTagHeader tag.protected Map<String,JunctionTag>junctionTagsController tags.protected Map<String,LaneType>laneTypesThe LaneTypes that have been created.protected OTSRoadNetworknetworkOTS network.protected Map<String,RoadTag>roadTagsRoad tags.protected Map<String,SignalTag>signalTagsThe signalTags that have been created.protected OTSSimulatorInterfacesimulatorThe simulator for creating the animation.protected Map<String,Set<SimpleTrafficLight>>trafficLightsByLanesThe trafficLights that have been created, organized by lanes.protected Map<String,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(URL url)HeaderTaggetHeaderTag()StringtoString()
-
-
-
Field Detail
-
headerTag
protected HeaderTag headerTag
Header tag.
-
controllerTags
protected Map<String,ControllerTag> controllerTags
Junction tags.
-
junctionTags
protected Map<String,JunctionTag> junctionTags
Controller tags.
-
simulator
protected OTSSimulatorInterface simulator
The simulator for creating the animation. Null if no animation needed.
-
network
protected OTSRoadNetwork network
OTS network.
-
trafficLightsBySignals
protected Map<String,Set<SimpleTrafficLight>> trafficLightsBySignals
The trafficLights that have been created, organized by signals.
-
trafficLightsByLanes
protected Map<String,Set<SimpleTrafficLight>> trafficLightsByLanes
The trafficLights that have been created, organized by lanes.
-
animationMap
public Map<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(URL url) throws NetworkException, ParserConfigurationException, SAXException, IOException, 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.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 generation
-
getHeaderTag
public HeaderTag getHeaderTag()
- Returns:
- headerTag
-
-