SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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:
LineHandler

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

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

Private Member Functions

TrafficlightsHandler & operator= (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 255 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

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 405 of file NIImporter_DlrNavteq.cpp.

References UNUSED_PARAMETER.

NIImporter_DlrNavteq::TrafficlightsHandler::~TrafficlightsHandler ( )

Destructor.

Definition at line 416 of file NIImporter_DlrNavteq.cpp.

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

Invalidated copy constructor.

Member Function Documentation

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

Invalidated assignment operator.

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 420 of file NIImporter_DlrNavteq.cpp.

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

Field Documentation

NBEdgeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myEdgeCont
protected

The edge container to get the referenced edges from.

Definition at line 290 of file NIImporter_DlrNavteq.h.

NBNodeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myNodeCont
protected

The node container to get the referenced nodes from.

Definition at line 284 of file NIImporter_DlrNavteq.h.

NBTrafficLightLogicCont& NIImporter_DlrNavteq::TrafficlightsHandler::myTLLogicCont
protected

The traffic lights container to add built tls to.

Definition at line 287 of file NIImporter_DlrNavteq.h.


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