52 #ifdef CHECK_MEMORY_LEAKS
54 #endif // CHECK_MEMORY_LEAKS
61 : myParameter(parameter), myOriginalType(0) {
The Intellignet Driver Model (IDM) car-following model.
const SUMOReal DEFAULT_VEH_TMP5
void setImpatience(const SUMOReal impatience)
Set a new value for this type's impatience.
SumoXMLTag cfModel
The enum-representation of the car-following model to use.
SUMOReal get(const SumoXMLAttr attr, const SUMOReal defaultValue) const
Returns the named value from the map, or the default if it is ot contained there. ...
SUMOReal getMaxSpeed() const
Get vehicle's maximum speed [m/s].
car-following model by B. Kerner
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
void setShape(SUMOVehicleShape shape)
Set a new value for this type's shape.
SUMOVehicleShape shape
This class' shape.
Structure representing possible vehicle parameter.
virtual MSCFModel * duplicate(const MSVehicleType *vtype) const =0
Duplicates the car-following model.
void setSpeedFactor(const SUMOReal &factor)
Set a new value for this type's speed factor.
SUMOReal speedDev
The standard deviation for speed variations.
The Intelligent Driver Model (IDM) car-following model.
The car-following model abstraction.
void setLength(const SUMOReal &length)
Set a new value for this type's length.
SUMOReal computeChosenSpeedDeviation(MTRand &rng) const
Computes and returns the speed deviation.
Krauss car-following model, changing accel and speed by slope.
SUMOReal length
The physical vehicle length.
SUMOReal getLength() const
Get vehicle's length [m].
SUMOReal getImpatience() const
Returns this type's impatience.
static SUMOReal randNorm(SUMOReal mean, SUMOReal variance, MTRand &rng=myRandomNumberGenerator)
Access to a random number from a normal distribution.
SUMOVehicleClass vehicleClass
The vehicle's class.
The original Krauss (1998) car-following model and parameter.
const MSVehicleType * myOriginalType
The original type.
void setWidth(const SUMOReal &width)
Set a new value for this type's width.
SUMOReal width
This class' width.
const SUMOReal DEFAULT_VEH_SIGMA
static MSVehicleType * build(SUMOVTypeParameter &from)
Builds the microsim vehicle type described by the given parameter.
The car-following model and parameter.
SUMOEmissionClass
Definition of vehicle emission classes.
SUMOReal speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street...
void setSpeedDeviation(const SUMOReal &dev)
Set a new value for this type's speed deviation.
SUMOReal getSpeedDeviation() const
Returns this type's speed deviation.
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
The original Krauss (1998) car-following model and parameter.
const SUMOReal DEFAULT_VEH_TAU
virtual ~MSVehicleType()
Destructor.
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
const SUMOReal DEFAULT_VEH_TMP3
void setMinGap(const SUMOReal &minGap)
Set a new value for this type's minimum gap.
Scalable model based on Krauß by Peter Wagner.
The original Krauss (1998) car-following model and parameter.
SUMOVTypeParameter myParameter
the parameter container
SUMOReal maxSpeed
The vehicle type's maximum speed [m/s].
SUMOReal getSpeedFactor() const
Returns this type's speed factor.
SUMOReal getWidth() const
Get the width which vehicles of this class shall have when being drawn.
MSCFModel * myCarFollowModel
ID of the car following model.
SUMOReal impatience
The vehicle's impatience (willingness to obstruct others)
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
SUMOReal defaultProbability
The probability when being added to a distribution without an explicit probability.
SUMOReal getDefaultProbability() const
Get the default probability of this vehicle type.
std::string id
The vehicle type's id.
MSVehicleType(const SUMOVTypeParameter ¶meter)
Constructor.
void setVClass(SUMOVehicleClass vclass)
Set a new value for this type's vehicle class.
const SUMOReal DEFAULT_VEH_TMP2
void setDefaultProbability(const SUMOReal &prob)
Set a new value for this type's default probability.
void setMaxSpeed(const SUMOReal &maxSpeed)
Set a new value for this type's maximum speed.
void setColor(const RGBColor &color)
Set a new value for this type's color.
const SUMOReal DEFAULT_VEH_ACCEL
const SUMOReal DEFAULT_VEH_TMP1
const SUMOReal DEFAULT_VEH_TMP4
Krauss car-following model, with acceleration decrease and faster start.
const SUMOReal DEFAULT_VEH_DECEL
SUMOEmissionClass emissionClass
The emission class of this vehicle.
SUMOReal minGap
This class' free space in front of the vehicle itself.