33 #pragma warning(disable: 4100)
35 #pragma GCC diagnostic ignored "-Wunused-parameter"
40 typedef Domain<libsumo::CMD_GET_TL_VARIABLE, libsumo::CMD_SET_TL_VARIABLE>
Dom;
45 std::vector<std::string>
46 TrafficLight::getIDList() {
52 TrafficLight::getIDCount() {
58 TrafficLight::getRedYellowGreenState(
const std::string& tlsID) {
63 std::vector<libsumo::TraCILogic>
64 TrafficLight::getAllProgramLogics(
const std::string& tlsID) {
65 return std::vector<libsumo::TraCILogic>();
69 std::vector<std::string>
70 TrafficLight::getControlledJunctions(
const std::string& tlsID) {
75 std::vector<std::string>
76 TrafficLight::getControlledLanes(
const std::string& tlsID) {
81 std::vector<std::vector<libsumo::TraCILink> >
82 TrafficLight::getControlledLinks(
const std::string& tlsID) {
83 return std::vector < std::vector<libsumo::TraCILink> >();
88 TrafficLight::getProgram(
const std::string& tlsID) {
94 TrafficLight::getPhase(
const std::string& tlsID) {
100 TrafficLight::getPhaseName(
const std::string& tlsID) {
106 TrafficLight::getPhaseDuration(
const std::string& tlsID) {
112 TrafficLight::getNextSwitch(
const std::string& tlsID) {
117 TrafficLight::getServedPersonCount(
const std::string& tlsID,
int index) {
121 std::vector<std::string>
122 TrafficLight::getBlockingVehicles(
const std::string& tlsID,
int linkIndex) {
126 std::vector<std::string>
127 TrafficLight::getRivalVehicles(
const std::string& tlsID,
int linkIndex) {
131 std::vector<std::string>
132 TrafficLight::getPriorityVehicles(
const std::string& tlsID,
int linkIndex) {
139 TrafficLight::setRedYellowGreenState(
const std::string& tlsID,
const std::string& state) {
145 TrafficLight::setPhase(
const std::string& tlsID,
const int index) {
151 TrafficLight::setPhaseName(
const std::string& tlsID,
const std::string& name) {
157 TrafficLight::setProgram(
const std::string& tlsID,
const std::string& programID) {
163 TrafficLight::setPhaseDuration(
const std::string& tlsID,
const double phaseDuration) {
169 TrafficLight::setProgramLogic(
const std::string& tlsID,
const libsumo::TraCILogic& logic) {
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
C++ TraCI client API implementation.
static void setDouble(int var, const std::string &id, double value)
static std::vector< std::string > getStringVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
static std::string getString(int var, const std::string &id, tcpip::Storage *add=nullptr)
static int getInt(int var, const std::string &id, tcpip::Storage *add=nullptr)
static double getDouble(int var, const std::string &id, tcpip::Storage *add=nullptr)
static void setInt(int var, const std::string &id, int value)
static void setString(int var, const std::string &id, const std::string &value)
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int TL_BLOCKING_VEHICLES
TRACI_CONST int TL_PRIORITY_VEHICLES
TRACI_CONST int TL_CONTROLLED_LANES
TRACI_CONST int VAR_PERSON_NUMBER
TRACI_CONST int TL_CONTROLLED_JUNCTIONS
TRACI_CONST int TL_NEXT_SWITCH
TRACI_CONST int TL_PROGRAM
TRACI_CONST int TL_PHASE_DURATION
TRACI_CONST int TL_PHASE_INDEX
TRACI_CONST int TL_CURRENT_PHASE
TRACI_CONST int TL_RED_YELLOW_GREEN_STATE
TRACI_CONST int TL_CURRENT_PROGRAM
TRACI_CONST int TL_RIVAL_VEHICLES
Domain< libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_SET_BUSSTOP_VARIABLE > Dom