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 getEmergencyDecel(const std::string& typeID);
40  static double getApparentDecel(const std::string& typeID);
41  static double getImperfection(const std::string& typeID);
42  static double getTau(const std::string& typeID);
43  static std::string getVehicleClass(const std::string& typeID);
44  static std::string getEmissionClass(const std::string& typeID);
45  static std::string getShapeClass(const std::string& typeID);
46  static double getMinGap(const std::string& typeID);
47  static double getWidth(const std::string& typeID);
48  static double getHeight(const std::string& typeID);
49  static TraCIColor getColor(const std::string& typeID);
50  static double getMinGapLat(const std::string& typeID);
51  static double getMaxSpeedLat(const std::string& typeID);
52  static std::string getLateralAlignment(const std::string& typeID);
53  static std::string getParameter(const std::string& typeID, const std::string& key);
54 
55  static void setLength(const std::string& typeID, double length);
56  static void setMaxSpeed(const std::string& typeID, double speed);
57  static void setVehicleClass(const std::string& typeID, const std::string& clazz);
58  static void setSpeedFactor(const std::string& typeID, double factor);
59  static void setSpeedDeviation(const std::string& typeID, double deviation);
60  static void setEmissionClass(const std::string& typeID, const std::string& clazz);
61  static void setShapeClass(const std::string& typeID, const std::string& shapeClass);
62  static void setWidth(const std::string& typeID, double width);
63  static void setHeight(const std::string& typeID, double height);
64  static void setMinGap(const std::string& typeID, double minGap);
65  static void setAccel(const std::string& typeID, double accel);
66  static void setDecel(const std::string& typeID, double decel);
67  static void setEmergencyDecel(const std::string& typeID, double decel);
68  static void setApparentDecel(const std::string& typeID, double decel);
69  static void setImperfection(const std::string& typeID, double imperfection);
70  static void setTau(const std::string& typeID, double tau);
71  static void setColor(const std::string& typeID, const TraCIColor& c);
72  static void setMinGapLat(const std::string& typeID, double minGapLat);
73  static void setMaxSpeedLat(const std::string& typeID, double speed);
74  static void setLateralAlignment(const std::string& typeID, const std::string& latAlignment);
75  static void copy(const std::string& origTypeID, const std::string& newTypeID);
76  static MSVehicleType* getVType(std::string id);
77 
78  static void addParameter(const std::string& id, const std::string& name, const std::string& value);
79 private:
82 
85 
88 
89 };
90 
91 
92 #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 double getApparentDecel(const std::string &typeID)
static std::vector< std::string > getIDList()
static void copy(const std::string &origTypeID, const std::string &newTypeID)
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:73
static void setApparentDecel(const std::string &typeID, double decel)
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 void setEmergencyDecel(const std::string &typeID, double decel)
static double getDecel(const std::string &typeID)
static void setTau(const std::string &typeID, double tau)
static double getEmergencyDecel(const std::string &typeID)
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)