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.
 TrafficlightsHandler (NBNodeCont &nc, NBTrafficLightLogicCont &tlc, const std::string &file)
 Constructor.
 ~TrafficlightsHandler ()
 Destructor.

Protected Attributes

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

Private Member Functions

TrafficlightsHandleroperator= (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 200 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler ( NBNodeCont nc,
NBTrafficLightLogicCont tlc,
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 294 of file NIImporter_DlrNavteq.cpp.

References UNUSED_PARAMETER.

NIImporter_DlrNavteq::TrafficlightsHandler::~TrafficlightsHandler ( )

Destructor.

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

References NBNode::getPosition(), NBNode::getType(), StringTokenizer::getVector(), NODETYPE_TRAFFIC_LIGHT, NBNode::reinit(), StringTokenizer::WHITECHARS, and WRITE_WARNING.

Field Documentation

NBNodeCont& NIImporter_DlrNavteq::TrafficlightsHandler::myNodeCont
protected

The node container to get the referenced nodes from.

Definition at line 229 of file NIImporter_DlrNavteq.h.

NBTrafficLightLogicCont& NIImporter_DlrNavteq::TrafficlightsHandler::myTLLogicCont
protected

The traffic lights container to add built tls to.

Definition at line 232 of file NIImporter_DlrNavteq.h.


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