SUMO - Simulation of Urban MObility

NIVisumTL Class Reference

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

#include <NIVisumTL.h>

Data Structures

class  Phase
class  SignalGroup
class  TimePeriod
 Timeperiod with starttime and endtime. More...

Public Types

typedef std::vector< NBNode * > NodeVector
typedef std::map< std::string,
Phase * > 
PhaseMap
typedef std::map< std::string,
SignalGroup * > 
SignalGroupMap

Public Member Functions

void AddPhase (const std::string Name, SUMOTime StartTime, SUMOTime EndTime)
void AddSignalGroup (const std::string Name, SUMOTime StartTime, SUMOTime EndTime)
void build (NBTrafficLightLogicCont &tlc)
SUMOTime GetCycleTime ()
SUMOTime GetIntermediateTime ()
SUMOTime GetName ()
NodeVector * GetNodes ()
bool GetPhaseDefined ()
PhaseMap * GetPhases ()
SignalGroup * GetSignalGroup (const std::string Name)
SignalGroupMap * GetSignalGroups ()
 NIVisumTL (const std::string &Name, SUMOTime CycleTime, SUMOTime IntermediateTime, bool PhaseDefined)
 NIVisumTL ()
void SetCycleTime (SUMOTime CylcleTime)
void SetIntermediateTime (SUMOTime IntermediateTime)
void SetPhaseDefined (bool PhaseDefined)
 ~NIVisumTL ()

Private Attributes

SUMOTime myCycleTime
SUMOTime myIntermediateTime
std::string myName
NodeVector myNodes
bool myPhaseDefined
PhaseMap myPhases
SignalGroupMap mySignalGroups

Detailed Description

Intermediate class for storing visum traffic lights during their import.

Definition at line 49 of file NIVisumTL.h.


Member Typedef Documentation

typedef std::vector<NBNode*> NIVisumTL::NodeVector

Definition at line 77 of file NIVisumTL.h.

typedef std::map<std::string, Phase*> NIVisumTL::PhaseMap

Definition at line 78 of file NIVisumTL.h.

typedef std::map<std::string, SignalGroup*> NIVisumTL::SignalGroupMap

Definition at line 99 of file NIVisumTL.h.


Constructor & Destructor Documentation

NIVisumTL::NIVisumTL ( )

Definition at line 124 of file NIVisumTL.cpp.

NIVisumTL::NIVisumTL ( const std::string &  Name,
SUMOTime  CycleTime,
SUMOTime  IntermediateTime,
bool  PhaseDefined 
)

Definition at line 127 of file NIVisumTL.cpp.

NIVisumTL::~NIVisumTL ( )

Definition at line 132 of file NIVisumTL.cpp.

References myPhases, and mySignalGroups.


Member Function Documentation

void NIVisumTL::AddPhase ( const std::string  Name,
SUMOTime  StartTime,
SUMOTime  EndTime 
)

Definition at line 189 of file NIVisumTL.cpp.

References myPhases.

void NIVisumTL::AddSignalGroup ( const std::string  Name,
SUMOTime  StartTime,
SUMOTime  EndTime 
)

Definition at line 185 of file NIVisumTL.cpp.

References mySignalGroups.

SUMOTime NIVisumTL::GetCycleTime ( )

Definition at line 144 of file NIVisumTL.cpp.

References myCycleTime.

SUMOTime NIVisumTL::GetIntermediateTime ( )

Definition at line 149 of file NIVisumTL.cpp.

References myIntermediateTime.

SUMOTime NIVisumTL::GetName ( )
NIVisumTL::NodeVector * NIVisumTL::GetNodes ( )

Definition at line 159 of file NIVisumTL.cpp.

References myNodes.

bool NIVisumTL::GetPhaseDefined ( )

Definition at line 154 of file NIVisumTL.cpp.

References myPhaseDefined.

NIVisumTL::PhaseMap * NIVisumTL::GetPhases ( )

Definition at line 165 of file NIVisumTL.cpp.

References myPhases.

Referenced by NIImporter_VISUM::parse_SignalGroupsToPhases().

NIVisumTL::SignalGroup * NIVisumTL::GetSignalGroup ( const std::string  Name)

Definition at line 193 of file NIVisumTL.cpp.

References mySignalGroups.

Referenced by NIImporter_VISUM::parse_SignalGroupsToPhases().

NIVisumTL::SignalGroupMap * NIVisumTL::GetSignalGroups ( )

Definition at line 169 of file NIVisumTL.cpp.

References mySignalGroups.

void NIVisumTL::SetCycleTime ( SUMOTime  CylcleTime)

Definition at line 173 of file NIVisumTL.cpp.

References myCycleTime.

void NIVisumTL::SetIntermediateTime ( SUMOTime  IntermediateTime)

Definition at line 177 of file NIVisumTL.cpp.

References myIntermediateTime.

void NIVisumTL::SetPhaseDefined ( bool  PhaseDefined)

Definition at line 181 of file NIVisumTL.cpp.

References myPhaseDefined.


Field Documentation

Definition at line 131 of file NIVisumTL.h.

Referenced by build(), GetCycleTime(), and SetCycleTime().

Definition at line 134 of file NIVisumTL.h.

Referenced by build(), GetIntermediateTime(), and SetIntermediateTime().

std::string NIVisumTL::myName [private]

Definition at line 128 of file NIVisumTL.h.

Referenced by NIVisumTL::SignalGroup::GetName().

Definition at line 140 of file NIVisumTL.h.

Referenced by build(), and GetNodes().

Definition at line 137 of file NIVisumTL.h.

Referenced by build(), GetPhaseDefined(), and SetPhaseDefined().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines