SUMO - Simulation of Urban MObility
NIImporter_DlrNavteq::TrafficlightsHandler Class Reference

Importer of traffic lights stored in DLRNavteq's (aka elmar) format. More...

#include <NIImporter_DlrNavteq.h>

Inheritance diagram for NIImporter_DlrNavteq::TrafficlightsHandler:
Inheritance graph
Collaboration diagram for NIImporter_DlrNavteq::TrafficlightsHandler:
Collaboration graph

Public Member Functions

bool report (const std::string &result)
 Parsing method. More...
 
 TrafficlightsHandler (NBNodeCont &nc, NBTrafficLightLogicCont &tlc, NBEdgeCont &ne, const std::string &file)
 Constructor. More...
 
 ~TrafficlightsHandler ()
 Destructor. More...
 

Protected Attributes

NBEdgeContmyEdgeCont
 The edge container to get the referenced edges from. More...
 
NBNodeContmyNodeCont
 The node container to get the referenced nodes from. More...
 
NBTrafficLightLogicContmyTLLogicCont
 The traffic lights container to add built tls to. More...
 

Private Member Functions

TrafficlightsHandleroperator= (const TrafficlightsHandler &)
 Invalidated assignment operator. More...
 
 TrafficlightsHandler (const TrafficlightsHandler &)
 Invalidated copy constructor. More...
 

Detailed Description

Importer of traffic lights stored in DLRNavteq's (aka elmar) format.

Being a LineHandler, this class retrieves each line from a LineReader and parses these information assuming they contain traffic light definitions in DLRNavteq's format.

Definition at line 263 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

◆ TrafficlightsHandler() [1/2]

NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler ( NBNodeCont nc,
NBTrafficLightLogicCont tlc,
NBEdgeCont ne,
const std::string &  file 
)

Constructor.

Parameters
[in]ncThe node control to retrieve nodes from

Definition at line 470 of file NIImporter_DlrNavteq.cpp.

References UNUSED_PARAMETER.

◆ ~TrafficlightsHandler()

NIImporter_DlrNavteq::TrafficlightsHandler::~TrafficlightsHandler ( )

Destructor.

Definition at line 481 of file NIImporter_DlrNavteq.cpp.

◆ TrafficlightsHandler() [2/2]

NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler ( const TrafficlightsHandler )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

TrafficlightsHandler& NIImporter_DlrNavteq::TrafficlightsHandler::operator= ( const TrafficlightsHandler )
private

Invalidated assignment operator.

◆ report()

bool NIImporter_DlrNavteq::TrafficlightsHandler::report ( const std::string &  result)
virtual

Parsing method.

Implementation of the LineHandler-interface called by a LineReader; interprets the retrieved information and alters the nodes.

Parameters
[in]resultThe read line
Returns
Whether the parsing shall continue
Exceptions
ProcessErrorif something fails
See also
LineHandler::report

Implements LineHandler.

Definition at line 485 of file NIImporter_DlrNavteq.cpp.

References StringBijection< T >::get(), StringTokenizer::get(), Named::getID(), OptionsCont::getOptions(), NBNode::getPosition(), NBEdge::getToNode(), NBNode::getType(), NBTrafficLightLogicCont::insert(), myEdgeCont, myTLLogicCont, NODETYPE_TRAFFIC_LIGHT, NBNode::reinit(), NBEdgeCont::retrieve(), SUMOXMLDefinitions::TrafficLightTypes, StringTokenizer::WHITECHARS, and WRITE_WARNING.

Field Documentation

◆ myEdgeCont

NBEdgeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myEdgeCont
protected

The edge container to get the referenced edges from.

Definition at line 298 of file NIImporter_DlrNavteq.h.

Referenced by report().

◆ myNodeCont

NBNodeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myNodeCont
protected

The node container to get the referenced nodes from.

Definition at line 292 of file NIImporter_DlrNavteq.h.

◆ myTLLogicCont

NBTrafficLightLogicCont& NIImporter_DlrNavteq::TrafficlightsHandler::myTLLogicCont
protected

The traffic lights container to add built tls to.

Definition at line 295 of file NIImporter_DlrNavteq.h.

Referenced by report().


The documentation for this class was generated from the following files: