SUMO - Simulation of Urban MObility
MSSOTLPlatoonTrafficLightLogic.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // The class for SOTL Platoon logics
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright 2001-2009 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef MSSOTLPlatoonTrafficLightLogic_h
21 #define MSSOTLPlatoonTrafficLightLogic_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
34 public:
45  const std::string& id, const std::string& subid,
46  const Phases& phases, unsigned int step, SUMOTime delay,
47  const std::map<std::string, std::string>& parameters) throw();
48 
59  const std::string& id, const std::string& subid,
60  const Phases& phases, unsigned int step, SUMOTime delay,
61  const std::map<std::string, std::string>& parameters,
62  MSSOTLSensors* sensors) throw();
63 
64 protected:
65 
66  /*
67  * @brief Contains the logic to decide whether to release the green light
68  */
69  bool canRelease() throw();
70 };
71 
72 #endif
73 /****************************************************************************/
long long int SUMOTime
Definition: SUMOTime.h:43
A class that stores and controls tls and switching of their programs.
A self-organizing traffic light logic.
MSSOTLPlatoonTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &subid, const Phases &phases, unsigned int step, SUMOTime delay, const std::map< std::string, std::string > &parameters)
Constructor without sensors passed.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.