 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef MSVehicleType_h
21 #define MSVehicleType_h
94 const std::string&
getID()
const {
The car-following model and parameter.
SUMOTime getBoardingDuration() const
Get this vehicle type's boarding duration.
void setHeight(const double &height)
Set a new value for this type's height.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
MSVehicleType * buildSingularType(const std::string &id) const
Duplicates the microsim vehicle type giving the newly created type the given id, marking it as vehicl...
const std::string & getID() const
Returns the name of the vehicle type.
SUMOTime getActionStepLength() const
Returns this type's default action step length.
void setPreferredLateralAlignment(LateralAlignment latAlignment)
Set vehicle's preferred lateral alignment.
double length
The physical vehicle length.
void setMinGapLat(const double &minGapLat)
Set a new value for this type's minimum lataral gap.
LateralAlignment getPreferredLateralAlignment() const
Get vehicle's preferred lateral alignment.
int getNumericalID() const
Returns the running index of the vehicle type.
void setAccel(double accel)
Set a new value for this type's acceleration.
Representation of a lane in the micro simulation.
bool isVehicleSpecific() const
Returns whether this type belongs to a single vehicle only (was modified)
bool myWarnedActionStepLengthTauOnce
Indicator whether the user was already warned once about an action step length larger than the desire...
SUMOTime actionStepLength
The vehicle type's default actionStepLength [ms], i.e. the interval between two control actions....
SUMOVehicleShape getGuiShape() const
Get this vehicle type's shape.
LateralAlignment
Numbers representing special SUMO-XML-attribute values Information how vehicles align themselves with...
void setVClass(SUMOVehicleClass vclass)
Set a new value for this type's vehicle class.
double impatience
The vehicle's impatience (willingness to obstruct others)
double getMaxSpeedLat() const
Get vehicle's maximum lateral speed [m/s].
std::string osgFile
3D model file for this class
void setEmergencyDecel(double emergencyDecel)
Set a new value for this type's emergency deceleration.
double getImpatience() const
Returns this type's impatience.
virtual ~MSVehicleType()
Destructor.
MSVehicleType & operator=(const MSVehicleType &)=delete
Invalidated assignment operator.
MSCFModel & getCarFollowModel()
Returns the vehicle type's car following model definition (non-const version)
MSVehicleType * duplicateType(const std::string &id, bool persistent) const
Duplicates the microsim vehicle type giving the newly created type the given id.
SUMOVehicleShape shape
This class' shape.
void setMinGap(const double &minGap)
Set a new value for this type's minimum gap.
void setWidth(const double &width)
Set a new value for this type's width.
int getPersonCapacity() const
Get this vehicle type's person capacity.
double getMinGapLat() const
Get the minimum lateral gap that vehicles of this type maintain.
int containerCapacity
The container capacity of the vehicle.
void initRailVisualizationParameters()
init Rail Visualization Parameters
double getHeight() const
Get the height which vehicles of this class shall have when being drawn.
void setColor(const RGBColor &color)
Set a new value for this type's color.
int parametersSet
Information for the router which parameter were set.
MSVehicleType(const SUMOVTypeParameter ¶meter)
Constructor.
const std::string & getOriginalID() const
Returns the id of the original vehicle type if this is a vehicle specific type, the id otherwise.
void check()
Checks whether vehicle type parameters may be problematic (Currently, only the value for the action s...
double computeChosenSpeedDeviation(std::mt19937 *rng, const double minDev=-1.) const
Computes and returns the speed deviation.
std::string imgFile
Image file for this class.
const MSVehicleType * myOriginalType
The original type.
const MSCFModel & getCarFollowModel() const
Returns the vehicle type's car following model definition (const version)
double height
This class' height.
double getWidth() const
Get the width which vehicles of this class shall have when being drawn.
double getLengthWithGap() const
Get vehicle's length including the minimum gap [m].
Structure representing possible vehicle parameter.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
double defaultProbability
The probability when being added to a distribution without an explicit probability.
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.
SUMOVTypeParameter myParameter
the parameter container
SUMOTime boardingDuration
The time a person needs to board the vehicle.
double minGap
This class' free space in front of the vehicle itself.
void setLength(const double &length)
Set a new value for this type's length.
double width
This class' width.
double getMinGap() const
Get the free space in front of vehicles of this class.
double maxSpeedLat
The vehicle type's maximum lateral speed [m/s].
LaneChangeModel getLaneChangeModel() const
double maxSpeed
The vehicle type's maximum speed [m/s].
void setDecel(double decel)
Set a new value for this type's deceleration.
int personCapacity
The person capacity of the vehicle.
void setDefaultProbability(const double &prob)
Set a new value for this type's default probability.
const Distribution_Parameterized & getSpeedFactor() const
Returns this type's speed factor.
void setShape(SUMOVehicleShape shape)
Set a new value for this type's shape.
Distribution_Parameterized speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street.
double myCachedActionStepLengthSecs
the vtypes actionsStepLength in seconds (cached because needed very often)
void setMaxSpeedLat(const double &maxSpeedLat)
Set a new value for this type's maximum lateral speed.
void setSpeedDeviation(const double &dev)
Set a new value for this type's speed deviation.
LateralAlignment latAlignment
The vehicles desired lateral alignment.
double getActionStepLengthSecs() const
Returns this type's default action step length in seconds.
std::string id
The vehicle type's id.
static MSVehicleType * build(SUMOVTypeParameter &from)
Builds the microsim vehicle type described by the given parameter.
double getLength() const
Get vehicle's length [m].
std::string getOSGFile() const
Get this vehicle type's 3D model file name.
bool wasSet(int what) const
Returns whether the given parameter was set.
void setApparentDecel(double apparentDecel)
Set a new value for this type's apparent deceleration.
std::string getImgFile() const
Get this vehicle type's raster model file name.
static int myNextIndex
next value for the running index
const SUMOVTypeParameter & getParameter() const
double getMaxSpeed() const
Get vehicle's maximum speed [m/s].
The car-following model abstraction.
LaneChangeModel lcModel
The lane-change model to use.
void setMaxSpeed(const double &maxSpeed)
Set a new value for this type's maximum speed.
MSCFModel * myCarFollowModel
instance of the car following model.
const int myIndex
the running index
int getContainerCapacity() const
Get this vehicle type's container capacity.
SUMOTime loadingDuration
The time a container needs to get loaded on the vehicle.
SUMOEmissionClass emissionClass
The emission class of this vehicle.
void setSpeedFactor(const double &factor)
Set a new value for this type's speed factor.
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
double getDefaultProbability() const
Get the default probability of this vehicle type.
SUMOVehicleClass vehicleClass
The vehicle's class.
void setImpatience(const double impatience)
Set a new value for this type's impatience.
void setTau(double tau)
Set a new value for this type's headway.
void setEmissionClass(SUMOEmissionClass eclass)
Set a new value for this type's emission class.
void setImperfection(double imperfection)
Set a new value for this type's imperfection.
SUMOTime getLoadingDuration() const
Get this vehicle type's loading duration.
double minGapLat
The vehicle type's minimum lateral gap [m].