Eclipse SUMO - Simulation of Urban MObility
GUITrafficLightLogicWrapper.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // A wrapper for tl-logics to allow their visualisation and interaction
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <cassert>
28 #include <utils/geom/GeomHelper.h>
33 #include <utils/gui/div/GLHelper.h>
37 #include <microsim/MSLane.h>
45 #include <gui/GUIGlobals.h>
47 #include "GUINet.h"
49 
50 
51 // ===========================================================================
52 // FOX callback mapping
53 // ===========================================================================
61 };
62 
63 // Object implementation
65 
66 
67 // ===========================================================================
68 // method definitions
69 // ===========================================================================
70 /* -------------------------------------------------------------------------
71  * GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu - methods
72  * ----------------------------------------------------------------------- */
74  GUIMainWindow& app, GUISUMOAbstractView& parent,
75  GUIGlObject& o)
76  : GUIGLObjectPopupMenu(app, parent, o) {}
77 
78 
80 
81 
82 
83 long
85  FXObject*, FXSelector, void*) {
86  assert(myObject->getType() == GLO_TLLOGIC);
87  static_cast<GUITrafficLightLogicWrapper*>(myObject)->begin2TrackPhases();
88  return 1;
89 }
90 
91 
92 long
94  FXObject*, FXSelector, void*) {
95  assert(myObject->getType() == GLO_TLLOGIC);
96  static_cast<GUITrafficLightLogicWrapper*>(myObject)->showPhases();
97  return 1;
98 }
99 
100 long
102  FXObject*, FXSelector, void*) {
103  assert(myObject->getType() == GLO_TLLOGIC);
104  GUITrafficLightLogicWrapper* w = static_cast<GUITrafficLightLogicWrapper*>(myObject);
105  MSActuatedTrafficLightLogic* act = dynamic_cast<MSActuatedTrafficLightLogic*>(&w->getTLLogic());
106  assert(act != 0);
107  act->setShowDetectors(!act->showDetectors());
108  return 1;
109 }
110 
111 long
113  FXObject*, FXSelector /*sel*/, void*) {
114  assert(myObject->getType() == GLO_TLLOGIC);
115  static_cast<GUITrafficLightLogicWrapper*>(myObject)->switchTLSLogic(-1);
116  return 1;
117 }
118 
119 
120 long
122  FXObject*, FXSelector sel, void*) {
123  assert(myObject->getType() == GLO_TLLOGIC);
124  static_cast<GUITrafficLightLogicWrapper*>(myObject)->switchTLSLogic(FXSELID(sel) - MID_SWITCH);
125  return 1;
126 }
127 
128 
129 
130 /* -------------------------------------------------------------------------
131  * GUITrafficLightLogicWrapper - methods
132  * ----------------------------------------------------------------------- */
134  MSTLLogicControl& control, MSTrafficLightLogic& tll) :
135  GUIGlObject(GLO_TLLOGIC, tll.getID()),
136  myTLLogicControl(control), myTLLogic(tll) {}
137 
138 
140 
141 
144  GUISUMOAbstractView& parent) {
145  myApp = &app;
146  GUIGLObjectPopupMenu* ret = new GUITrafficLightLogicWrapperPopupMenu(app, parent, *this);
147  buildPopupHeader(ret, app);
149  //
151  std::vector<MSTrafficLightLogic*> logics = vars.getAllLogics();
152  if (logics.size() > 1) {
153  std::vector<MSTrafficLightLogic*>::const_iterator i;
154  int index = 0;
155  for (i = logics.begin(); i != logics.end(); ++i, ++index) {
156  if (!vars.isActive(*i)) {
157  new FXMenuCommand(ret, ("Switch to '" + (*i)->getProgramID() + "'").c_str(),
158  GUIIconSubSys::getIcon(ICON_FLAG_MINUS), ret, (FXSelector)(MID_SWITCH + index));
159  }
160  }
161  new FXMenuSeparator(ret);
162  }
163  new FXMenuCommand(ret, "Switch off", GUIIconSubSys::getIcon(ICON_FLAG_MINUS), ret, MID_SWITCH_OFF);
164  new FXMenuCommand(ret, "Track Phases", nullptr, ret, MID_TRACKPHASES);
165  new FXMenuCommand(ret, "Show Phases", nullptr, ret, MID_SHOWPHASES);
166  MSActuatedTrafficLightLogic* act = dynamic_cast<MSActuatedTrafficLightLogic*>(&myTLLogic);
167  if (act != nullptr) {
168  new FXMenuCommand(ret, act->showDetectors() ? "Hide Detectors" : "Show Detectors", nullptr, ret, MID_SHOW_DETECTORS);
169  }
170  new FXMenuSeparator(ret);
174  new FXMenuCommand(ret, ("phase: " + toString(tll->getCurrentPhaseIndex())).c_str(), nullptr, nullptr, 0);
175  const std::string& name = myTLLogic.getCurrentPhaseDef().getName();
176  if (name != "") {
177  new FXMenuCommand(ret, ("phase name: " + name).c_str(), nullptr, nullptr, 0);
178  }
179  new FXMenuSeparator(ret);
180  buildShowParamsPopupEntry(ret, false);
181  buildPositionCopyEntry(ret, false);
182  return ret;
183 }
184 
185 
186 void
190  new FuncBinding_StringParam<MSTLLogicControl, std::pair<SUMOTime, MSPhaseDefinition> >
192  window->create();
193  window->show();
194 }
195 
196 
197 void
201  static_cast<MSSimpleTrafficLightLogic&>(myTLLogic).getPhases());
202  window->setBeginTime(0);
203  window->create();
204  window->show();
205 }
206 
207 
212  new GUIParameterTableWindow(app, *this, 3 + (int)myTLLogic.getParametersMap().size());
213  ret->mkItem("tlLogic [id]", false, myTLLogic.getID());
214  ret->mkItem("program", false, myTLLogic.getProgramID());
215  // close building
216  ret->closeBuilding(&myTLLogic);
217  return ret;
218 }
219 
220 
221 Boundary
223  Boundary ret;
225  for (MSTrafficLightLogic::LaneVectorVector::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
226  const MSTrafficLightLogic::LaneVector& lanes2 = (*i);
227  for (MSTrafficLightLogic::LaneVector::const_iterator j = lanes2.begin(); j != lanes2.end(); ++j) {
228  ret.add((*j)->getShape()[-1]);
229  }
230  }
231  ret.grow(20);
232  return ret;
233 }
234 
235 
236 void
238  if (to == -1) {
242  } else {
244  std::vector<MSTrafficLightLogic*> logics = vars.getAllLogics();
245  myTLLogicControl.switchTo(myTLLogic.getID(), logics[to]->getProgramID());
246  }
247 }
248 
249 
250 int
252  return myTLLogic.getLinkIndex(link);
253 }
254 
255 
256 void
258  if (s.gaming) {
259  if (!MSNet::getInstance()->getTLSControl().isActive(&myTLLogic)) {
260  return;
261  };
262  const std::string& curState = myTLLogic.getCurrentPhaseDef().getState();
263  if (curState.find_first_of("gG") == std::string::npos) {
264  // no link is 'green' at the moment. find those that turn green next
266  int curPhaseIdx = myTLLogic.getCurrentPhaseIndex();
267  int phaseIdx = (curPhaseIdx + 1) % phases.size();
268  std::vector<int> nextGreen;
269  while (phaseIdx != curPhaseIdx) {
270  const std::string& state = phases[phaseIdx]->getState();
271  for (int linkIdx = 0; linkIdx < (int)state.size(); linkIdx++) {
272  if ((LinkState)state[linkIdx] == LINKSTATE_TL_GREEN_MINOR ||
273  (LinkState)state[linkIdx] == LINKSTATE_TL_GREEN_MAJOR) {
274  nextGreen.push_back(linkIdx);
275  }
276  }
277  if (nextGreen.size() > 0) {
278  break;
279  }
280  phaseIdx = (phaseIdx + 1) % phases.size();
281  }
282  // highlight nextGreen links
283  for (std::vector<int>::iterator it_idx = nextGreen.begin(); it_idx != nextGreen.end(); it_idx++) {
284  const MSTrafficLightLogic::LaneVector& lanes = myTLLogic.getLanesAt(*it_idx);
285  for (MSTrafficLightLogic::LaneVector::const_iterator it_lane = lanes.begin(); it_lane != lanes.end(); it_lane++) {
286  glPushMatrix();
287  // split circle in red and yellow
288  Position pos = (*it_lane)->getShape().back();
289  glTranslated(pos.x(), pos.y(), GLO_MAX);
290  double rot = RAD2DEG((*it_lane)->getShape().angleAt2D((int)(*it_lane)->getShape().size() - 2)) - 90;
291  glRotated(rot, 0, 0, 1);
293  GLHelper::drawFilledCircle((*it_lane)->getWidth() / 2., 8, -90, 90);
295  GLHelper::drawFilledCircle((*it_lane)->getWidth() / 2., 8, 90, 270);
296  glPopMatrix();
297  }
298  }
299  }
300  }
301 }
302 
303 
304 /****************************************************************************/
305 
MSTLLogicControl::getPhaseDef
std::pair< SUMOTime, MSPhaseDefinition > getPhaseDef(const std::string &tlid) const
return the complete phase definition for a named traffic lights logic
Definition: MSTLLogicControl.cpp:834
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic
long onCmdSwitchTLSLogic(FXObject *, FXSelector, void *)
Definition: GUITrafficLightLogicWrapper.cpp:121
MID_SHOWPHASES
Definition: GUIAppEnum.h:389
GLO_MAX
empty max
Definition: GUIGlObjectTypes.h:166
GUIGlObject.h
MSTrafficLightLogic::getPhases
virtual const Phases & getPhases() const =0
Returns the phases of this tls program.
GUITrafficLightLogicWrapper::begin2TrackPhases
void begin2TrackPhases()
Builds a GUITLLogicPhasesTrackerWindow which will receive new phases.
Definition: GUITrafficLightLogicWrapper.cpp:187
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:63
MID_SWITCH
Definition: GUIAppEnum.h:388
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
MSTLLogicControl.h
GUIParameterTableWindow.h
GUITrafficLightLogicWrapper::myApp
GUIMainWindow * myApp
The main application.
Definition: GUITrafficLightLogicWrapper.h:155
MSTrafficLightLogic::getProgramID
const std::string & getProgramID() const
Returns this tl-logic's id.
Definition: MSTrafficLightLogic.h:172
FuncBinding_StringParam.h
GUINet::getGUIInstance
static GUINet * getGUIInstance()
Returns the pointer to the unique instance of GUINet (singleton).
Definition: GUINet.cpp:516
GUIGlObject::buildSelectionPopupEntry
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
Definition: GUIGlObject.cpp:236
GUITLLogicPhasesTrackerWindow
This window displays a phase diagram for a chosen tl-logic.
Definition: GUITLLogicPhasesTrackerWindow.h:64
MSTrafficLightLogic::Phases
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
Definition: MSTrafficLightLogic.h:62
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapper
GUITrafficLightLogicWrapper(MSTLLogicControl &control, MSTrafficLightLogic &tll)
Constructor.
Definition: GUITrafficLightLogicWrapper.cpp:133
GUIGLObjectPopupMenu.h
GUIGlobalSelection.h
MSActuatedTrafficLightLogic.h
GUITrafficLightLogicWrapper::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUITrafficLightLogicWrapper.cpp:222
GUITLLogicPhasesTrackerWindow::create
void create()
Creates the window (FOX-Toolkit)
Definition: GUITLLogicPhasesTrackerWindow.cpp:222
MSTrafficLightLogic::getCurrentPhaseIndex
virtual int getCurrentPhaseIndex() const =0
Returns the current index within the program.
LINKSTATE_TL_GREEN_MINOR
The link has green light, has to brake.
Definition: SUMOXMLDefinitions.h:1136
RAD2DEG
#define RAD2DEG(x)
Definition: GeomHelper.h:39
GLHelper.h
LINKSTATE_TL_GREEN_MAJOR
The link has green light, may pass.
Definition: SUMOXMLDefinitions.h:1134
GUITrafficLightLogicWrapper::getLinkIndex
int getLinkIndex(const MSLink *const link) const
Returns the index of the given link within the according tls.
Definition: GUITrafficLightLogicWrapper.cpp:251
GUINet.h
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:48
GUIIconSubSys::getIcon
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
Definition: GUIIconSubSys.cpp:602
GLHelper::setColor
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition: GLHelper.cpp:616
GUIParameterTableWindow::closeBuilding
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
Definition: GUIParameterTableWindow.cpp:220
MSTLLogicControl::getActive
MSTrafficLightLogic * getActive(const std::string &id) const
Returns the active program of a named tls.
Definition: MSTLLogicControl.cpp:658
GUIAppEnum.h
MID_SWITCH_OFF
Show TLS phases - popup entry.
Definition: GUIAppEnum.h:387
MSTrafficLightLogic.h
GLO_TLLOGIC
a tl-logic
Definition: GUIGlObjectTypes.h:57
GLHelper::drawFilledCircle
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
Definition: GLHelper.cpp:348
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu
Definition: GUITrafficLightLogicWrapper.h:121
LinkState
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
Definition: SUMOXMLDefinitions.h:1132
MSTrafficLightLogic::LaneVector
std::vector< MSLane * > LaneVector
Definition of the list of arrival lanes subjected to this tls.
Definition: MSTrafficLightLogic.h:71
MSTLLogicControl::TLSLogicVariants::getAllLogics
std::vector< MSTrafficLightLogic * > getAllLogics() const
Definition: MSTLLogicControl.cpp:180
Parameterised::getParametersMap
const std::map< std::string, std::string > & getParametersMap() const
Returns the inner key/value map.
Definition: Parameterised.cpp:105
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowDetectors
long onCmdShowDetectors(FXObject *, FXSelector, void *)
Definition: GUITrafficLightLogicWrapper.cpp:101
MSTLLogicControl::get
TLSLogicVariants & get(const std::string &id) const
Returns the variants of a named tls.
Definition: MSTLLogicControl.cpp:584
GUITrafficLightLogicWrapper::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUITrafficLightLogicWrapper.cpp:143
GUIGlObject::buildNameCopyPopupEntry
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
Definition: GUIGlObject.cpp:226
MSPhaseDefinition::getState
const std::string & getState() const
Returns the state within this phase.
Definition: MSPhaseDefinition.h:200
GUITLLogicPhasesTrackerWindow.h
GUIParameterTableWindow::mkItem
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
Definition: GUIParameterTableWindow.h:109
GUIGlobals.h
MID_SHOW_DETECTORS
show/hide actuation detectors
Definition: GUIAppEnum.h:393
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
GUITrafficLightLogicWrapper.h
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off
long onCmdSwitchTLS2Off(FXObject *, FXSelector, void *)
Definition: GUITrafficLightLogicWrapper.cpp:112
GUIApplicationWindow.h
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
Position::x
double x() const
Returns the x-position.
Definition: Position.h:57
Boundary::add
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Definition: Boundary.cpp:79
MSActuatedTrafficLightLogic
An actuated (adaptive) traffic light logic.
Definition: MSActuatedTrafficLightLogic.h:51
MSTrafficLightLogic::getLinkIndex
int getLinkIndex(const MSLink *const link) const
Returns the index of the given link.
Definition: MSTrafficLightLogic.cpp:264
MSTrafficLightLogic
The parent class for traffic light logics.
Definition: MSTrafficLightLogic.h:56
MSTLLogicControl::TLSLogicVariants::isActive
bool isActive(const MSTrafficLightLogic *tl) const
Definition: MSTLLogicControl.cpp:191
GUIGlObject
Definition: GUIGlObject.h:66
MSActuatedTrafficLightLogic::showDetectors
bool showDetectors() const
Definition: MSActuatedTrafficLightLogic.h:96
GUIGlObject::buildPopupHeader
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
Definition: GUIGlObject.cpp:208
MSTrafficLightLogic::getLaneVectors
const LaneVectorVector & getLaneVectors() const
Returns the list of lists of all lanes controlled by this tls.
Definition: MSTrafficLightLogic.h:180
GUIVisualizationSettings::getLinkColor
static const RGBColor & getLinkColor(const LinkState &ls)
map from LinkState to color constants
Definition: GUIVisualizationSettings.cpp:1566
GUIIconSubSys.h
GLIncludes.h
toString
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition: ToString.h:48
MSActuatedTrafficLightLogic::setShowDetectors
void setShowDetectors(bool show)
Definition: MSActuatedTrafficLightLogic.cpp:449
MSTLLogicControl::switchTo
void switchTo(const std::string &id, const std::string &programID)
Switches the named (id) tls to the named (programID) program.
Definition: MSTLLogicControl.cpp:668
GLObjectValuePassConnector.h
FunctionBinding.h
MSNet::getInstance
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
Definition: MSNet.cpp:168
GUIMainWindow
Definition: GUIMainWindow.h:47
Position::y
double y() const
Returns the y-position.
Definition: Position.h:62
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases
long onCmdShowPhases(FXObject *, FXSelector, void *)
Called if the phases shall be shown.
Definition: GUITrafficLightLogicWrapper.cpp:93
LINKSTATE_TL_YELLOW_MAJOR
The link has yellow light, may pass.
Definition: SUMOXMLDefinitions.h:1142
GUITrafficLightLogicWrapper::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUITrafficLightLogicWrapper.cpp:257
GUITrafficLightLogicWrapper
Definition: GUITrafficLightLogicWrapper.h:48
GUIGlObject::buildShowParamsPopupEntry
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
Definition: GUIGlObject.cpp:249
MID_TRACKPHASES
Begin to track phases - menu entry.
Definition: GUIAppEnum.h:391
GUIGlObject::buildCenterPopupEntry
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
Definition: GUIGlObject.cpp:217
GUIGlObject::buildPositionCopyEntry
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used,...
Definition: GUIGlObject.cpp:267
GUITrafficLightLogicWrapper::~GUITrafficLightLogicWrapper
~GUITrafficLightLogicWrapper()
Destructor.
Definition: GUITrafficLightLogicWrapper.cpp:139
GUITrafficLightLogicWrapper::myTLLogic
MSTrafficLightLogic & myTLLogic
The wrapped tl-logic.
Definition: GUITrafficLightLogicWrapper.h:152
MSTLLogicControl::TLSLogicVariants
Storage for all programs of a single tls.
Definition: MSTLLogicControl.h:86
MSTrafficLightLogic::LaneVectorVector
std::vector< LaneVector > LaneVectorVector
Definition of a list that holds lists of lanes that do have the same attribute.
Definition: MSTrafficLightLogic.h:74
GUITrafficLightLogicWrapper::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUITrafficLightLogicWrapper.cpp:209
config.h
GeomHelper.h
Boundary::grow
Boundary & grow(double by)
extends the boundary by the given amount
Definition: Boundary.cpp:301
MSTLLogicControl
A class that stores and controls tls and switching of their programs.
Definition: MSTLLogicControl.h:60
LINKSTATE_TL_RED
The link has red light (must brake)
Definition: SUMOXMLDefinitions.h:1138
GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow
GUITLLogicPhasesTrackerWindow()
protected constructor for FOX
Definition: GUITLLogicPhasesTrackerWindow.h:243
MSLane.h
ICON_FLAG_MINUS
Definition: GUIIcons.h:128
GUITLLogicPhasesTrackerWindow::setBeginTime
void setBeginTime(SUMOTime time)
Sets the time the display shall be shown as beginning at.
Definition: GUITLLogicPhasesTrackerWindow.cpp:489
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:346
GUINet::createTLWrapper
void createTLWrapper(MSTrafficLightLogic *tll) override
creates a wrapper for the given logic
Definition: GUINet.cpp:149
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases
long onCmdBegin2TrackPhases(FXObject *, FXSelector, void *)
Called if the phases shall be begun to track.
Definition: GUITrafficLightLogicWrapper.cpp:84
FXDEFMAP
FXDEFMAP(GUIDialog_AppSettings) GUIDialog_AppSettingsMap[]
GUITrafficLightLogicWrapperPopupMenuMap
GUITrafficLightLogicWrapperPopupMenuMap[]
Definition: GUITrafficLightLogicWrapper.cpp:55
GUIVisualizationSettings::gaming
bool gaming
whether the application is in gaming mode or not
Definition: GUIVisualizationSettings.h:626
Named::getID
const std::string & getID() const
Returns the id.
Definition: Named.h:77
GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::~GUITrafficLightLogicWrapperPopupMenu
~GUITrafficLightLogicWrapperPopupMenu()
Destructor.
Definition: GUITrafficLightLogicWrapper.cpp:79
FuncBinding_StringParam
Definition: FuncBinding_StringParam.h:37
MSTrafficLightLogic::getCurrentPhaseDef
virtual const MSPhaseDefinition & getCurrentPhaseDef() const =0
Returns the definition of the current phase.
GUITrafficLightLogicWrapper::showPhases
void showPhases()
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram.
Definition: GUITrafficLightLogicWrapper.cpp:198
GUITrafficLightLogicWrapper::switchTLSLogic
void switchTLSLogic(int to)
Builds a GUITLLogicPhasesTrackerWindow which displays the phase diagram.
Definition: GUITrafficLightLogicWrapper.cpp:237
GUITrafficLightLogicWrapper::myTLLogicControl
MSTLLogicControl & myTLLogicControl
Reference to the according tls.
Definition: GUITrafficLightLogicWrapper.h:149
MSTrafficLightLogic::getLanesAt
const LaneVector & getLanesAt(int i) const
Returns the list of lanes that are controlled by the signals at the given position.
Definition: MSTrafficLightLogic.h:189
MSPhaseDefinition::getName
const std::string & getName() const
Definition: MSPhaseDefinition.h:216