 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef SUMO_VehicleType_H
19 #define SUMO_VehicleType_H
30 #define LIBSUMO_VEHICLE_TYPE_GETTER \
31 static double getLength(const std::string& typeID); \
32 static double getMaxSpeed(const std::string& typeID); \
33 static double getActionStepLength(const std::string& typeID); \
34 static double getSpeedFactor(const std::string& typeID); \
35 static double getSpeedDeviation(const std::string& typeID); \
36 static double getAccel(const std::string& typeID); \
37 static double getDecel(const std::string& typeID); \
38 static double getEmergencyDecel(const std::string& typeID); \
39 static double getApparentDecel(const std::string& typeID); \
40 static double getImperfection(const std::string& typeID); \
41 static double getTau(const std::string& typeID); \
42 static std::string getVehicleClass(const std::string& typeID); \
43 static std::string getEmissionClass(const std::string& typeID); \
44 static std::string getShapeClass(const std::string& typeID); \
45 static double getMinGap(const std::string& typeID); \
46 static double getWidth(const std::string& typeID); \
47 static double getHeight(const std::string& typeID); \
48 static TraCIColor getColor(const std::string& typeID); \
49 static double getMinGapLat(const std::string& typeID); \
50 static double getMaxSpeedLat(const std::string& typeID); \
51 static std::string getLateralAlignment(const std::string& typeID); \
52 static int getPersonCapacity(const std::string& typeID);
54 #define LIBSUMO_VEHICLE_TYPE_SETTER \
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 setEmissionClass(const std::string& typeID, const std::string& clazz); \
60 static void setShapeClass(const std::string& typeID, const std::string& shapeClass); \
61 static void setWidth(const std::string& typeID, double width); \
62 static void setHeight(const std::string& typeID, double height); \
63 static void setMinGap(const std::string& typeID, double minGap); \
64 static void setAccel(const std::string& typeID, double accel); \
65 static void setDecel(const std::string& typeID, double decel); \
66 static void setEmergencyDecel(const std::string& typeID, double decel); \
67 static void setApparentDecel(const std::string& typeID, double decel); \
68 static void setImperfection(const std::string& typeID, double imperfection); \
69 static void setTau(const std::string& typeID, double tau); \
70 static void setColor(const std::string& typeID, const TraCIColor& c); \
71 static void setMinGapLat(const std::string& typeID, double minGapLat); \
72 static void setMaxSpeedLat(const std::string& typeID, double speed); \
73 static void setLateralAlignment(const std::string& typeID, const std::string& latAlignment); \
74 static void setActionStepLength(const std::string& typeID, double actionStepLength, bool resetActionOffset=true);
81 class VariableWrapper;
95 static std::vector<std::string>
getIDList();
98 static std::string
getParameter(
const std::string& typeID,
const std::string& key);
101 static void copy(
const std::string& origTypeID,
const std::string& newTypeID);
105 static void setParameter(
const std::string&
id,
const std::string& name,
const std::string& value);
109 static std::shared_ptr<VariableWrapper>
makeWrapper();
126 #endif //SUMO_VehicleType_H
The car-following model and parameter.
static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
#define LIBSUMO_SUBSCRIPTION_API
static LIBSUMO_VEHICLE_TYPE_GETTER std::string getParameter(const std::string &typeID, const std::string &key)
static std::vector< std::string > getIDList()
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static MSVehicleType * getVType(std::string id)
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
static LIBSUMO_VEHICLE_TYPE_SETTER void copy(const std::string &origTypeID, const std::string &newTypeID)
#define LIBSUMO_VEHICLE_TYPE_GETTER
#define LIBSUMO_VEHICLE_TYPE_SETTER
static void setSpeedDeviation(const std::string &typeID, double deviation)
VehicleType()=delete
invalidated standard constructor
static void setParameter(const std::string &id, const std::string &name, const std::string &value)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}