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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparseRoads()Parse the roads in the OpenDrive XML structure.
-
-
-
Constructor Detail
-
RoadParser
public RoadParser(OpenDRIVE openDrive, OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator)
- Parameters:
openDrive- the XML structure for the xodr file.otsNetwork- the network in which to write the informationsimulator- the simulator
-
-
Method Detail
-
parseRoads
public void parseRoads() throws OpenDriveParserException, NetworkException, OTSGeometryExceptionParse the roads in the OpenDrive XML structure.- Throws:
OpenDriveParserException- on parser errorNetworkException- on network build errorOTSGeometryException- on invalid line
-
-