43 std::vector<std::string> ids;
static double getImperfection(const std::string &typeID)
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
static void setSpeedFactor(const std::string &typeID, double factor)
static double getHeight(const std::string &typeID)
double getApparentDecel() const
Get the vehicle type's apparent deceleration [m/s^2] (the one regarded by its followers.
static double getDecel(const std::string &typeID)
void setMinGap(const double &minGap)
Set a new value for this type's minimum gap.
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
static double getEmergencyDecel(const std::string &typeID)
static double getSpeedDeviation(const std::string &typeID)
static double getSpeedFactor(const std::string &typeID)
void setShape(SUMOVehicleShape shape)
Set a new value for this type's shape.
Structure representing possible vehicle parameter.
LateralAlignment getPreferredLateralAlignment() const
Get vehicle's preferred lateral alignment.
virtual double getImperfection() const
Get the driver's imperfection.
std::vector< double > & getParameter()
Returns the parameters of this distribution.
static double getMaxSpeed(const std::string &typeID)
static void setSpeedDeviation(const std::string &typeID, double deviation)
static void setLength(const std::string &typeID, double length)
static std::string getParameter(const std::string &typeID, const std::string &key)
static SUMOTime processActionStepLength(double given)
Checks and converts given value for the action step length from seconds to miliseconds assuring it be...
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.
static double getApparentDecel(const std::string &typeID)
void setLength(const double &length)
Set a new value for this type's length.
void setMaxSpeed(const double &maxSpeed)
Set a new value for this type's maximum speed.
static void setMaxSpeed(const std::string &typeID, double speed)
MSVehicleType * duplicateType(const std::string &id, bool persistent) const
Duplicates the microsim vehicle type giving the newly created type the given id.
virtual void setApparentDecel(double decel)
Sets a new value for the apparent deceleration [m/s^2].
The car-following model and parameter.
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
static double getLength(const std::string &typeID)
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 void setApparentDecel(const std::string &typeID, double decel)
static void setTau(const std::string &typeID, double tau)
static MSVehicleType * getVType(std::string id)
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 std::string getVehicleClass(const std::string &typeID)
static void setWidth(const std::string &typeID, double width)
double getEmergencyDecel() const
Get the vehicle type's maximal phisically possible deceleration [m/s^2].
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual void setHeadwayTime(double headwayTime)
Sets a new value for desired headway [s].
void setHeight(const double &height)
Set a new value for this type's height.
static void setMinGapLat(const std::string &typeID, double minGapLat)
static void setShapeClass(const std::string &typeID, const std::string &shapeClass)
static void copy(const std::string &origTypeID, const std::string &newTypeID)
static TraCIColor makeTraCIColor(const RGBColor &color)
double getMaxSpeed() const
Get vehicle's maximum speed [m/s].
static double getMaxSpeedLat(const std::string &typeID)
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
static void setActionStepLength(const std::string &typeID, double actionStepLength, bool resetActionOffset)
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 maximal comfortable deceleration [m/s^2].
static double getWidth(const std::string &typeID)
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
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.
void setActionStepLength(const SUMOTime actionStepLength, bool resetActionOffset)
Set a new value for this type's action step length.
static void setDecel(const std::string &typeID, double decel)
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 void setImperfection(const std::string &typeID, double imperfection)
double getMaxSpeedLat() const
Get vehicle's maximum lateral speed [m/s].
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 std::string getEmissionClass(const std::string &typeID)
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
static void setParameter(const std::string &id, const std::string &name, const std::string &value)
static void setEmergencyDecel(const std::string &typeID, double decel)
static void setLateralAlignment(const std::string &typeID, const std::string &latAlignment)
virtual void setMaxDecel(double decel)
Sets a new value for maximal comfortable deceleration [m/s^2].
static void setMinGap(const std::string &typeID, double minGap)
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 double getActionStepLength(const std::string &typeID)
virtual double getHeadwayTime() const
Get the driver's desired headway [s].
static void setMaxSpeedLat(const std::string &typeID, double speed)
virtual void setImperfection(double imperfection)
Sets a new value for driver imperfection.
const std::string getParameter(const std::string &key, const std::string &defaultValue="") const
Returns the value for a given key.
void setWidth(const double &width)
Set a new value for this type's width.
double getActionStepLengthSecs() const
Returns this type's default action step length in seconds.
static double getMinGap(const std::string &typeID)
double getLength() const
Get vehicle's length [m].
void setVClass(SUMOVehicleClass vclass)
Set a new value for this type's vehicle class.
void setColor(const RGBColor &color)
Set a new value for this type's color.
static RGBColor makeRGBColor(const TraCIColor &color)
SUMOVehicleShape getVehicleShapeID(const std::string &name)
Returns the class id of the shape class given by its name.
static void setColor(const std::string &typeID, const TraCIColor &c)
virtual void setEmergencyDecel(double decel)
Sets a new value for maximal physically possible deceleration [m/s^2].
static double getMinGapLat(const std::string &typeID)
static double getTau(const std::string &typeID)
static double getAccel(const std::string &typeID)
static std::string getLateralAlignment(const std::string &typeID)
static void setHeight(const std::string &typeID, double height)
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.
static void setEmissionClass(const std::string &typeID, const std::string &clazz)
static void setVehicleClass(const std::string &typeID, const std::string &clazz)
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
const Distribution_Parameterized & getSpeedFactor() const
Returns this type's speed factor.
static std::string getShapeClass(const std::string &typeID)
static TraCIColor getColor(const std::string &typeID)
static void setAccel(const std::string &typeID, double accel)
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
static std::vector< std::string > getIDList()