42 std::vector<std::string> ids;
static void setAccel(const std::string &typeID, double accel)
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
void setMinGap(const double &minGap)
Set a new value for this type's minimum gap.
double getMinGap() const
Get the free space in front of vehicles of this class.
static void setSpeedDeviation(const std::string &typeID, double deviation)
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
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)
static TraCIColor getColor(const std::string &typeID)
void setShape(SUMOVehicleShape shape)
Set a new value for this type's shape.
Structure representing possible vehicle parameter.
static void setVehicleClass(const std::string &typeID, const std::string &clazz)
static TraCIColor makeTraCIColor(const RGBColor &color)
std::vector< double > & getParameter()
Returns the parameters of this distribution.
static std::string getEmissionClass(const std::string &typeID)
static double getApparentDecel(const std::string &typeID)
virtual double getHeadwayTime() const
Get the driver's desired headway [s].
static std::vector< std::string > getIDList()
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
double getMaxSpeed() const
Get vehicle's maximum speed [m/s].
void setLength(const double &length)
Set a new value for this type's length.
LateralAlignment getPreferredLateralAlignment() const
Get vehicle's preferred lateral alignment.
void insertVTypeIDs(std::vector< std::string > &into) const
Inserts ids of all known vehicle types and vehicle type distributions to the given vector...
static void copy(const std::string &origTypeID, const std::string &newTypeID)
static double getMaxSpeedLat(const std::string &typeID)
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
void setMaxSpeed(const double &maxSpeed)
Set a new value for this type's maximum speed.
static void setMinGapLat(const std::string &typeID, double minGapLat)
virtual void setApparentDecel(double decel)
Sets a new value for the apparent deceleration [m/s^2].
The car-following model and parameter.
double getEmergencyDecel() const
Get the vehicle type's maximal phisically possible deceleration [m/s^2].
static void setApparentDecel(const std::string &typeID, double decel)
const MSCFModel & getCarFollowModel() const
Returns the vehicle type's car following model definition (const version)
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
static void setEmissionClass(const std::string &typeID, const std::string &clazz)
void setMinGapLat(const double &minGapLat)
Set a new value for this type's minimum lataral gap.
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)
const SUMOVTypeParameter & getParameter() const
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static void setMaxSpeedLat(const std::string &typeID, double speed)
double getHeight() const
Get the height which vehicles of this class shall have when being drawn.
virtual double getImperfection() const
Get the driver's imperfection.
double getMaxDecel() const
Get the vehicle type's maximal comfortable deceleration [m/s^2].
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)
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual void setHeadwayTime(double headwayTime)
Sets a new value for desired headway [s].
static void setSpeedFactor(const std::string &typeID, double factor)
void setHeight(const double &height)
Set a new value for this type's height.
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)
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
double getWidth() const
Get the width which vehicles of this class shall have when being drawn.
void setSpeedDeviation(const double &dev)
Set a new value for this type's speed deviation.
void setSpeedFactor(const double &factor)
Set a new value for this type's speed factor.
static void setWidth(const std::string &typeID, double width)
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
MSVehicleType * getVType(const std::string &id=DEFAULT_VTYPE_ID, std::mt19937 *rng=0)
Returns the named vehicle type or a sample from the named distribution.
static double getImperfection(const std::string &typeID)
static void setEmergencyDecel(const std::string &typeID, double decel)
double getMinGapLat() const
Get the minimum lateral gap that vehicles of this type maintain.
double getLength() const
Get vehicle's length [m].
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
const Distribution_Parameterized & getSpeedFactor() const
Returns this type's speed factor.
static double getDecel(const std::string &typeID)
double getMaxAccel() const
Get the vehicle type's maximum acceleration [m/s^2].
virtual void setMaxDecel(double decel)
Sets a new value for maximal comfortable deceleration [m/s^2].
static SUMOEmissionClass getClassByName(const std::string &eClass, const SUMOVehicleClass vc=SVC_IGNORING)
Checks whether the string describes a known vehicle class.
virtual void setMaxAccel(double accel)
Sets a new value for maximum acceleration [m/s^2].
static void setTau(const std::string &typeID, double tau)
static double getEmergencyDecel(const std::string &typeID)
virtual void setImperfection(double imperfection)
Sets a new value for driver imperfection.
static double getHeight(const std::string &typeID)
static void setDecel(const std::string &typeID, double decel)
void setWidth(const double &width)
Set a new value for this type's width.
const RGBColor & getColor() const
Returns this type's color.
void setVClass(SUMOVehicleClass vclass)
Set a new value for this type's vehicle class.
static void setColor(const std::string &typeID, const TraCIColor &c)
void setColor(const RGBColor &color)
Set a new value for this type's color.
SUMOVehicleShape getVehicleShapeID(const std::string &name)
Returns the class id of the shape class given by its name.
static void setLateralAlignment(const std::string &typeID, const std::string &latAlignment)
virtual void setEmergencyDecel(double decel)
Sets a new value for maximal physically possible deceleration [m/s^2].
static MSVehicleType * getVType(std::string id)
double getApparentDecel() const
Get the vehicle type's apparent deceleration [m/s^2] (the one regarded by its followers.
static double getLength(const std::string &typeID)
static RGBColor makeRGBColor(const TraCIColor &color)
void setMaxSpeedLat(const double &maxSpeedLat)
Set a new value for this type's maximum lateral speed.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
void setPreferredLateralAlignment(LateralAlignment latAlignment)
Set vehicle's preferred lateral alignment.
MSVehicleType * duplicateType(const std::string &id, bool persistent) const
Duplicates the microsim vehicle type giving the newly created type the given id.
static double getSpeedDeviation(const std::string &typeID)
double getMaxSpeedLat() const
Get vehicle's maximum lateral speed [m/s].
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)