![]() |
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) More... | |
const SUMOVTypeParameter & | getParameter () const |
MSVehicleType (const SUMOVTypeParameter ¶meter) | |
Constructor. More... | |
bool | wasSet (int what) const |
Returns whether the given parameter was set. More... | |
virtual | ~MSVehicleType () |
Destructor. More... | |
Atomar getter for simulation | |
const std::string & | getID () const |
Returns the name of the vehicle type. More... | |
int | getNumericalID () const |
Returns the running index of the vehicle type. More... | |
SUMOReal | getLength () const |
Get vehicle's length [m]. More... | |
SUMOReal | getLengthWithGap () const |
Get vehicle's length including the minimum gap [m]. More... | |
SUMOReal | getMinGap () const |
Get the free space in front of vehicles of this class. More... | |
const MSCFModel & | getCarFollowModel () const |
Returns the vehicle type's car following model definition (const version) More... | |
MSCFModel & | getCarFollowModel () |
Returns the vehicle type's car following model definition (non-const version) More... | |
LaneChangeModel | getLaneChangeModel () const |
SUMOReal | getMaxSpeed () const |
Get vehicle's maximum speed [m/s]. More... | |
SUMOReal | computeChosenSpeedDeviation (MTRand *rng, const SUMOReal minDevFactor=0.2) const |
Computes and returns the speed deviation. More... | |
SUMOReal | getDefaultProbability () const |
Get the default probability of this vehicle type. More... | |
SUMOVehicleClass | getVehicleClass () const |
Get this vehicle type's vehicle class. More... | |
SUMOEmissionClass | getEmissionClass () const |
Get this vehicle type's emission class. More... | |
const RGBColor & | getColor () const |
Returns this type's color. More... | |
SUMOReal | getSpeedFactor () const |
Returns this type's speed factor. More... | |
SUMOReal | getSpeedDeviation () const |
Returns this type's speed deviation. More... | |
SUMOReal | getImpatience () const |
Returns this type's impatience. More... | |
Atomar getter for visualization | |
SUMOReal | getWidth () const |
Get the width which vehicles of this class shall have when being drawn. More... | |
SUMOReal | getHeight () const |
Get the height which vehicles of this class shall have when being drawn. More... | |
SUMOVehicleShape | getGuiShape () const |
Get this vehicle type's shape. More... | |
std::string | getOSGFile () const |
Get this vehicle type's 3D model file name. More... | |
std::string | getImgFile () const |
Get this vehicle type's raster model file name. More... | |
unsigned int | getPersonCapacity () const |
Get this vehicle type's person capacity. More... | |
unsigned int | getContainerCapacity () const |
Get this vehicle type's container capacity. More... | |
SUMOTime | getBoardingDuration () const |
Get this vehicle type's boarding duration. More... | |
SUMOTime | getLoadingDuration () const |
Get this vehicle type's loading duration. More... | |
Setter methods | |
void | setLength (const SUMOReal &length) |
Set a new value for this type's length. More... | |
void | setMinGap (const SUMOReal &minGap) |
Set a new value for this type's minimum gap. More... | |
void | setMaxSpeed (const SUMOReal &maxSpeed) |
Set a new value for this type's maximum speed. More... | |
void | setVClass (SUMOVehicleClass vclass) |
Set a new value for this type's vehicle class. More... | |
void | setDefaultProbability (const SUMOReal &prob) |
Set a new value for this type's default probability. More... | |
void | setSpeedFactor (const SUMOReal &factor) |
Set a new value for this type's speed factor. More... | |
void | setSpeedDeviation (const SUMOReal &dev) |
Set a new value for this type's speed deviation. More... | |
void | setEmissionClass (SUMOEmissionClass eclass) |
Set a new value for this type's emission class. More... | |
void | setColor (const RGBColor &color) |
Set a new value for this type's color. More... | |
void | setWidth (const SUMOReal &width) |
Set a new value for this type's width. More... | |
void | setShape (SUMOVehicleShape shape) |
Set a new value for this type's shape. More... | |
void | setImpatience (const SUMOReal impatience) |
Set a new value for this type's impatience. More... | |
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. More... | |
static MSVehicleType * | build (const std::string &id, const MSVehicleType *from) |
Duplicates the microsim vehicle type giving it a the given id. More... | |
Private Member Functions | |
MSVehicleType (const MSVehicleType &) | |
Invalidated copy constructor. More... | |
MSVehicleType & | operator= (const MSVehicleType &) |
Invalidated assignment operator. More... | |
Private Attributes | |
MSCFModel * | myCarFollowModel |
ID of the car following model. More... | |
const int | myIndex |
the running index More... | |
const MSVehicleType * | myOriginalType |
The original type. More... | |
SUMOVTypeParameter | myParameter |
the parameter container More... | |
Static Private Attributes | |
static int | myNextIndex = 0 |
next value for the running index More... | |
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 74 of file MSVehicleType.h.
MSVehicleType::MSVehicleType | ( | const SUMOVTypeParameter & | parameter | ) |
Constructor.
[in] | parameter | The vehicle type's parameter |
Definition at line 67 of file MSVehicleType.cpp.
References getLength(), and getMaxSpeed().
Referenced by build().
|
virtual |
Destructor.
Definition at line 74 of file MSVehicleType.cpp.
References myCarFollowModel, and SUMOReal.
|
private |
Invalidated copy constructor.
|
inline |
Returns whether this type belongs to a single vehicle only (was modified)
Definition at line 435 of file MSVehicleType.h.
References myOriginalType.
Referenced by MSVehicle::replaceVehicleType(), and MSVehicle::~MSVehicle().
|
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 199 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfModel, SUMOVTypeParameter::get(), SUMOVTypeParameter::getDefaultAccel(), SUMOVTypeParameter::getDefaultDecel(), SUMOVTypeParameter::getDefaultImperfection(), MSVehicleType(), myCarFollowModel, 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_ATTR_TMP1, SUMO_ATTR_TMP2, SUMO_ATTR_TMP3, SUMO_ATTR_TMP4, SUMO_ATTR_TMP5, SUMO_TAG_CF_BKERNER, SUMO_TAG_CF_DANIEL1, SUMO_TAG_CF_IDM, SUMO_TAG_CF_IDMM, SUMO_TAG_CF_KRAUSS, SUMO_TAG_CF_KRAUSS_ACCEL_BOUND, SUMO_TAG_CF_KRAUSS_ORIG1, SUMO_TAG_CF_KRAUSS_PLUS_SLOPE, SUMO_TAG_CF_PWAGNER2009, SUMO_TAG_CF_SMART_SK, SUMO_TAG_CF_WIEDEMANN, SUMOReal, and SUMOVTypeParameter::vehicleClass.
Referenced by getLoadingDuration(), TraCIServerAPI_Vehicle::getSingularType(), MSVehicleControl::MSVehicleControl(), MSStateHandler::myEndElement(), and MSRouteHandler::myEndElement().
|
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 267 of file MSVehicleType.cpp.
References MSCFModel::duplicate(), SUMOVTypeParameter::id, MSVehicleType(), myCarFollowModel, myOriginalType, and myParameter.
SUMOReal MSVehicleType::computeChosenSpeedDeviation | ( | MTRand * | rng, |
const SUMOReal | minDevFactor = 0.2 |
||
) | const |
Computes and returns the speed deviation.
Definition at line 80 of file MSVehicleType.cpp.
References MAX2(), MIN2(), myParameter, RandHelper::randNorm(), SUMOVTypeParameter::speedDev, SUMOVTypeParameter::speedFactor, and SUMOReal.
Referenced by GUIVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), getMaxSpeed(), and MSEdge::insertVehicle().
|
inline |
Get this vehicle type's boarding duration.
Definition at line 293 of file MSVehicleType.h.
References SUMOVTypeParameter::boardingDuration, and myParameter.
Referenced by MSPersonControl::boardAnyWaiting().
|
inline |
Returns the vehicle type's car following model definition (const version)
Definition at line 142 of file MSVehicleType.h.
References myCarFollowModel.
Referenced by MSVehicle::estimateLeaveSpeed(), MSVehicle::executeMove(), MSVehicle::getCarFollowModel(), TraCIServerAPI_VehicleType::getVariable(), MSVehicle::MSVehicle(), MSVehicle::planMoveInternal(), MSCalibrator::remainingVehicleCapacity(), TraCIServerAPI_VehicleType::setVariable(), MSVehicleControl::vehicleDeparted(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
inline |
Returns the vehicle type's car following model definition (non-const version)
Definition at line 150 of file MSVehicleType.h.
References myCarFollowModel.
|
inline |
Returns this type's color.
Definition at line 203 of file MSVehicleType.h.
References SUMOVTypeParameter::color, and myParameter.
Referenced by TraCIServerAPI_VehicleType::getVariable(), and GUIBaseVehicle::setFunctionalColor().
|
inline |
Get this vehicle type's container capacity.
Definition at line 286 of file MSVehicleType.h.
References SUMOVTypeParameter::containerCapacity, and myParameter.
Referenced by GUIVehicle::getParameterWindow(), and MSContainerControl::loadAnyWaiting().
|
inline |
Get the default probability of this vehicle type.
Definition at line 177 of file MSVehicleType.h.
References SUMOVTypeParameter::defaultProbability, and myParameter.
Referenced by MSRouteHandler::myEndElement(), MSRouteHandler::openVehicleTypeDistribution(), and setDefaultProbability().
|
inline |
Get this vehicle type's emission class.
Definition at line 195 of file MSVehicleType.h.
References SUMOVTypeParameter::emissionClass, and myParameter.
Referenced by MSVehicle::getCO2Emissions(), MSVehicle::getCOEmissions(), MSVehicle::getFuelConsumption(), MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHCEmissions(), MSVehicle::getNOxEmissions(), GUIVehicle::getParameterWindow(), MSVehicle::getPMxEmissions(), TraCIServerAPI_VehicleType::getVariable(), MSCFModel_KraussAccelBound::maxNextSpeed(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), MSEmissionExport::write(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
inline |
Get this vehicle type's shape.
Definition at line 255 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::shape.
Referenced by GUIBaseVehicle::drawAction_drawVehicleAsPoly(), GUIBaseVehicle::drawGL(), and TraCIServerAPI_VehicleType::getVariable().
|
inline |
Get the height which vehicles of this class shall have when being drawn.
Definition at line 247 of file MSVehicleType.h.
References SUMOVTypeParameter::height, and myParameter.
|
inline |
Returns the name of the vehicle type.
Definition at line 102 of file MSVehicleType.h.
References SUMOVTypeParameter::id, and myParameter.
Referenced by MSVehicleControl::addVType(), MSInductLoop::collectVehiclesOnDet(), MSVTypeProbe::execute(), MSDevice_Vehroutes::generateOutput(), MSDevice_Tripinfo::generateOutput(), GUIPerson::getParameterWindow(), GUIVehicle::getParameterWindow(), TraCIServerAPI_Vehicle::getSingularType(), MSInductLoop::leaveDetectorByMove(), MSVehicle::MSVehicle(), MSRouteHandler::myEndElement(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), MSBaseVehicle::saveState(), MSMeanData::MeanDataValues::vehicleApplies(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
inline |
Get this vehicle type's raster model file name.
Definition at line 270 of file MSVehicleType.h.
References SUMOVTypeParameter::imgFile, and myParameter.
Referenced by GUIContainer::drawAction_drawAsImage(), GUIPerson::drawAction_drawAsImage(), and GUIBaseVehicle::drawAction_drawVehicleAsImage().
|
inline |
Returns this type's impatience.
Definition at line 227 of file MSVehicleType.h.
References SUMOVTypeParameter::impatience, and myParameter.
Referenced by MSPModel_Striping::PState::getImpatience(), and setImpatience().
|
inline |
Definition at line 155 of file MSVehicleType.h.
References SUMOVTypeParameter::lcModel, and myParameter.
Referenced by MSVehicle::MSVehicle().
|
inline |
Get vehicle's length [m].
Definition at line 118 of file MSVehicleType.h.
References SUMOVTypeParameter::length, and myParameter.
Referenced by MSCFModel_Wiedemann::_v(), MSVehicle::addStop(), MSStoppingPlace::addTransportable(), MSVehicle::checkRewindLinkLanes(), MSInductLoop::collectVehiclesOnDet(), MSE2Collector::detectorUpdate(), GUIContainer::drawAction_drawAsImage(), GUIPerson::drawAction_drawAsImage(), GUIVehicle::drawAction_drawRailCarriages(), GUIBaseVehicle::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicle::drawAction_drawVehicleAsImage(), GUIBaseVehicle::drawAction_drawVehicleAsPoly(), GUIBaseVehicle::drawAction_drawVehicleAsTrianglePlus(), GUIBaseVehicle::drawGL(), MSLane::enteredByLaneChange(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::executeMove(), MSLane::executeMovements(), MSLane::freeInsertion(), MSVehicle::getAngle(), MSLane::getBruttoOccupancy(), MSLane::getCriticalLeader(), MSLane::getLastVehicleInformation(), MSVehicle::getLeader(), MSLane::getLeaderOnConsecutive(), MSPModel_Striping::PState::getLength(), MSLane::getNettoOccupancy(), GUIPerson::getParameterWindow(), GUIVehicle::getParameterWindow(), MSLaneChanger::getRealFollower(), TraCIServerAPI_VehicleType::getVariable(), MSLink::getZipperSpeed(), MSLane::handleCollision(), MSLane::incorporateVehicle(), MSLCM_JE2013::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSLane::insertVehicle(), MSLane::integrateNewVehicle(), MSLane::isInsertionSuccess(), MSInductLoop::leaveDetectorByMove(), MSLane::leftByLaneChange(), MSLane::maxSpeedGapInsertion(), MSLink::maybeOccupied(), MSVehicleType(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSInductLoop::notifyMove(), MSE2Collector::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSVehicle::planMoveInternal(), MSAbstractLaneChangeModel::predInteraction(), MSVehicle::processNextStop(), MSLane::pWagGenericInsertion(), MSLane::pWagSimpleInsertion(), MSStoppingPlace::removeTransportable(), MSLane::removeVehicle(), GUIVehicle::selectBlockingFoes(), MSLink::setApproaching(), setLength(), MSAbstractLaneChangeModel::startLaneChangeManeuver(), MSInstantInductLoop::write(), MSLink::writeApproaching(), and MSQueueExport::writeLane().
|
inline |
Get vehicle's length including the minimum gap [m].
Definition at line 126 of file MSVehicleType.h.
References SUMOVTypeParameter::length, SUMOVTypeParameter::minGap, and myParameter.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSLaneChanger::change(), MSVehicle::checkRewindLinkLanes(), MSE2Collector::detectorUpdate(), GUIVehicle::drawAction_drawLinkItems(), MSLane::enteredByLaneChange(), MSLane::executeMovements(), MSLane::handleCollision(), MSLane::incorporateVehicle(), MSLCM_JE2013::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), MSLane::leftByLaneChange(), MSLane::maxSpeedGapInsertion(), MSVehicle::overlap(), MSLane::planMovements(), MSLaneChanger::registerUnchanged(), MSCalibrator::remainingVehicleCapacity(), MSLane::removeVehicle(), MSLCM_JE2013::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLaneChanger::startChange(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
|
inline |
Get this vehicle type's loading duration.
Definition at line 300 of file MSVehicleType.h.
References build(), SUMOVTypeParameter::loadingDuration, myParameter, setColor(), setDefaultProbability(), setEmissionClass(), setImpatience(), setLength(), setMaxSpeed(), setMinGap(), setShape(), setSpeedDeviation(), setSpeedFactor(), setVClass(), setWidth(), and SUMOReal.
Referenced by MSContainerControl::loadAnyWaiting().
|
inline |
Get vehicle's maximum speed [m/s].
Definition at line 163 of file MSVehicleType.h.
References computeChosenSpeedDeviation(), SUMOVTypeParameter::maxSpeed, myParameter, and SUMOReal.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), GUIApplicationWindow::checkGamingEvents(), MSBaseVehicle::getMaxSpeed(), GUIPerson::getParameterWindow(), TraCIServerAPI_VehicleType::getVariable(), MSCFModel_KraussAccelBound::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSVehicle::MSVehicle(), MSVehicleType(), MSRouteHandler::myStartElement(), setMaxSpeed(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
inline |
Get the free space in front of vehicles of this class.
Definition at line 134 of file MSVehicleType.h.
References SUMOVTypeParameter::minGap, and myParameter.
Referenced by MSLCM_JE2013::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSCFModel_IDM::_v(), MSLaneChanger::checkChange(), MSLane::checkFailure(), GUIBaseVehicle::drawGL(), MSLane::freeInsertion(), MSLane::getCriticalLeader(), MSLane::getFollowerOnConsecutive(), MSStoppingPlace::getLastFreePos(), MSLane::getLeader(), MSVehicle::getLeader(), MSLane::getLeaderOnConsecutive(), MSPModel_Striping::PState::getMinGap(), GUIPerson::getParameterWindow(), GUIVehicle::getParameterWindow(), MSLaneChanger::getRealLeader(), TraCIServerAPI_VehicleType::getVariable(), MSLink::getZipperSpeed(), MSLane::handleCollision(), MSLane::isInsertionSuccess(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSAbstractLaneChangeModel::predInteraction(), MSVehicle::processNextStop(), MSLane::pWagGenericInsertion(), MSLane::pWagSimpleInsertion(), GUIVehicle::selectBlockingFoes(), setMinGap(), MSLCM_JE2013::slowDownForBlocked(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
|
inline |
Returns the running index of the vehicle type.
Definition at line 110 of file MSVehicleType.h.
References myIndex.
Referenced by MSAmitranTrajectories::writeVehicle().
|
inline |
Get this vehicle type's 3D model file name.
Definition at line 262 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::osgFile.
|
inline |
Definition at line 440 of file MSVehicleType.h.
References myParameter.
Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), GUIPerson::getParameterWindow(), GUIVehicle::getParameterWindow(), MSBaseVehicle::getVClass(), TraCIServerAPI_VehicleType::processGet(), and TraCIServerAPI_VehicleType::setVariable().
|
inline |
Get this vehicle type's person capacity.
Definition at line 278 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::personCapacity.
Referenced by MSPersonControl::boardAnyWaiting(), and GUIVehicle::getParameterWindow().
|
inline |
Returns this type's speed deviation.
Definition at line 219 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::speedDev.
Referenced by TraCIServerAPI_VehicleType::getVariable(), MSEdge::insertVehicle(), and setSpeedDeviation().
|
inline |
Returns this type's speed factor.
Definition at line 211 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::speedFactor.
Referenced by TraCIServerAPI_VehicleType::getVariable(), MSEdge::insertVehicle(), and setSpeedFactor().
|
inline |
Get this vehicle type's vehicle class.
Definition at line 186 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::vehicleClass.
Referenced by MSVehicle::addStop(), MSBaseVehicle::calculateArrivalParams(), MSVehicleTransfer::checkInsertions(), MSVehicle::executeMove(), MSEdge::getDepartLane(), GUIVehicle::getParameterWindow(), TraCIServerAPI_VehicleType::getVariable(), MSBaseVehicle::hasValidRoute(), MSVehicle::MSVehicle(), MSEdge::prohibits(), MSLane::succLinkSec(), and MSVehicle::updateBestLanes().
|
inline |
Get the width which vehicles of this class shall have when being drawn.
Definition at line 240 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::width.
Referenced by MSAbstractLaneChangeModel::continueLaneChangeManeuver(), GUIContainer::drawAction_drawAsImage(), GUIPerson::drawAction_drawAsImage(), GUIVehicle::drawAction_drawRailCarriages(), GUIBaseVehicle::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicle::drawAction_drawVehicleAsImage(), GUIBaseVehicle::drawAction_drawVehicleAsPoly(), GUIBaseVehicle::drawAction_drawVehicleAsTrianglePlus(), MSPModel_Striping::getNextLaneObstacles(), TraCIServerAPI_VehicleType::getVariable(), MSPModel_Striping::PState::otherStripe(), and setWidth().
|
private |
Invalidated assignment operator.
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 165 of file MSVehicleType.cpp.
References SUMOVTypeParameter::color, and myParameter.
Referenced by getLoadingDuration(), and 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 129 of file MSVehicleType.cpp.
References SUMOVTypeParameter::defaultProbability, getDefaultProbability(), myOriginalType, and myParameter.
Referenced by getLoadingDuration().
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 159 of file MSVehicleType.cpp.
References SUMOVTypeParameter::emissionClass, and myParameter.
Referenced by getLoadingDuration(), and TraCIServerAPI_VehicleType::setVariable().
void MSVehicleType::setImpatience | ( | const SUMOReal | impatience | ) |
Set a new value for this type's impatience.
[in] | impatience | The new impatience of this type |
Definition at line 181 of file MSVehicleType.cpp.
References getImpatience(), SUMOVTypeParameter::impatience, myOriginalType, and myParameter.
Referenced by getLoadingDuration().
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 93 of file MSVehicleType.cpp.
References getLength(), SUMOVTypeParameter::length, myOriginalType, and myParameter.
Referenced by getLoadingDuration(), and 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 113 of file MSVehicleType.cpp.
References getMaxSpeed(), SUMOVTypeParameter::maxSpeed, myOriginalType, and myParameter.
Referenced by getLoadingDuration(), and 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] | minGap | The new minimum gap of this type |
Definition at line 103 of file MSVehicleType.cpp.
References getMinGap(), SUMOVTypeParameter::minGap, myOriginalType, and myParameter.
Referenced by getLoadingDuration(), and 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 191 of file MSVehicleType.cpp.
References myParameter, and SUMOVTypeParameter::shape.
Referenced by getLoadingDuration(), and 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 149 of file MSVehicleType.cpp.
References getSpeedDeviation(), myOriginalType, myParameter, and SUMOVTypeParameter::speedDev.
Referenced by getLoadingDuration(), and 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 139 of file MSVehicleType.cpp.
References getSpeedFactor(), myOriginalType, myParameter, and SUMOVTypeParameter::speedFactor.
Referenced by getLoadingDuration(), and 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 123 of file MSVehicleType.cpp.
References myParameter, and SUMOVTypeParameter::vehicleClass.
Referenced by getLoadingDuration(), and 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 171 of file MSVehicleType.cpp.
References getWidth(), myOriginalType, myParameter, and SUMOVTypeParameter::width.
Referenced by getLoadingDuration(), and TraCIServerAPI_VehicleType::setVariable().
|
inline |
Returns whether the given parameter was set.
[in] | what | The parameter which one asks for |
Definition at line 91 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::setParameter.
Referenced by MSRouteHandler::myStartElement(), and GUIBaseVehicle::setFunctionalColor().
|
private |
ID of the car following model.
Definition at line 453 of file MSVehicleType.h.
Referenced by build(), getCarFollowModel(), and ~MSVehicleType().
|
private |
|
staticprivate |
next value for the running index
Definition at line 459 of file MSVehicleType.h.
|
private |
The original type.
Definition at line 456 of file MSVehicleType.h.
Referenced by amVehicleSpecific(), build(), setDefaultProbability(), setImpatience(), setLength(), setMaxSpeed(), setMinGap(), setSpeedDeviation(), setSpeedFactor(), and setWidth().
|
private |
the parameter container
Definition at line 447 of file MSVehicleType.h.
Referenced by build(), computeChosenSpeedDeviation(), getBoardingDuration(), getColor(), getContainerCapacity(), getDefaultProbability(), getEmissionClass(), getGuiShape(), getHeight(), getID(), getImgFile(), getImpatience(), getLaneChangeModel(), getLength(), getLengthWithGap(), getLoadingDuration(), getMaxSpeed(), getMinGap(), getOSGFile(), getParameter(), getPersonCapacity(), getSpeedDeviation(), getSpeedFactor(), getVehicleClass(), getWidth(), setColor(), setDefaultProbability(), setEmissionClass(), setImpatience(), setLength(), setMaxSpeed(), setMinGap(), setShape(), setSpeedDeviation(), setSpeedFactor(), setVClass(), setWidth(), and wasSet().