|
SUMO - Simulation of Urban MObility
|
The car-following model and parameter. More...
#include <MSVehicleType.h>
Public Member Functions | |
| bool | amVehicleSpecific () const |
| Returns whether this type belongs to a single vehicle only (was modified) | |
| MSVehicleType (const std::string &id, SUMOReal lengthWithGap, SUMOReal minGap, SUMOReal maxSpeed, SUMOReal prob, SUMOReal speedFactor, SUMOReal speedDev, SUMOVehicleClass vclass, SUMOEmissionClass emissionClass, SUMOReal guiWidth, SUMOVehicleShape shape, const std::string &lcModel, const RGBColor &c) | |
| Constructor. | |
| void | saveState (std::ostream &os) |
| Saves the states of a vehicle. | |
| virtual | ~MSVehicleType () |
| Destructor. | |
Atomar getter for simulation | |
| const std::string & | getID () const |
| Returns the name of the vehicle type. | |
| SUMOReal | getLength () const |
| Get vehicle's length [m]. | |
| SUMOReal | getLengthWithGap () const |
| Get vehicle's length including the minimum gap [m]. | |
| SUMOReal | getMinGap () const |
| Get the free space in front of vehicles of this class. | |
| const MSCFModel & | getCarFollowModel () const |
| Returns the vehicle type's car following model definition (const version) | |
| MSCFModel & | getCarFollowModel () |
| Returns the vehicle type's car following model definition (non-const version) | |
| SUMOReal | getMaxSpeed () const |
| Get vehicle's maximum speed [m/s]. | |
| SUMOReal | hasSpeedDeviation () const |
| Get vehicle's maximum speed [m/s]. | |
| SUMOReal | getMaxSpeedWithDeviation (SUMOReal referenceSpeed) const |
| Get vehicle's maximum speed [m/s] drawn from a normal distribution. | |
| SUMOReal | getDefaultProbability () const |
| Get the default probability of this vehicle type. | |
| SUMOVehicleClass | getVehicleClass () const |
| Get this vehicle type's vehicle class. | |
| SUMOEmissionClass | getEmissionClass () const |
| Get this vehicle type's emission class. | |
| const RGBColor & | getColor () const |
| Returns this type's color. | |
| SUMOReal | getSpeedFactor () const |
| Returns this type's speed factor. | |
| SUMOReal | getSpeedDeviation () const |
| Returns this type's speed deviation. | |
Atomar getter for visualization | |
| SUMOReal | getGuiWidth () const |
| Get the width which vehicles of this class shall have when being drawn. | |
| SUMOVehicleShape | getGuiShape () const |
| Get this vehicle type's shape. | |
Setter methods | |
| void | setLength (const SUMOReal &length) |
| Set a new value for this type's length. | |
| void | setMinGap (const SUMOReal &minGap) |
| Set a new value for this type's minimum gap. | |
| void | setMaxSpeed (const SUMOReal &maxSpeed) |
| Set a new value for this type's maximum speed. | |
| 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 | setSpeedFactor (const SUMOReal &factor) |
| Set a new value for this type's speed factor. | |
| void | setSpeedDeviation (const SUMOReal &dev) |
| Set a new value for this type's speed deviation. | |
| void | setEmissionClass (SUMOEmissionClass eclass) |
| Set a new value for this type's emission class. | |
| void | setColor (const RGBColor &color) |
| Set a new value for this type's color. | |
| void | setWidth (const SUMOReal &width) |
| Set a new value for this type's width. | |
| void | setShape (SUMOVehicleShape shape) |
| Set a new value for this type's shape. | |
Static Public Member Functions | |
Static methods for building vehicle types | |
| static MSVehicleType * | build (SUMOVTypeParameter &from) |
| Builds the microsim vehicle type described by the given parameter. | |
| static MSVehicleType * | build (const std::string &id, const MSVehicleType *from) |
| Duplicates the microsim vehicle type giving it a the given id. | |
| static SUMOReal | get (const SUMOVTypeParameter::CFParams &from, SumoXMLAttr attr, SUMOReal defaultValue) |
| Returns the named value from the map, or the default if it is ot contained there. | |
Private Member Functions | |
| MSVehicleType (const MSVehicleType &) | |
| Invalidated copy constructor. | |
| MSVehicleType & | operator= (const MSVehicleType &) |
| Invalidated assignment operator. | |
Private Attributes | |
| MSCFModel * | myCarFollowModel |
| ID of the car following model. | |
| RGBColor | myColor |
| The color. | |
| SUMOReal | myDefaultProbability |
| The probability when being added to a distribution without an explicit probability. | |
| SUMOEmissionClass | myEmissionClass |
| The emission class of such vehicles. | |
| std::string | myID |
| Unique ID. | |
| std::string | myLaneChangeModel |
| ID of the lane change model. | |
| SUMOReal | myLength |
| Vehicles' length [m]. | |
| SUMOReal | myMaxSpeed |
| Vehicles' maximum speed [m/s]. | |
| SUMOReal | myMinGap |
| This class' free space in front of the vehicle itself. | |
| const MSVehicleType * | myOriginalType |
| The original type. | |
| SUMOReal | mySpeedDev |
| The standard deviation for speed variations. | |
| SUMOReal | mySpeedFactor |
| The factor by which the maximum speed may deviate from the allowed max speed on the street. | |
| SUMOVehicleClass | myVehicleClass |
| The vehicles' class. | |
Values for drawing this class' vehicles | |
| SUMOReal | myWidth |
| This class' width. | |
| SUMOVehicleShape | myShape |
| This class' shape. | |
The car-following model and parameter.
MSVehicleType stores the parameter of a single vehicle type and methods that use these for computing the vehicle's car-following behavior
It is assumed that within the simulation many vehicles are using the same vehicle type, quite common is using only one vehicle type for all vehicles.
You can think of it like of having a vehicle type for each VW Golf or Ford Mustang in your simulation while the car instances just refer to it.
Definition at line 73 of file MSVehicleType.h.
| MSVehicleType::MSVehicleType | ( | const std::string & | id, |
| SUMOReal | lengthWithGap, | ||
| SUMOReal | minGap, | ||
| SUMOReal | maxSpeed, | ||
| SUMOReal | prob, | ||
| SUMOReal | speedFactor, | ||
| SUMOReal | speedDev, | ||
| SUMOVehicleClass | vclass, | ||
| SUMOEmissionClass | emissionClass, | ||
| SUMOReal | guiWidth, | ||
| SUMOVehicleShape | shape, | ||
| const std::string & | lcModel, | ||
| const RGBColor & | c | ||
| ) |
Constructor.
| [in] | id | The vehicle type's id |
| [in] | length | The length of vehicles that of this type |
| [in] | minGap | The free space in front of the vehicles of this class |
| [in] | maxSpeed | The maximum velocity vehicles of this type may drive with |
| [in] | prob | The probability of this vehicle type |
| [in] | speedFactor | The speed factor to scale maximum speed with |
| [in] | speedDev | The speed deviation |
| [in] | vclass | The class vehicles of this type belong to |
| [in] | emissionClass | The emission class vehicles of this type belong to |
| [in] | guiWidth | The width of the vehicles when being drawn |
| [in] | shape | How vehicles of this class shall be drawn |
| [in] | lcModel | Name of the lane-change model to use |
| [in] | c | Color of this vehicle type |
Definition at line 57 of file MSVehicleType.cpp.
References getMaxSpeed(), and myLength.
Referenced by build().
| MSVehicleType::~MSVehicleType | ( | ) | [virtual] |
| MSVehicleType::MSVehicleType | ( | const MSVehicleType & | ) | [private] |
Invalidated copy constructor.
| bool MSVehicleType::amVehicleSpecific | ( | ) | const [inline] |
Returns whether this type belongs to a single vehicle only (was modified)
Definition at line 398 of file MSVehicleType.h.
References myOriginalType.
Referenced by MSVehicle::replaceVehicleType(), and MSVehicle::~MSVehicle().
| MSVehicleType * MSVehicleType::build | ( | SUMOVTypeParameter & | from | ) | [static] |
Builds the microsim vehicle type described by the given parameter.
| [in] | from | The vehicle type description |
| ProcessError | on false values (not et used) |
Definition at line 219 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfModel, SUMOVTypeParameter::cfParameter, SUMOVTypeParameter::color, DEFAULT_VEH_ACCEL, DEFAULT_VEH_DECEL, DEFAULT_VEH_SIGMA, DEFAULT_VEH_TAU, SUMOVTypeParameter::defaultProbability, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::id, SUMOVTypeParameter::lcModel, SUMOVTypeParameter::length, SUMOVTypeParameter::maxSpeed, SUMOVTypeParameter::minGap, MSVehicleType(), myCarFollowModel, SUMOVTypeParameter::shape, SUMOVTypeParameter::speedDev, SUMOVTypeParameter::speedFactor, SUMO_ATTR_ACCEL, SUMO_ATTR_CF_IDM_DELTA, SUMO_ATTR_CF_IDM_STEPPING, SUMO_ATTR_CF_IDMM_ADAPT_FACTOR, SUMO_ATTR_CF_IDMM_ADAPT_TIME, SUMO_ATTR_CF_KERNER_PHI, SUMO_ATTR_CF_PWAGNER2009_APPROB, SUMO_ATTR_CF_PWAGNER2009_TAULAST, SUMO_ATTR_CF_WIEDEMANN_ESTIMATION, SUMO_ATTR_CF_WIEDEMANN_SECURITY, SUMO_ATTR_DECEL, SUMO_ATTR_K, SUMO_ATTR_SIGMA, SUMO_ATTR_TAU, SUMO_TAG_CF_BKERNER, SUMO_TAG_CF_IDM, SUMO_TAG_CF_IDMM, SUMO_TAG_CF_KRAUSS, SUMO_TAG_CF_KRAUSS_ORIG1, SUMO_TAG_CF_PWAGNER2009, SUMO_TAG_CF_WIEDEMANN, SUMOVTypeParameter::vehicleClass, and SUMOVTypeParameter::width.
Referenced by TraCIServerAPI_Vehicle::getSingularType(), MSVehicleControl::MSVehicleControl(), and MSRouteHandler::myEndElement().
| MSVehicleType * MSVehicleType::build | ( | const std::string & | id, |
| const MSVehicleType * | from | ||
| ) | [static] |
Duplicates the microsim vehicle type giving it a the given id.
| [in] | id | The new id of the type |
| [in] | from | The vehicle type |
Definition at line 289 of file MSVehicleType.cpp.
References MSCFModel::duplicate(), MSVehicleType(), myCarFollowModel, myColor, myDefaultProbability, myEmissionClass, myLaneChangeModel, myLength, myMaxSpeed, myMinGap, myOriginalType, myShape, mySpeedDev, mySpeedFactor, myVehicleClass, and myWidth.
| SUMOReal MSVehicleType::get | ( | const SUMOVTypeParameter::CFParams & | from, |
| SumoXMLAttr | attr, | ||
| SUMOReal | defaultValue | ||
| ) | [static] |
Returns the named value from the map, or the default if it is ot contained there.
| [in] | from | The map to retrieve values from |
| [in] | attr | The corresponding xml attribute |
| [in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 209 of file MSVehicleType.cpp.
| const MSCFModel& MSVehicleType::getCarFollowModel | ( | ) | const [inline] |
Returns the vehicle type's car following model definition (const version)
Definition at line 144 of file MSVehicleType.h.
References myCarFollowModel.
Referenced by MSVehicle::getCarFollowModel(), TraCIServerAPI_VehicleType::getVariable(), MSVehicle::moveChecked(), MSVehicle::MSVehicle(), TraCIServerAPI_VehicleType::setVariable(), and MSVehicle::vsafeCriticalCont().
| MSCFModel& MSVehicleType::getCarFollowModel | ( | ) | [inline] |
Returns the vehicle type's car following model definition (non-const version)
Definition at line 152 of file MSVehicleType.h.
References myCarFollowModel.
| const RGBColor& MSVehicleType::getColor | ( | ) | const [inline] |
Returns this type's color.
Definition at line 215 of file MSVehicleType.h.
References myColor.
Referenced by TraCIServerAPI_VehicleType::getVariable().
| SUMOReal MSVehicleType::getDefaultProbability | ( | ) | const [inline] |
Get the default probability of this vehicle type.
Definition at line 189 of file MSVehicleType.h.
References myDefaultProbability.
Referenced by MSRouteHandler::myEndElement(), and MSRouteHandler::openVehicleTypeDistribution().
| SUMOEmissionClass MSVehicleType::getEmissionClass | ( | ) | const [inline] |
Get this vehicle type's emission class.
Definition at line 207 of file MSVehicleType.h.
References myEmissionClass.
Referenced by MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHBEFA_CO2Emissions(), MSVehicle::getHBEFA_COEmissions(), MSVehicle::getHBEFA_FuelConsumption(), MSVehicle::getHBEFA_HCEmissions(), MSVehicle::getHBEFA_NOxEmissions(), MSVehicle::getHBEFA_PMxEmissions(), TraCIServerAPI_VehicleType::getVariable(), MSDevice_HBEFA::notifyMove(), MSMeanData_HBEFA::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), and TraCIServerAPI_Vehicle::processGet().
| SUMOVehicleShape MSVehicleType::getGuiShape | ( | ) | const [inline] |
Get this vehicle type's shape.
Definition at line 252 of file MSVehicleType.h.
References myShape.
Referenced by drawAction_drawVehicleAsPoly(), and TraCIServerAPI_VehicleType::getVariable().
| SUMOReal MSVehicleType::getGuiWidth | ( | ) | const [inline] |
Get the width which vehicles of this class shall have when being drawn.
Definition at line 244 of file MSVehicleType.h.
References myWidth.
Referenced by drawAction_drawVehicleAsBoxPlus(), drawAction_drawVehicleAsPoly(), drawAction_drawVehicleAsTrianglePlus(), drawAction_drawVehicleBlinker(), drawAction_drawVehicleBrakeLight(), and TraCIServerAPI_VehicleType::getVariable().
| const std::string& MSVehicleType::getID | ( | ) | const [inline] |
Returns the name of the vehicle type.
Definition at line 112 of file MSVehicleType.h.
References myID.
Referenced by MSVehicleControl::addVType(), MSInductLoop::collectVehiclesOnDet(), MSVTypeProbe::execute(), MSDevice_Vehroutes::generateOutput(), MSDevice_Tripinfo::generateOutput(), GUIVehicle::getParameterWindow(), TraCIServerAPI_Vehicle::getSingularType(), MSInductLoop::leaveDetectorByMove(), MSVehicle::MSVehicle(), MSRouteHandler::myEndElement(), TraCIServerAPI_Vehicle::processGet(), MSMeanData::MeanDataValues::vehicleApplies(), and MSInstantInductLoop::write().
| SUMOReal MSVehicleType::getLength | ( | ) | const [inline] |
Get vehicle's length [m].
Definition at line 120 of file MSVehicleType.h.
References myLength.
Referenced by MSCFModel_Wiedemann::_v(), drawAction_drawVehicleAsBoxPlus(), drawAction_drawVehicleAsPoly(), drawAction_drawVehicleAsTrianglePlus(), TraCIServerAPI_VehicleType::getVariable(), and MSInstantInductLoop::write().
| SUMOReal MSVehicleType::getLengthWithGap | ( | ) | const [inline] |
Get vehicle's length including the minimum gap [m].
Definition at line 128 of file MSVehicleType.h.
References myLength, and myMinGap.
Referenced by MSLaneChanger::change(), MSVehicle::checkRewindLinkLanes(), MSInductLoop::collectVehiclesOnDet(), MSLane::detectCollisions(), MSE2Collector::detectorUpdate(), drawAction_drawBlinker(), drawAction_drawVehicleBrakeLight(), GUIVehicle::drawGL(), MSLane::enteredByLaneChange(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSLane::freeInsertion(), MSVehicle::gap2pred(), MSVehicle::getAngle(), MSLane::getLastVehicleInformation(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealThisLeader(), MSLane::incorporateVehicle(), MSLane::insertVehicle(), MSLane::integrateNewVehicle(), MSLane::isInsertionSuccess(), MSInductLoop::leaveDetectorByMove(), MSLane::leftByLaneChange(), MSCFModel::leftVehicleVsafe(), MSLane::maxSpeedGapInsertion(), MSVehicle::moveChecked(), MSInstantInductLoop::notifyEnter(), MSInductLoop::notifyEnter(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSInstantInductLoop::notifyMove(), MSInductLoop::notifyMove(), MSE2Collector::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSVehicle::overlap(), MSAbstractLaneChangeModel::predInteraction(), MSVehicle::processNextStop(), MSLane::pWagGenericInsertion(), MSLane::pWagSimpleInsertion(), MSLane::removeVehicle(), MSLink::setApproaching(), MSLane::setCritical(), MSLCM_DK2004::wantsChangeToLeft(), and MSLCM_DK2004::wantsChangeToRight().
| SUMOReal MSVehicleType::getMaxSpeed | ( | ) | const [inline] |
Get vehicle's maximum speed [m/s].
Definition at line 160 of file MSVehicleType.h.
References myMaxSpeed.
Referenced by MSBaseVehicle::adaptMaxSpeed(), MSCFModel_IDM::desiredSpeed(), MSBaseVehicle::getMaxSpeed(), TraCIServerAPI_VehicleType::getVariable(), MSCFModel::maxNextSpeed(), MSVehicle::MSVehicle(), MSVehicleType(), saveState(), MSLCM_DK2004::wantsChangeToLeft(), and MSLCM_DK2004::wantsChangeToRight().
| SUMOReal MSVehicleType::getMaxSpeedWithDeviation | ( | SUMOReal | referenceSpeed | ) | const [inline] |
Get vehicle's maximum speed [m/s] drawn from a normal distribution.
The speed is calculated relative to the reference speed (which is usually the maximum allowed speed on a lane or edge).
Definition at line 178 of file MSVehicleType.h.
References MAX3(), MIN3(), myMaxSpeed, mySpeedDev, mySpeedFactor, RandHelper::randNorm(), and SUMOReal.
Referenced by MSBaseVehicle::adaptMaxSpeed().
| SUMOReal MSVehicleType::getMinGap | ( | ) | const [inline] |
Get the free space in front of vehicles of this class.
Definition at line 136 of file MSVehicleType.h.
References myMinGap.
Referenced by MSCFModel_IDM::_v(), drawAction_drawBlinker(), drawAction_drawVehicleAsBoxPlus(), drawAction_drawVehicleAsPoly(), drawAction_drawVehicleAsTrianglePlus(), and TraCIServerAPI_VehicleType::getVariable().
| SUMOReal MSVehicleType::getSpeedDeviation | ( | ) | const [inline] |
Returns this type's speed deviation.
Definition at line 231 of file MSVehicleType.h.
References mySpeedDev.
Referenced by TraCIServerAPI_VehicleType::getVariable().
| SUMOReal MSVehicleType::getSpeedFactor | ( | ) | const [inline] |
Returns this type's speed factor.
Definition at line 223 of file MSVehicleType.h.
References mySpeedFactor.
Referenced by TraCIServerAPI_VehicleType::getVariable().
| SUMOVehicleClass MSVehicleType::getVehicleClass | ( | ) | const [inline] |
Get this vehicle type's vehicle class.
Definition at line 198 of file MSVehicleType.h.
References myVehicleClass.
Referenced by MSVehicleTransfer::checkInsertions(), MSVehicle::getBestLanes(), MSEdge::getDepartLane(), TraCIServerAPI_VehicleType::getVariable(), MSBaseVehicle::hasValidRoute(), MSEdge::prohibits(), and MSLane::succLinkSec().
| SUMOReal MSVehicleType::hasSpeedDeviation | ( | ) | const [inline] |
Get vehicle's maximum speed [m/s].
Definition at line 167 of file MSVehicleType.h.
References mySpeedDev, and mySpeedFactor.
Referenced by MSBaseVehicle::adaptMaxSpeed().
| MSVehicleType& MSVehicleType::operator= | ( | const MSVehicleType & | ) | [private] |
Invalidated assignment operator.
| void MSVehicleType::saveState | ( | std::ostream & | os | ) |
Saves the states of a vehicle.
Definition at line 83 of file MSVehicleType.cpp.
References RGBColor::blue(), getMaxSpeed(), MSCFModel::getModelID(), RGBColor::green(), myCarFollowModel, myColor, myDefaultProbability, myEmissionClass, myID, myLaneChangeModel, myLength, myMinGap, myShape, mySpeedDev, mySpeedFactor, myVehicleClass, myWidth, RGBColor::red(), FileHelpers::writeFloat(), FileHelpers::writeInt(), and FileHelpers::writeString().
| void MSVehicleType::setColor | ( | const RGBColor & | color | ) |
Set a new value for this type's color.
| [in] | color | The new color of this type |
Definition at line 184 of file MSVehicleType.cpp.
References myColor.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setDefaultProbability | ( | const SUMOReal & | prob | ) |
Set a new value for this type's default probability.
If the given value<0 then the one from the original type will be used.
| [in] | prob | The new default probability of this type |
Definition at line 145 of file MSVehicleType.cpp.
References myDefaultProbability, and myOriginalType.
| void MSVehicleType::setEmissionClass | ( | SUMOEmissionClass | eclass | ) |
Set a new value for this type's emission class.
| [in] | eclass | The new emission class of this type |
Definition at line 178 of file MSVehicleType.cpp.
References myEmissionClass.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setLength | ( | const SUMOReal & | length | ) |
Set a new value for this type's length.
If the given value<0 then the one from the original type will be used.
| [in] | length | The new length of this type |
Definition at line 106 of file MSVehicleType.cpp.
References myLength, and myOriginalType.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setMaxSpeed | ( | const SUMOReal & | maxSpeed | ) |
Set a new value for this type's maximum speed.
If the given value<0 then the one from the original type will be used.
| [in] | maxSpeed | The new maximum speed of this type |
Definition at line 128 of file MSVehicleType.cpp.
References myMaxSpeed, and myOriginalType.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setMinGap | ( | const SUMOReal & | minGap | ) |
Set a new value for this type's minimum gap.
If the given value<0 then the one from the original type will be used.
| [in] | offset | The new minimum gap of this type |
Definition at line 117 of file MSVehicleType.cpp.
References myMinGap, and myOriginalType.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setShape | ( | SUMOVehicleShape | shape | ) |
Set a new value for this type's shape.
| [in] | shape | The new shape of this type |
Definition at line 201 of file MSVehicleType.cpp.
References myShape.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setSpeedDeviation | ( | const SUMOReal & | dev | ) |
Set a new value for this type's speed deviation.
If the given value<0 then the one from the original type will be used.
| [in] | dev | The new speed deviation of this type |
Definition at line 167 of file MSVehicleType.cpp.
References myOriginalType, and mySpeedDev.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setSpeedFactor | ( | const SUMOReal & | factor | ) |
Set a new value for this type's speed factor.
If the given value<0 then the one from the original type will be used.
| [in] | factor | The new speed factor of this type |
Definition at line 156 of file MSVehicleType.cpp.
References myOriginalType, and mySpeedFactor.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setVClass | ( | SUMOVehicleClass | vclass | ) |
Set a new value for this type's vehicle class.
| [in] | vclass | The new vehicle class of this type |
Definition at line 139 of file MSVehicleType.cpp.
References myVehicleClass.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| void MSVehicleType::setWidth | ( | const SUMOReal & | width | ) |
Set a new value for this type's width.
If the given value<0 then the one from the original type will be used.
| [in] | width | The new width of this type |
Definition at line 190 of file MSVehicleType.cpp.
References myOriginalType, and myWidth.
Referenced by TraCIServerAPI_VehicleType::setVariable().
MSCFModel* MSVehicleType::myCarFollowModel [private] |
ID of the car following model.
Definition at line 426 of file MSVehicleType.h.
Referenced by build(), getCarFollowModel(), saveState(), and ~MSVehicleType().
RGBColor MSVehicleType::myColor [private] |
The color.
Definition at line 435 of file MSVehicleType.h.
Referenced by build(), getColor(), saveState(), and setColor().
SUMOReal MSVehicleType::myDefaultProbability [private] |
The probability when being added to a distribution without an explicit probability.
Definition at line 417 of file MSVehicleType.h.
Referenced by build(), getDefaultProbability(), saveState(), and setDefaultProbability().
The emission class of such vehicles.
Definition at line 432 of file MSVehicleType.h.
Referenced by build(), getEmissionClass(), saveState(), and setEmissionClass().
std::string MSVehicleType::myID [private] |
std::string MSVehicleType::myLaneChangeModel [private] |
ID of the lane change model.
Definition at line 429 of file MSVehicleType.h.
Referenced by build(), and saveState().
SUMOReal MSVehicleType::myLength [private] |
Vehicles' length [m].
Definition at line 408 of file MSVehicleType.h.
Referenced by build(), getLength(), getLengthWithGap(), MSVehicleType(), saveState(), and setLength().
SUMOReal MSVehicleType::myMaxSpeed [private] |
Vehicles' maximum speed [m/s].
Definition at line 414 of file MSVehicleType.h.
Referenced by build(), getMaxSpeed(), getMaxSpeedWithDeviation(), and setMaxSpeed().
SUMOReal MSVehicleType::myMinGap [private] |
This class' free space in front of the vehicle itself.
Definition at line 411 of file MSVehicleType.h.
Referenced by build(), getLengthWithGap(), getMinGap(), saveState(), and setMinGap().
const MSVehicleType* MSVehicleType::myOriginalType [private] |
The original type.
Definition at line 453 of file MSVehicleType.h.
Referenced by amVehicleSpecific(), build(), setDefaultProbability(), setLength(), setMaxSpeed(), setMinGap(), setSpeedDeviation(), setSpeedFactor(), and setWidth().
SUMOVehicleShape MSVehicleType::myShape [private] |
This class' shape.
Definition at line 448 of file MSVehicleType.h.
Referenced by build(), getGuiShape(), saveState(), and setShape().
SUMOReal MSVehicleType::mySpeedDev [private] |
The standard deviation for speed variations.
Definition at line 423 of file MSVehicleType.h.
Referenced by build(), getMaxSpeedWithDeviation(), getSpeedDeviation(), hasSpeedDeviation(), saveState(), and setSpeedDeviation().
SUMOReal MSVehicleType::mySpeedFactor [private] |
The factor by which the maximum speed may deviate from the allowed max speed on the street.
Definition at line 420 of file MSVehicleType.h.
Referenced by build(), getMaxSpeedWithDeviation(), getSpeedFactor(), hasSpeedDeviation(), saveState(), and setSpeedFactor().
The vehicles' class.
Definition at line 438 of file MSVehicleType.h.
Referenced by build(), getVehicleClass(), saveState(), and setVClass().
SUMOReal MSVehicleType::myWidth [private] |
This class' width.
Definition at line 445 of file MSVehicleType.h.
Referenced by build(), getGuiWidth(), saveState(), and setWidth().