27#define LIBSUMO_VEHICLE_TYPE_GETTER \
28static double getLength(const std::string& typeID); \
29static double getMaxSpeed(const std::string& typeID); \
30static std::string getVehicleClass(const std::string& typeID); \
31static double getSpeedFactor(const std::string& typeID); \
32static double getAccel(const std::string& typeID); \
33static double getDecel(const std::string& typeID); \
34static double getEmergencyDecel(const std::string& typeID); \
35static double getApparentDecel(const std::string& typeID); \
36static double getImperfection(const std::string& typeID); \
37static double getTau(const std::string& typeID); \
38static std::string getEmissionClass(const std::string& typeID); \
39static std::string getShapeClass(const std::string& typeID); \
40static double getMinGap(const std::string& typeID); \
41static double getWidth(const std::string& typeID); \
42static double getHeight(const std::string& typeID); \
43static double getMass(const std::string& typeID); \
44static libsumo::TraCIColor getColor(const std::string& typeID); \
45static double getMinGapLat(const std::string& typeID); \
46static double getMaxSpeedLat(const std::string& typeID); \
47static std::string getLateralAlignment(const std::string& typeID); \
48static int getPersonCapacity(const std::string& typeID); \
49static double getActionStepLength(const std::string& typeID); \
51static double getSpeedDeviation(const std::string& typeID); \
52static double getBoardingDuration(const std::string& typeID); \
53static double getImpatience(const std::string& typeID); \
56#define LIBSUMO_VEHICLE_TYPE_SETTER \
57static void setLength(const std::string& typeID, double length); \
58static void setMaxSpeed(const std::string& typeID, double speed); \
59static void setVehicleClass(const std::string& typeID, const std::string& clazz); \
60static void setSpeedFactor(const std::string& typeID, double factor); \
61static void setAccel(const std::string& typeID, double accel); \
62static void setDecel(const std::string& typeID, double decel); \
63static void setEmergencyDecel(const std::string& typeID, double decel); \
64static void setApparentDecel(const std::string& typeID, double decel); \
65static void setImperfection(const std::string& typeID, double imperfection); \
66static void setTau(const std::string& typeID, double tau); \
67static void setEmissionClass(const std::string& typeID, const std::string& clazz); \
68static void setShapeClass(const std::string& typeID, const std::string& shapeClass); \
69static void setWidth(const std::string& typeID, double width); \
70static void setHeight(const std::string& typeID, double height); \
71static void setMass(const std::string& typeID, double mass); \
72static void setColor(const std::string& typeID, const libsumo::TraCIColor& color); \
73static void setMinGap(const std::string& typeID, double minGap); \
74static void setMinGapLat(const std::string& typeID, double minGapLat); \
75static void setMaxSpeedLat(const std::string& typeID, double speed); \
76static void setLateralAlignment(const std::string& typeID, const std::string& latAlignment); \
77static void setActionStepLength(const std::string& typeID, double actionStepLength, bool resetActionOffset=true); \
78static void setBoardingDuration(const std::string& typeID, double boardingDuration); \
79static void setImpatience(const std::string& typeID, double impatience); \
103 static void copy(
const std::string& origTypeID,
const std::string& newTypeID);
106 static double getScale(
const std::string& typeID);
107 static void setScale(
const std::string& typeID,
double value);
115 static std::shared_ptr<VariableWrapper>
makeWrapper();
#define LIBSUMO_ID_PARAMETER_API
#define LIBSUMO_SUBSCRIPTION_API
#define LIBSUMO_VEHICLE_TYPE_GETTER
#define LIBSUMO_VEHICLE_TYPE_SETTER
VehicleType()=delete
invalidated standard constructor
static void setSpeedDeviation(const std::string &typeID, double deviation)
static void setScale(const std::string &typeID, double value)
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
static std::shared_ptr< VariableWrapper > makeWrapper()
static double getScale(const std::string &typeID)
static LIBSUMO_SUBSCRIPTION_API MSVehicleType * getVType(std::string id)
static SubscriptionResults mySubscriptionResults
LIBSUMO_VEHICLE_TYPE_GETTER LIBSUMO_ID_PARAMETER_API static LIBSUMO_VEHICLE_TYPE_SETTER void copy(const std::string &origTypeID, const std::string &newTypeID)
static ContextSubscriptionResults myContextSubscriptionResults
static bool handleVariableWithID(const std::string &objID, const std::string &typeID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
The car-following model and parameter.