SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NIVisumTL Class Reference

Intermediate class for storing visum traffic lights during their import. More...

#include <NIVisumTL.h>

Data Structures

class  Phase
 A phase. More...
class  SignalGroup
 A signal group can be defined either by a time period or by phases. More...
class  TimePeriod
 A time period with a start and an end time. More...

Public Member Functions

void addNode (NBNode *n)
 Adds a node to control.
void addPhase (const std::string &name, SUMOTime startTime, SUMOTime endTime)
 Adds a phase.
void addSignalGroup (const std::string &name, SUMOTime startTime, SUMOTime endTime)
 Adds a signal group.
void build (NBTrafficLightLogicCont &tlc)
 build the traffic light and add it to the given container
std::map< std::string, Phase * > & getPhases ()
 Returns the map of named phases.
SignalGroupgetSignalGroup (const std::string &name)
 Returns the named signal group.
 NIVisumTL (const std::string &name, SUMOTime cycleTime, SUMOTime intermediateTime, bool phaseDefined)
 Constructor.
 ~NIVisumTL ()
 Destructor.

Private Attributes

SUMOTime myCycleTime
SUMOTime myIntermediateTime
std::string myName
std::vector< NBNode * > myNodes
bool myPhaseDefined
std::map< std::string, Phase * > myPhases
std::map< std::string,
SignalGroup * > 
mySignalGroups

Detailed Description

Intermediate class for storing visum traffic lights during their import.

Definition at line 50 of file NIVisumTL.h.

Constructor & Destructor Documentation

NIVisumTL::NIVisumTL ( const std::string &  name,
SUMOTime  cycleTime,
SUMOTime  intermediateTime,
bool  phaseDefined 
)

Constructor.

Parameters
[in]nameThe name of the TLS
[in]cycleTimeThe cycle time of the TLS
[in]intermediateTimeThe name of the TLS
[in]phaseDefinedWhether phases are defined

Definition at line 49 of file NIVisumTL.cpp.

NIVisumTL::~NIVisumTL ( )

Destructor.

Definition at line 56 of file NIVisumTL.cpp.

References myPhases, and mySignalGroups.

Member Function Documentation

void NIVisumTL::addNode ( NBNode n)
inline

Adds a node to control.

Definition at line 144 of file NIVisumTL.h.

References myNodes.

void NIVisumTL::addPhase ( const std::string &  name,
SUMOTime  startTime,
SUMOTime  endTime 
)

Adds a phase.

Definition at line 73 of file NIVisumTL.cpp.

References myPhases.

void NIVisumTL::addSignalGroup ( const std::string &  name,
SUMOTime  startTime,
SUMOTime  endTime 
)

Adds a signal group.

Definition at line 67 of file NIVisumTL.cpp.

References mySignalGroups.

std::map<std::string, Phase*>& NIVisumTL::getPhases ( )
inline

Returns the map of named phases.

Definition at line 155 of file NIVisumTL.h.

References myPhases.

NIVisumTL::SignalGroup & NIVisumTL::getSignalGroup ( const std::string &  name)

Returns the named signal group.

Definition at line 79 of file NIVisumTL.cpp.

References mySignalGroups.

Field Documentation

SUMOTime NIVisumTL::myCycleTime
private

Definition at line 170 of file NIVisumTL.h.

Referenced by build().

SUMOTime NIVisumTL::myIntermediateTime
private

Definition at line 173 of file NIVisumTL.h.

Referenced by build().

std::string NIVisumTL::myName
private

Definition at line 167 of file NIVisumTL.h.

std::vector<NBNode*> NIVisumTL::myNodes
private

Definition at line 179 of file NIVisumTL.h.

Referenced by addNode(), and build().

bool NIVisumTL::myPhaseDefined
private

Definition at line 176 of file NIVisumTL.h.

Referenced by build().

std::map<std::string, Phase*> NIVisumTL::myPhases
private

Definition at line 182 of file NIVisumTL.h.

Referenced by addPhase(), getPhases(), and ~NIVisumTL().

std::map<std::string, SignalGroup*> NIVisumTL::mySignalGroups
private

Definition at line 185 of file NIVisumTL.h.

Referenced by addSignalGroup(), build(), getSignalGroup(), and ~NIVisumTL().


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