Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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:
[legend]
Collaboration diagram for NIImporter_DlrNavteq::TrafficlightsHandler:
[legend]

Public Member Functions

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

Protected Attributes

NBEdgeCont & myEdgeCont
 The edge container to get the referenced edges from.
 
NBNodeCont & myNodeCont
 The node container to get the referenced nodes from.
 
NBTrafficLightLogicCont & myTLLogicCont
 The traffic lights container to add built tls to.
 

Private Member Functions

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

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 256 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
[in,filled]tlc The traffic lights container to fill
[in]fileThe name of the parsed file

Definition at line 474 of file NIImporter_DlrNavteq.cpp.

References UNUSED_PARAMETER.

◆ ~TrafficlightsHandler()

NIImporter_DlrNavteq::TrafficlightsHandler::~TrafficlightsHandler ( )

Destructor.

Definition at line 485 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 489 of file NIImporter_DlrNavteq.cpp.

References StringBijection< T >::get(), StringTokenizer::get(), Named::getID(), OptionsCont::getOptions(), NBNode::getPosition(), NBEdge::getToNode(), NBNode::getType(), NBNode::reinit(), TL, TLF, TRAFFIC_LIGHT, SUMOXMLDefinitions::TrafficLightTypes, StringTokenizer::WHITECHARS, and WRITE_WARNINGF.

Field Documentation

◆ myEdgeCont

NBEdgeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myEdgeCont
protected

The edge container to get the referenced edges from.

Definition at line 291 of file NIImporter_DlrNavteq.h.

◆ myNodeCont

NBNodeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myNodeCont
protected

The node container to get the referenced nodes from.

Definition at line 285 of file NIImporter_DlrNavteq.h.

◆ myTLLogicCont

NBTrafficLightLogicCont& NIImporter_DlrNavteq::TrafficlightsHandler::myTLLogicCont
protected

The traffic lights container to add built tls to.

Definition at line 288 of file NIImporter_DlrNavteq.h.


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