Class OpenDriveNetworkLaneParserOld

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpenDriveNetworkLaneParserOld
    extends java.lang.Object
    implements java.io.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 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.
      • 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 found
        GTUException - 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 fails
        SimRuntimeException - when simulator cannot be used to schedule GTU generation
      • getHeaderTag

        public HeaderTag getHeaderTag()
        Returns:
        headerTag
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object