SUMO - Simulation of Urban MObility
MSSOTLRequestTrafficLightLogic.cpp
Go to the documentation of this file.
1 /****************************************************************************/
8 // The class for SOTL Request logics
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright 2001-2009 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 
23 
25  MSTLLogicControl& tlcontrol, const std::string& id, const std::string& subid,
26  const Phases& phases, int step, SUMOTime delay,
27  const std::map<std::string, std::string>& parameters) throw() :
28  MSSOTLTrafficLightLogic(tlcontrol, id, subid, phases, step, delay,
29  parameters) {
31  "*** Intersection " + id
32  + " will run using MSSOTLRequestTrafficLightLogic ---");
33 }
34 
36  MSTLLogicControl& tlcontrol, const std::string& id, const std::string& subid,
37  const Phases& phases, int step, SUMOTime delay,
38  const std::map<std::string, std::string>& parameters,
39  MSSOTLSensors* sensors) throw() :
40  MSSOTLTrafficLightLogic(tlcontrol, id, subid, phases, step, delay,
41  parameters, sensors) {
43  "*** Intersection " + id
44  + " will run using MSSOTLRequestTrafficLightLogic ***");
45 }
46 
49  return isThresholdPassed();
50  }
51  return false;
52 }
long long int SUMOTime
Definition: SUMOTime.h:43
MSSOTLRequestTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &subid, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > &parameters)
Constructor without sensors passed.
A class that stores and controls tls and switching of their programs.
A self-organizing traffic light logic.
static MsgHandler * getMessageInstance()
Returns the instance to add normal messages to.
Definition: MsgHandler.cpp:62
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
void inform(std::string msg, bool addType=true)
adds a new error to the list
Definition: MsgHandler.cpp:89