23 #ifndef MSVehicleType_h
24 #define MSVehicleType_h
SUMOTime getBoardingDuration() const
Get this vehicle type's boarding duration.
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.
SUMOTime getLoadingDuration() const
Get this vehicle type's loading duration.
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.
SUMOReal computeChosenSpeedDeviation(MTRand *rng, const SUMOReal minDevFactor=0.2) const
Computes and returns the speed deviation.
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 int myIndex
the running index
const MSCFModel & getCarFollowModel() const
Returns the vehicle type's car following model definition (const version)
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.
SUMOTime boardingDuration
The time a person needs to board the vehicle.
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.
unsigned int containerCapacity
The container capacity of the vehicle.
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
unsigned int getPersonCapacity() const
Get this vehicle type's person capacity.
void setMinGap(const SUMOReal &minGap)
Set a new value for this type's minimum gap.
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
int getNumericalID() const
Returns the running index of the vehicle type.
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.
unsigned int personCapacity
The person capacity of the vehicle.
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.
SUMOReal getDefaultProbability() const
Get the default probability of this vehicle type.
static int myNextIndex
next value for the running index
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.
unsigned int getContainerCapacity() const
Get this vehicle type's container capacity.
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.