23 #ifndef MSVehicleType_h 24 #define MSVehicleType_h
void setImpatience(const SUMOReal impatience)
Set a new value for this type's impatience.
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
SUMOReal getSpeedDeviation() const
Returns this type's speed deviation.
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...
void setShape(SUMOVehicleShape shape)
Set a new value for this type's shape.
SUMOVehicleShape shape
This class' shape.
Structure representing possible vehicle parameter.
LateralAlignment getPreferredLateralAlignment() const
Get vehicle's preferred lateral alignment.
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.
int containerCapacity
The container capacity of the vehicle.
SUMOReal length
The physical vehicle length.
SUMOReal getLength() const
Get vehicle's length [m].
std::string getImgFile() const
Get this vehicle type's raster model file name.
SUMOVehicleClass vehicleClass
The vehicle's class.
SUMOReal getHeight() const
Get the height which vehicles of this class shall have when being drawn.
MSVehicleType & operator=(const MSVehicleType &)
Invalidated assignment operator.
int getNumericalID() const
Returns the running index of the vehicle type.
SUMOReal getMaxSpeedLat() const
Get vehicle's maximum lateral speed [m/s].
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.
int getPersonCapacity() const
Get this vehicle type's person capacity.
int getContainerCapacity() const
Get this vehicle type's container capacity.
static MSVehicleType * build(SUMOVTypeParameter &from)
Builds the microsim vehicle type described by the given parameter.
LateralAlignment
Numbers representing special SUMO-XML-attribute values Information how vehicles align themselves with...
The car-following model and parameter.
SUMOTime getBoardingDuration() const
Get this vehicle type's boarding duration.
const int myIndex
the running index
bool wasSet(int what) const
Returns whether the given parameter was set.
LaneChangeModel getLaneChangeModel() const
SUMOReal getWidth() const
Get the width which vehicles of this class shall have when being drawn.
SUMOReal speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street...
SUMOReal computeChosenSpeedDeviation(MTRand *rng, const SUMOReal minDevFactor=0.2) const
Computes and returns the speed deviation.
void setSpeedDeviation(const SUMOReal &dev)
Set a new value for this type's speed deviation.
const MSCFModel & getCarFollowModel() const
Returns the vehicle type's car following model definition (const version)
SUMOTime boardingDuration
The time a person needs to board the vehicle.
std::string osgFile
3D model file for this class
SUMOTime getLoadingDuration() const
Get this vehicle type's loading duration.
SUMOReal maxSpeedLat
The vehicle type's maximum lateral speed [m/s].
SUMOReal getDefaultProbability() const
Get the default probability of this vehicle type.
SUMOReal getSpeedFactor() const
Returns this type's speed factor.
std::string imgFile
Image file for this class.
bool amVehicleSpecific() const
Returns whether this type belongs to a single vehicle only (was modified)
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.
const SUMOVTypeParameter & getParameter() const
const RGBColor & getColor() const
Returns this type's color.
SUMOVTypeParameter myParameter
the parameter container
SUMOReal maxSpeed
The vehicle type's maximum speed [m/s].
int personCapacity
The person capacity of the vehicle.
MSCFModel * myCarFollowModel
instance of the car following model.
int setParameter
Information for the router which parameter were set.
SUMOReal impatience
The vehicle's impatience (willingness to obstruct others)
SUMOReal minGapLat
The vehicle type's minimum lateral gap [m].
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
SUMOReal defaultProbability
The probability when being added to a distribution without an explicit probability.
SUMOTime loadingDuration
The time a container needs to get loaded on the vehicle.
static int myNextIndex
next value for the running index
SUMOReal getMaxSpeed() const
Get vehicle's maximum speed [m/s].
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.
void setVClass(SUMOVehicleClass vclass)
Set a new value for this type's vehicle class.
LateralAlignment latAlignment
The vehicles desired lateral alignment.
void setDefaultProbability(const SUMOReal &prob)
Set a new value for this type's default probability.
void setHeight(const SUMOReal &height)
Set a new value for this type's height.
void setMaxSpeed(const SUMOReal &maxSpeed)
Set a new value for this type's maximum speed.
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
void setColor(const RGBColor &color)
Set a new value for this type's color.
std::string getOSGFile() const
Get this vehicle type's 3D model file name.
LaneChangeModel lcModel
The lane-change model to use.
SUMOReal height
This class' height.
SUMOReal getMinGapLat() const
Get the minimum lateral gap that vehicles of this type maintain.
Representation of a lane in the micro simulation.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
SUMOEmissionClass emissionClass
The emission class of this vehicle.
SUMOReal getImpatience() const
Returns this type's impatience.
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
SUMOReal getLengthWithGap() const
Get vehicle's length including the minimum gap [m].
SUMOReal minGap
This class' free space in front of the vehicle itself.