26 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.
static void setSpeedDeviation(const std::string &typeID, double deviation)
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
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)
LateralAlignment getPreferredLateralAlignment() const
Get vehicle's preferred lateral alignment.
static TraCIColor makeTraCIColor(const RGBColor &color)
virtual double getImperfection() const
Get the driver's imperfection.
std::vector< double > & getParameter()
Returns the parameters of this distribution.
static std::string getEmissionClass(const std::string &typeID)
static std::vector< std::string > getIDList()
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
double getMinGapLat() const
Get the minimum lateral gap that vehicles of this type maintain.
void setLength(const double &length)
Set a new value for this type's length.
static double getMaxSpeedLat(const std::string &typeID)
void setMaxSpeed(const double &maxSpeed)
Set a new value for this type's maximum speed.
static void setMinGapLat(const std::string &typeID, double minGapLat)
The car-following model and parameter.
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)
double getMaxAccel() const
Get the vehicle type's maximum acceleration [m/s^2].
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 MSCFModel & getCarFollowModel() const
Returns the vehicle type's car following model definition (const version)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
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)
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual void setHeadwayTime(double headwayTime)
Sets a new value for driver reaction time [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)
double getMaxSpeed() const
Get vehicle's maximum speed [m/s].
static void setMaxSpeed(const std::string &typeID, double speed)
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
double getMinGap() const
Get the free space in front of vehicles of this class.
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
double getMaxDecel() const
Get the vehicle type's maximum deceleration [m/s^2].
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.
const SUMOVTypeParameter & getParameter() const
static void setWidth(const std::string &typeID, double width)
void insertVTypeIDs(std::vector< std::string > &into) const
Inserts ids of all known vehicle types and vehicle type distributions to the given vector...
const RGBColor & getColor() const
Returns this type's color.
static double getImperfection(const std::string &typeID)
double getMaxSpeedLat() const
Get vehicle's maximum lateral speed [m/s].
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
double getWidth() const
Get the width which vehicles of this class shall have when being drawn.
double getHeight() const
Get the height which vehicles of this class shall have when being drawn.
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
static double getDecel(const std::string &typeID)
virtual void setMaxDecel(double decel)
Sets a new value for maximum 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].
virtual double getHeadwayTime() const
Get the driver's reaction time [s].
static void setTau(const std::string &typeID, double tau)
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.
double getLength() const
Get vehicle's length [m].
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)
static MSVehicleType * getVType(std::string id)
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.
void setPreferredLateralAlignment(LateralAlignment latAlignment)
Set vehicle's preferred lateral alignment.
MSVehicleType * getVType(const std::string &id=DEFAULT_VTYPE_ID, MTRand *rng=0)
Returns the named vehicle type or a sample from the named distribution.
static double getSpeedDeviation(const std::string &typeID)
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
const Distribution_Parameterized & getSpeedFactor() const
Returns this type's speed factor.
static double getWidth(const std::string &typeID)
static void addParameter(const std::string &id, const std::string &name, const std::string &value)
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
static double getMaxSpeed(const std::string &typeID)