Class RoadParser
java.lang.Object
org.opentrafficsim.road.network.factory.opendrive.parser.RoadParser
public class RoadParser extends Object
RoadParser.java.
Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Constructor Summary
Constructors Constructor Description RoadParser(OpenDRIVE openDrive, OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator) -
Method Summary
Modifier and Type Method Description voidparseRoads()Parse the roads in the OpenDrive XML structure.
-
Constructor Details
-
RoadParser
- Parameters:
openDrive- the XML structure for the xodr file.otsNetwork- the network in which to write the informationsimulator- the simulator
-
-
Method Details
-
parseRoads
Parse the roads in the OpenDrive XML structure.- Throws:
OpenDriveParserException- on parser errorNetworkException- on network build errorOTSGeometryException- on invalid line
-