23 #ifndef MSVehicleType_h
24 #define MSVehicleType_h
bool wasSet(int what) const
Returns whether the given parameter was set.
void setImpatience(const SUMOReal impatience)
Set a new value for this type's impatience.
SUMOReal getMaxSpeed() const
Get vehicle's maximum speed [m/s].
bool amVehicleSpecific() const
Returns whether this type belongs to a single vehicle only (was modified)
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
MSCFModel & getCarFollowModel()
Returns the vehicle type's car following model definition (non-const version)
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
std::string getOSGFile() const
Get this vehicle type's 3D model file name.
SUMOReal getLengthWithGap() const
Get vehicle's length including the minimum gap [m].
void setShape(SUMOVehicleShape shape)
Set a new value for this type's shape.
SUMOVehicleShape shape
This class' shape.
Structure representing possible vehicle parameter.
void setSpeedFactor(const SUMOReal &factor)
Set a new value for this type's speed factor.
SUMOReal speedDev
The standard deviation for speed variations.
The car-following model abstraction.
void setLength(const SUMOReal &length)
Set a new value for this type's length.
SUMOReal length
The physical vehicle length.
SUMOReal getLength() const
Get vehicle's length [m].
SUMOReal getImpatience() const
Returns this type's impatience.
SUMOVehicleClass vehicleClass
The vehicle's class.
MSVehicleType & operator=(const MSVehicleType &)
Invalidated assignment operator.
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.
SUMOReal getHeight() const
Get the height which vehicles of this class shall have when being drawn.
static MSVehicleType * build(SUMOVTypeParameter &from)
Builds the microsim vehicle type described by the given parameter.
The car-following model and parameter.
const MSCFModel & getCarFollowModel() const
Returns the vehicle type's car following model definition (const version)
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.
const SUMOVTypeParameter & getParameter() const
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
std::string osgFile
3D model file for this class
std::string imgFile
Image file for this class.
virtual ~MSVehicleType()
Destructor.
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
void setMinGap(const SUMOReal &minGap)
Set a new value for this type's minimum gap.
SUMOReal computeChosenSpeedDeviation(MTRand &rng, const SUMOReal minDevFactor=0.2) const
Computes and returns the speed deviation.
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
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.
int setParameter
Information for the router which parameter were set.
LaneChangeModel getLaneChangeModel() const
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.
const std::string & getID() const
Returns the name of the vehicle type.
std::string id
The vehicle type's id.
MSVehicleType(const SUMOVTypeParameter ¶meter)
Constructor.
const RGBColor & getColor() const
Returns this type's color.
void setVClass(SUMOVehicleClass vclass)
Set a new value for this type's vehicle class.
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.
std::string getImgFile() const
Get this vehicle type's raster model file name.
LaneChangeModel lcModel
The lane-change model to use.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
SUMOReal height
This class' height.
Representation of a lane in the micro simulation.
SUMOEmissionClass emissionClass
The emission class of this vehicle.
SUMOReal minGap
This class' free space in front of the vehicle itself.