SUMO - Simulation of Urban MObility
TraCI_VehicleType.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // C++ TraCI client API implementation
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2017 - 2017 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 
21 #ifndef SUMO_TRACI_VEHICLETYPE_H
22 #define SUMO_TRACI_VEHICLETYPE_H
23 
24 
25 #include <string>
26 #include <traci-server/TraCIDefs.h>
27 #include <microsim/MSVehicleType.h>
29 
30 public:
31 
32  static std::vector<std::string> getIDList();
33  static double getLength(const std::string& typeID);
34  static double getMaxSpeed(const std::string& typeID);
35  static double getSpeedFactor(const std::string& typeID);
36  static double getSpeedDeviation(const std::string& typeID);
37  static double getAccel(const std::string& typeID);
38  static double getDecel(const std::string& typeID);
39  static double getImperfection(const std::string& typeID);
40  static double getTau(const std::string& typeID);
41  static std::string getVehicleClass(const std::string& typeID);
42  static std::string getEmissionClass(const std::string& typeID);
43  static std::string getShapeClass(const std::string& typeID);
44  static double getMinGap(const std::string& typeID);
45  static double getWidth(const std::string& typeID);
46  static double getHeight(const std::string& typeID);
47  static TraCIColor getColor(const std::string& typeID);
48  static double getMinGapLat(const std::string& typeID);
49  static double getMaxSpeedLat(const std::string& typeID);
50  static std::string getLateralAlignment(const std::string& typeID);
51  static std::string getParameter(const std::string& typeID, const std::string& key);
52 
53  static void setLength(const std::string& typeID, double length);
54  static void setMaxSpeed(const std::string& typeID, double speed);
55  static void setVehicleClass(const std::string& typeID, const std::string& clazz);
56  static void setSpeedFactor(const std::string& typeID, double factor);
57  static void setSpeedDeviation(const std::string& typeID, double deviation);
58  static void setEmissionClass(const std::string& typeID, const std::string& clazz);
59  static void setShapeClass(const std::string& typeID, const std::string& shapeClass);
60  static void setWidth(const std::string& typeID, double width);
61  static void setHeight(const std::string& typeID, double height);
62  static void setMinGap(const std::string& typeID, double minGap);
63  static void setAccel(const std::string& typeID, double accel);
64  static void setDecel(const std::string& typeID, double decel);
65  static void setImperfection(const std::string& typeID, double imperfection);
66  static void setTau(const std::string& typeID, double tau);
67  static void setColor(const std::string& typeID, const TraCIColor& c);
68  static void setMinGapLat(const std::string& typeID, double minGapLat);
69  static void setMaxSpeedLat(const std::string& typeID, double speed);
70  static void setLateralAlignment(const std::string& typeID, const std::string& latAlignment);
71 
72  static MSVehicleType* getVType(std::string id);
73 
74  static void addParameter(const std::string& id, const std::string& name, const std::string& value);
75 private:
78 
81 
84 
85 };
86 
87 
88 #endif //SUMO_TRACI_VEHICLETYPE_H
static void setAccel(const std::string &typeID, double accel)
TraCI_VehicleType()
invalidated standard constructor
static void setSpeedDeviation(const std::string &typeID, double deviation)
static void setShapeClass(const std::string &typeID, const std::string &shapeClass)
static std::string getParameter(const std::string &typeID, const std::string &key)
static double getSpeedFactor(const std::string &typeID)
static std::string getShapeClass(const std::string &typeID)
TraCI_VehicleType & operator=(const TraCI_VehicleType &src)
invalidated assignment operator
static TraCIColor getColor(const std::string &typeID)
static void setVehicleClass(const std::string &typeID, const std::string &clazz)
static std::string getEmissionClass(const std::string &typeID)
static std::vector< std::string > getIDList()
static double getMaxSpeedLat(const std::string &typeID)
static void setMinGapLat(const std::string &typeID, double minGapLat)
The car-following model and parameter.
Definition: MSVehicleType.h:74
static void setEmissionClass(const std::string &typeID, const std::string &clazz)
static std::string getLateralAlignment(const std::string &typeID)
static double getMinGap(const std::string &typeID)
static double getMinGapLat(const std::string &typeID)
static std::string getVehicleClass(const std::string &typeID)
static void setMaxSpeedLat(const std::string &typeID, double speed)
static double getAccel(const std::string &typeID)
static void setHeight(const std::string &typeID, double height)
static void setImperfection(const std::string &typeID, double imperfection)
static void setSpeedFactor(const std::string &typeID, double factor)
static void setLength(const std::string &typeID, double length)
static double getTau(const std::string &typeID)
static void setMinGap(const std::string &typeID, double minGap)
static void setMaxSpeed(const std::string &typeID, double speed)
static void setWidth(const std::string &typeID, double width)
static double getImperfection(const std::string &typeID)
static double getDecel(const std::string &typeID)
static void setTau(const std::string &typeID, double tau)
static double getHeight(const std::string &typeID)
static void setDecel(const std::string &typeID, double decel)
static void setColor(const std::string &typeID, const TraCIColor &c)
static void setLateralAlignment(const std::string &typeID, const std::string &latAlignment)
static MSVehicleType * getVType(std::string id)
static double getLength(const std::string &typeID)
static double getSpeedDeviation(const std::string &typeID)
static double getWidth(const std::string &typeID)
static void addParameter(const std::string &id, const std::string &name, const std::string &value)
static double getMaxSpeed(const std::string &typeID)