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 50 of file NIVisumTL.h.


Member Typedef Documentation

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

Definition at line 78 of file NIVisumTL.h.

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

Definition at line 79 of file NIVisumTL.h.

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

Definition at line 100 of file NIVisumTL.h.


Constructor & Destructor Documentation

NIVisumTL::NIVisumTL ( )

Definition at line 125 of file NIVisumTL.cpp.

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

Definition at line 128 of file NIVisumTL.cpp.

NIVisumTL::~NIVisumTL ( )

Definition at line 133 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 190 of file NIVisumTL.cpp.

References myPhases.

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

Definition at line 186 of file NIVisumTL.cpp.

References mySignalGroups.

SUMOTime NIVisumTL::GetCycleTime ( )

Definition at line 145 of file NIVisumTL.cpp.

References myCycleTime.

SUMOTime NIVisumTL::GetIntermediateTime ( )

Definition at line 150 of file NIVisumTL.cpp.

References myIntermediateTime.

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

Definition at line 160 of file NIVisumTL.cpp.

References myNodes.

bool NIVisumTL::GetPhaseDefined ( )

Definition at line 155 of file NIVisumTL.cpp.

References myPhaseDefined.

NIVisumTL::PhaseMap * NIVisumTL::GetPhases ( )

Definition at line 166 of file NIVisumTL.cpp.

References myPhases.

Referenced by NIImporter_VISUM::parse_SignalGroupsToPhases().

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

Definition at line 194 of file NIVisumTL.cpp.

References mySignalGroups.

Referenced by NIImporter_VISUM::parse_SignalGroupsToPhases().

NIVisumTL::SignalGroupMap * NIVisumTL::GetSignalGroups ( )

Definition at line 170 of file NIVisumTL.cpp.

References mySignalGroups.

void NIVisumTL::SetCycleTime ( SUMOTime  CylcleTime)

Definition at line 174 of file NIVisumTL.cpp.

References myCycleTime.

void NIVisumTL::SetIntermediateTime ( SUMOTime  IntermediateTime)

Definition at line 178 of file NIVisumTL.cpp.

References myIntermediateTime.

void NIVisumTL::SetPhaseDefined ( bool  PhaseDefined)

Definition at line 182 of file NIVisumTL.cpp.

References myPhaseDefined.


Field Documentation

Definition at line 132 of file NIVisumTL.h.

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

Definition at line 135 of file NIVisumTL.h.

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

std::string NIVisumTL::myName [private]

Definition at line 129 of file NIVisumTL.h.

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

Definition at line 141 of file NIVisumTL.h.

Referenced by build(), and GetNodes().

Definition at line 138 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