119 return myConnections;
123 std::map<std::string, Phase*>&
phases() {
std::map< std::string, Phase * > & phases()
Returns the phases map.
bool myPhaseDefined
Toogles the usage either of phases or of time periods in signal groups.
SUMOTime myYellowTime
Yellow time.
A signal group can be defined either by a time period or by phases.
void build(NBTrafficLightLogicCont &tlc)
build the traffic light and add it to the given container
A time period with a start and an end time.
NBConnectionVector myConnections
Connections.
SUMOTime getYellowTime()
Returns the stored yellow time.
A container for traffic light definitions and built programs.
Phase(SUMOTime startTime, SUMOTime endTime, SUMOTime yellowTime)
Constructor.
SignalGroup & getSignalGroup(const std::string &name)
Returns the named signal group.
TimePeriod(SUMOTime startTime, SUMOTime endTime, SUMOTime yellowTime)
Constructor.
SUMOTime myCycleTime
The cycle time of traffic light in seconds.
void addPhase(const std::string &name, SUMOTime startTime, SUMOTime endTime, SUMOTime yellowTime)
Adds a phase.
void addSignalGroup(const std::string &name, SUMOTime startTime, SUMOTime endTime, SUMOTime yellowTime)
Adds a signal group.
SUMOTime myEndTime
End time.
SUMOTime getEndTime()
Returns the stored end time.
SUMOTime getStartTime()
Returns the stored start time.
SUMOTime myOffset
The offset in the plan.
NIVisumTL(const std::string &name, SUMOTime cycleTime, SUMOTime offset, SUMOTime intermediateTime, bool phaseDefined)
Constructor.
SignalGroup(const std::string &name, SUMOTime startTime, SUMOTime endTime, SUMOTime yellowTime)
constructor
SUMOTime myStartTime
Start time.
std::map< std::string, SignalGroup * > mySignalGroups
Map of used signal groups.
void addNode(NBNode *n)
Adds a node to control.
std::vector< NBConnection > NBConnectionVector
Definition of a connection vector.
std::string myName
The name of traffic light.
std::map< std::string, Phase * > & getPhases()
Returns the map of named phases.
Intermediate class for storing visum traffic lights during their import.
NBConnectionVector & connections()
Returns the connections vector.
SUMOTime myIntermediateTime
The all-red time (unused here)
Represents a single node (junction) during network building.
std::map< std::string, Phase * > myPhases
Map of used phases if phases defined.
std::vector< NBNode * > myNodes
Vector of nodes belonging to this traffic light.
std::map< std::string, Phase * > myPhases
phases