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 networkprotected 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 lanesprotected Map<String,Set<SimpleTrafficLight>>trafficLightsBySignalsThe trafficLights that have been created, organized by signals -
Constructor Summary
Constructors Constructor Description OpenDriveNetworkLaneParserOld(OTSSimulatorInterface simulator) -
Method Summary
Modifier and Type Method Description OTSRoadNetworkbuild(URL url)HeaderTaggetHeaderTag()StringtoString()
-
Field Details
-
headerTag
Header tag. -
controllerTags
Junction tags. -
junctionTags
Controller tags. -
roadTags
Road tags. -
gtuTypes
The GTUTypes that have been created. -
laneTypes
The LaneTypes that have been created. -
simulator
The simulator for creating the animation. Null if no animation needed. -
network
OTS network -
signalTags
The signalTags that have been created. -
trafficLightsBySignals
The trafficLights that have been created, organized by signals -
trafficLightsByLanes
The trafficLights that have been created, organized by lanes -
animationMap
The generated animation per object.
-
-
Constructor Details
-
OpenDriveNetworkLaneParserOld
- Parameters:
simulator- OTSSimulatorInterface; the simulator for creating the animation. Null if no animation needed.
-
-
Method Details
-
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
- Returns:
- headerTag
-
toString
-