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