![]() |
Eclipse SUMO - Simulation of Urban MObility
|
The car-following model and parameter. More...
#include <MSVehicleType.h>
Public Member Functions | |
void | check () |
Checks whether vehicle type parameters may be problematic (Currently, only the value for the action step length is compared with the value for the desired headway time.) More... | |
const std::string & | getOriginalID () const |
Returns the id of the original vehicle type if this is a vehicle specific type, the id otherwise. More... | |
const SUMOVTypeParameter & | getParameter () const |
bool | isVehicleSpecific () const |
Returns whether this type belongs to a single vehicle only (was modified) More... | |
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... | |
double | getLength () const |
Get vehicle's length [m]. More... | |
double | getLengthWithGap () const |
Get vehicle's length including the minimum gap [m]. More... | |
double | getMinGap () const |
Get the free space in front of vehicles of this class. More... | |
double | getMinGapLat () const |
Get the minimum lateral gap that vehicles of this type maintain. 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 |
double | getMaxSpeed () const |
Get vehicle's maximum speed [m/s]. More... | |
double | computeChosenSpeedDeviation (std::mt19937 *rng, const double minDev=-1.) const |
Computes and returns the speed deviation. More... | |
double | 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... | |
const Distribution_Parameterized & | getSpeedFactor () const |
Returns this type's speed factor. More... | |
SUMOTime | getActionStepLength () const |
Returns this type's default action step length. More... | |
double | getActionStepLengthSecs () const |
Returns this type's default action step length in seconds. More... | |
double | getImpatience () const |
Returns this type's impatience. More... | |
Atomar getter for visualization | |
double | getWidth () const |
Get the width which vehicles of this class shall have when being drawn. More... | |
double | 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... | |
int | getPersonCapacity () const |
Get this vehicle type's person capacity. More... | |
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... | |
double | getMaxSpeedLat () const |
Get vehicle's maximum lateral speed [m/s]. More... | |
LateralAlignment | getPreferredLateralAlignment () const |
Get vehicle's preferred lateral alignment. More... | |
Setter methods | |
void | setAccel (double accel) |
Set a new value for this type's acceleration. More... | |
void | setDecel (double decel) |
Set a new value for this type's deceleration. More... | |
void | setEmergencyDecel (double emergencyDecel) |
Set a new value for this type's emergency deceleration. More... | |
void | setApparentDecel (double apparentDecel) |
Set a new value for this type's apparent deceleration. More... | |
void | setImperfection (double imperfection) |
Set a new value for this type's imperfection. More... | |
void | setTau (double tau) |
Set a new value for this type's headway. More... | |
void | setLength (const double &length) |
Set a new value for this type's length. More... | |
void | setHeight (const double &height) |
Set a new value for this type's height. More... | |
void | setMinGap (const double &minGap) |
Set a new value for this type's minimum gap. More... | |
void | setMinGapLat (const double &minGapLat) |
Set a new value for this type's minimum lataral gap. More... | |
void | setMaxSpeed (const double &maxSpeed) |
Set a new value for this type's maximum speed. More... | |
void | setMaxSpeedLat (const double &maxSpeedLat) |
Set a new value for this type's maximum lateral speed. More... | |
void | setVClass (SUMOVehicleClass vclass) |
Set a new value for this type's vehicle class. More... | |
void | setDefaultProbability (const double &prob) |
Set a new value for this type's default probability. More... | |
void | setSpeedFactor (const double &factor) |
Set a new value for this type's speed factor. More... | |
void | setSpeedDeviation (const double &dev) |
Set a new value for this type's speed deviation. More... | |
void | setActionStepLength (const SUMOTime actionStepLength, bool resetActionOffset) |
Set a new value for this type's action step length. 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 double &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 double impatience) |
Set a new value for this type's impatience. More... | |
void | setPreferredLateralAlignment (LateralAlignment latAlignment) |
Set vehicle's preferred lateral alignment. More... | |
Protected Member Functions | |
void | initRailVisualizationParameters () |
init Rail Visualization Parameters More... | |
Private Member Functions | |
MSVehicleType (const MSVehicleType &)=delete | |
Invalidated copy constructor. More... | |
MSVehicleType & | operator= (const MSVehicleType &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
double | myCachedActionStepLengthSecs |
the vtypes actionsStepLength in seconds (cached because needed very often) More... | |
MSCFModel * | myCarFollowModel |
instance 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... | |
bool | myWarnedActionStepLengthBallisticOnce |
bool | myWarnedActionStepLengthTauOnce |
Indicator whether the user was already warned once about an action step length larger than the desired time headway. More... | |
Static Private Attributes | |
static int | myNextIndex = 0 |
next value for the running index More... | |
methods for building vehicle types | |
SUMOTime | getEntryManoeuvreTime (const int angle) const |
Accessor function for parameter equivalent returning entry time for a specific manoeuver angle. More... | |
SUMOTime | getExitManoeuvreTime (const int angle) const |
Accessor function for parameter equivalent returning exit time for a specific manoeuver angle. More... | |
MSVehicleType * | buildSingularType (const std::string &id) const |
Duplicates the microsim vehicle type giving the newly created type the given id, marking it as vehicle specific. More... | |
MSVehicleType * | duplicateType (const std::string &id, bool persistent) const |
Duplicates the microsim vehicle type giving the newly created type the given id. More... | |
static MSVehicleType * | build (SUMOVTypeParameter &from) |
Builds the microsim vehicle type described by the given parameter. 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 62 of file MSVehicleType.h.
MSVehicleType::MSVehicleType | ( | const SUMOVTypeParameter & | parameter | ) |
Constructor.
[in] | parameter | The vehicle type's parameter |
Definition at line 61 of file MSVehicleType.cpp.
References SUMOVTypeParameter::actionStepLength, MSGlobals::gActionStepLength, getLength(), getMaxSpeed(), myCachedActionStepLengthSecs, myParameter, STEPS2TIME, VTYPEPARS_ACTIONSTEPLENGTH_SET, and SUMOVTypeParameter::wasSet().
Referenced by build(), and duplicateType().
|
virtual |
|
privatedelete |
Invalidated copy constructor.
|
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 284 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfModel, check(), MSGlobals::gDefaultEmergencyDecel, SUMOVTypeParameter::getCFParam(), SUMOVTypeParameter::getDefaultDecel(), SUMOVTypeParameter::getDefaultEmergencyDecel(), SUMOVTypeParameter::id, initRailVisualizationParameters(), MSVehicleType(), myCarFollowModel, SUMO_ATTR_APPARENTDECEL, SUMO_ATTR_DECEL, SUMO_ATTR_EMERGENCYDECEL, SUMO_TAG_CF_ACC, SUMO_TAG_CF_BKERNER, SUMO_TAG_CF_CACC, SUMO_TAG_CF_CC, SUMO_TAG_CF_DANIEL1, SUMO_TAG_CF_IDM, SUMO_TAG_CF_IDMM, SUMO_TAG_CF_KRAUSS, SUMO_TAG_CF_KRAUSS_ORIG1, SUMO_TAG_CF_KRAUSS_PLUS_SLOPE, SUMO_TAG_CF_KRAUSSX, SUMO_TAG_CF_PWAGNER2009, SUMO_TAG_CF_RAIL, SUMO_TAG_CF_SMART_SK, SUMO_TAG_CF_W99, SUMO_TAG_CF_WIEDEMANN, toString(), SUMOVTypeParameter::vehicleClass, and WRITE_WARNING.
Referenced by MSRouteHandler::closeVType(), and MSVehicleControl::MSVehicleControl().
MSVehicleType * MSVehicleType::buildSingularType | ( | const std::string & | id | ) | const |
Duplicates the microsim vehicle type giving the newly created type the given id, marking it as vehicle specific.
[in] | id | The new id of the type |
Definition at line 366 of file MSVehicleType.cpp.
References duplicateType().
Referenced by MSBaseVehicle::getSingularType(), and MSTransportable::getSingularType().
void MSVehicleType::check | ( | ) |
Checks whether vehicle type parameters may be problematic (Currently, only the value for the action step length is compared with the value for the desired headway time.)
Definition at line 387 of file MSVehicleType.cpp.
References SUMOVTypeParameter::actionStepLength, DELTA_T, getCarFollowModel(), MSCFModel::getHeadwayTime(), getID(), OptionsCont::getOptions(), MSGlobals::gSemiImplicitEulerUpdate, myParameter, myWarnedActionStepLengthBallisticOnce, myWarnedActionStepLengthTauOnce, STEPS2TIME, WRITE_WARNING, and WRITE_WARNINGF.
Referenced by build(), and setActionStepLength().
double MSVehicleType::computeChosenSpeedDeviation | ( | std::mt19937 * | rng, |
const double | minDev = -1. |
||
) | const |
Computes and returns the speed deviation.
Definition at line 85 of file MSVehicleType.cpp.
References MAX2(), myParameter, Distribution_Parameterized::sample(), and SUMOVTypeParameter::speedFactor.
Referenced by GUITransportableControl::buildPerson(), MSTransportableControl::buildPerson(), GUIVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), MEVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), and MSEdge::validateDepartSpeed().
MSVehicleType * MSVehicleType::duplicateType | ( | const std::string & | id, |
bool | persistent | ||
) | const |
Duplicates the microsim vehicle type giving the newly created type the given id.
[in] | id | The new id of the type |
[in] | persistent | If true the created vType will be persistent and can be used by several vehicles, otherwise it may be removed before simulation end, |
Definition at line 372 of file MSVehicleType.cpp.
References MSCFModel::duplicate(), getID(), MSNet::getInstance(), SUMOVTypeParameter::id, MSVehicleType(), myCarFollowModel, myOriginalType, and myParameter.
Referenced by buildSingularType().
|
inline |
Returns this type's default action step length.
Definition at line 214 of file MSVehicleType.h.
References SUMOVTypeParameter::actionStepLength, and myParameter.
Referenced by MSVehicle::getActionStepLength().
|
inline |
Returns this type's default action step length in seconds.
Definition at line 222 of file MSVehicleType.h.
References myCachedActionStepLengthSecs.
Referenced by MSVehicle::getActionStepLengthSecs(), and GUIVehicle::getTypeParameterWindow().
|
inline |
Get this vehicle type's boarding duration.
Definition at line 296 of file MSVehicleType.h.
References SUMOVTypeParameter::boardingDuration, and myParameter.
Referenced by MSTransportableControl::boardAnyWaiting(), and GUIVehicle::getTypeParameterWindow().
|
inline |
Returns the vehicle type's car following model definition (non-const version)
Definition at line 145 of file MSVehicleType.h.
References myCarFollowModel.
|
inline |
Returns the vehicle type's car following model definition (const version)
Definition at line 137 of file MSVehicleType.h.
References myCarFollowModel.
Referenced by MSLink::blockedByFoe(), check(), MSVehicle::Influencer::gapControlSpeed(), MSVehicle::getCarFollowModel(), MESegment::isOpen(), MSVehicle::MSVehicle(), LIBSUMO_NAMESPACE::Vehicle::openGap(), MSVehicle::processTraCISpeedControl(), MSCalibrator::remainingVehicleCapacity(), setAccel(), setApparentDecel(), setDecel(), setEmergencyDecel(), setImperfection(), MSDevice_ToC::setState(), setTau(), MSVehicleControl::vehicleDeparted(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
inline |
Returns this type's color.
Definition at line 198 of file MSVehicleType.h.
References SUMOVTypeParameter::color, and myParameter.
Referenced by MSDevice_ToC::initColorScheme(), GUIBaseVehicle::setFunctionalColor(), and MSDevice_ToC::setParameter().
|
inline |
Get this vehicle type's container capacity.
Definition at line 289 of file MSVehicleType.h.
References SUMOVTypeParameter::containerCapacity, and myParameter.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSIdling_Stop::idle(), and MSTransportableControl::loadAnyWaiting().
|
inline |
Get the default probability of this vehicle type.
Definition at line 172 of file MSVehicleType.h.
References SUMOVTypeParameter::defaultProbability, and myParameter.
Referenced by MSRouteHandler::closeVType(), MSRouteHandler::openVehicleTypeDistribution(), and setDefaultProbability().
|
inline |
Get this vehicle type's emission class.
Definition at line 190 of file MSVehicleType.h.
References SUMOVTypeParameter::emissionClass, and myParameter.
Referenced by MSBaseVehicle::getCO2Emissions(), MSBaseVehicle::getCOEmissions(), MSBaseVehicle::getElectricityConsumption(), MSBaseVehicle::getFuelConsumption(), MSBaseVehicle::getHarmonoise_NoiseEmissions(), MSBaseVehicle::getHCEmissions(), MSBaseVehicle::getNOxEmissions(), MSBaseVehicle::getPMxEmissions(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSDevice_Emissions::notifyIdle(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyIdle(), MSDevice_Emissions::notifyMove(), MSDevice_Emissions::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSEmissionExport::write(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
SUMOTime MSVehicleType::getEntryManoeuvreTime | ( | const int | angle | ) | const |
Accessor function for parameter equivalent returning entry time for a specific manoeuver angle.
Definition at line 356 of file MSVehicleType.cpp.
References getParameter().
Referenced by MSVehicle::Manoeuvre::configureEntryManoeuvre().
SUMOTime MSVehicleType::getExitManoeuvreTime | ( | const int | angle | ) | const |
Accessor function for parameter equivalent returning exit time for a specific manoeuver angle.
Definition at line 361 of file MSVehicleType.cpp.
References getParameter().
Referenced by MSVehicle::Manoeuvre::configureExitManoeuvre().
|
inline |
Get this vehicle type's shape.
Definition at line 258 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::shape.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), MSVehicle::getBoundingPoly(), GUIVehicle::getTypeParameterWindow(), and GUIBaseVehicle::setFunctionalColor().
|
inline |
Get the height which vehicles of this class shall have when being drawn.
Definition at line 250 of file MSVehicleType.h.
References SUMOVTypeParameter::height, and myParameter.
Referenced by GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), and setHeight().
|
inline |
Returns the name of the vehicle type.
Definition at line 90 of file MSVehicleType.h.
References SUMOVTypeParameter::id, and myParameter.
Referenced by MSChargingStation::addChargeValueForOutput(), MSOverheadWire::addChargeValueForOutput(), MSVehicleControl::addVType(), libsumo::Helper::applySubscriptionFilters(), check(), MSRouteHandler::closeVehicle(), MSRouteHandler::closeVType(), duplicateType(), MSVTypeProbe::execute(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSDevice_Tripinfo::generateOutput(), getOriginalID(), MSBaseVehicle::getSingularType(), MSTransportable::getSingularType(), LIBSUMO_NAMESPACE::Vehicle::getTypeID(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSVehicle::hasValidRouteStart(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE2Collector::makeVehicleInfo(), MEVehicle::MEVehicle(), MSDevice_ToC::MSDevice_ToC(), MSDevice_Bluelight::notifyMove(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_Vehicle::processSet(), MSVehicleControl::removeVType(), MSTransportable::routeOutput(), MSStageTrip::setArrived(), MSStageDriving::setVehicle(), MSStopOut::stopEnded(), MSDevice_ToC::switchHolderType(), MSInstantInductLoop::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
inline |
Get this vehicle type's raster model file name.
Definition at line 273 of file MSVehicleType.h.
References SUMOVTypeParameter::imgFile, and myParameter.
Referenced by GUIContainer::drawAction_drawAsImage().
|
inline |
Returns this type's impatience.
Definition at line 230 of file MSVehicleType.h.
References SUMOVTypeParameter::impatience, and myParameter.
Referenced by setImpatience().
|
inline |
Definition at line 150 of file MSVehicleType.h.
References SUMOVTypeParameter::lcModel, and myParameter.
Referenced by MSVehicle::initDevices().
|
inline |
Get vehicle's length [m].
Definition at line 106 of file MSVehicleType.h.
References SUMOVTypeParameter::length, and myParameter.
Referenced by MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSPModel_Striping::addCrossingVehs(), MSBaseVehicle::addStop(), libsumo::Helper::applySubscriptionFilters(), MSLane::checkForPedestrians(), MSVehicle::checkRewindLinkLanes(), MSLink::checkWalkingAreaFoe(), MSLaneChanger::computeOvertakingTime(), MSLane::detectCollisions(), GUIContainer::drawAction_drawAsImage(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawOnPos(), MSParkingArea::enter(), MSLane::enteredByLaneChange(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSDevice_SSM::estimateConflictTimes(), MSVehicle::estimateTimeToNextStop(), MSLane::executeMovements(), MSStoppingPlace::fits(), MSLane::freeInsertion(), MSVehicle::getBackPosition(), MEVehicle::getBackPositionOnLane(), MSVehicle::getBackPositionOnLane(), MSTransportable::getBoundingBox(), MSLane::getBruttoOccupancy(), GUIBaseVehicle::getCenteringBoundary(), MSLane::getCriticalLeader(), MSEdge::getDepartPosBound(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSStoppingPlace::getLastFreePos(), MSParkingArea::getLastFreePosWithReservation(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSBaseVehicle::getLength(), MSLane::getNettoOccupancy(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSVehicle::getPositionOnLane(), MSLaneChanger::getRealFollower(), MSCFModel_Wiedemann::getSecureGap(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSPModel_Striping::getVehicleObstacles(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), MSLane::incorporateVehicle(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSLane::isInsertionSuccess(), MSVehicle::joinTrainPart(), MSVehicle::joinTrainPartFront(), MSLCM_SL2015::keepLatGap(), MSLane::leftByLaneChange(), MSE2Collector::makeVehicleInfo(), MSPModel_Striping::moveInDirection(), MSCFModel_Rail::MSCFModel_Rail(), MSVehicleType(), MSPModel_Striping::nextBlocking(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE2Collector::notifyMove(), MSInductLoop::notifyMove(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSLCM_LC2013::overtakeDistance(), MSVehicle::planMoveInternal(), MSDevice_Taxi::prepareStop(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSLane::removeVehicle(), GUIVehicle::selectBlockingFoes(), MSLink::setApproaching(), setLength(), MSVehicle::setTentativeLaneAndPosition(), MSLaneChangerSublane::startChangeSublane(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSInstantInductLoop::write(), and MSQueueExport::writeLane().
|
inline |
Get vehicle's length including the minimum gap [m].
Definition at line 114 of file MSVehicleType.h.
References SUMOVTypeParameter::length, SUMOVTypeParameter::minGap, and myParameter.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeToNewLane(), MSLane::checkForPedestrians(), MSVehicle::checkRewindLinkLanes(), MSLaneChanger::computeOvertakingTime(), GUIEdge::drawMesoVehicles(), MSStoppingPlace::enter(), MSLane::enteredByLaneChange(), MSLane::executeMovements(), MSLaneChanger::getColumnleader(), MESegment::hasSpaceFor(), MSLane::incorporateVehicle(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSEdge::insertVehicle(), MESegment::isOpen(), MSLane::leftByLaneChange(), MESegment::loadState(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSVehicle::overlap(), MSLCM_LC2013::overtakeDistance(), MESegment::receive(), MSLaneChanger::ChangeElem::registerHop(), MSLaneChanger::registerUnchanged(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), MESegment::Queue::remove(), MSLane::removeVehicle(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MESegment::send(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
|
inline |
Get this vehicle type's loading duration.
Definition at line 303 of file MSVehicleType.h.
References SUMOVTypeParameter::loadingDuration, and myParameter.
Referenced by GUIVehicle::getTypeParameterWindow(), and MSTransportableControl::loadAnyWaiting().
|
inline |
Get vehicle's maximum speed [m/s].
Definition at line 158 of file MSVehicleType.h.
References SUMOVTypeParameter::maxSpeed, and myParameter.
Referenced by LIBSUMO_NAMESPACE::Person::appendWalkingStage(), GUIApplicationWindow::checkGamingEvents(), MSVehicle::checkReversal(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), MSCFModel::estimateSpeedAfterDistance(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSBaseVehicle::getMaxSpeed(), MSTransportable::getMaxSpeed(), MSPerson::MSPersonStage_Walking::getMaxSpeed(), MSVehicle::getMaxSpeedOnLane(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSVehicle::hasValidRouteStart(), MSVehicle::Influencer::implicitSpeedRemote(), MSCFModel::insertionStopSpeed(), MSCFModel::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MEVehicle::MEVehicle(), MSCFModel_Rail::MSCFModel_Rail(), MSVehicleType(), MSRouteHandler::myStartElement(), MSPModel_Striping::nextBlocking(), MSVehicle::Influencer::postProcessRemoteControl(), MSPerson::MSPersonStage_Access::proceed(), LIBSUMO_NAMESPACE::Person::rerouteTraveltime(), setMaxSpeed(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
inline |
Get vehicle's maximum lateral speed [m/s].
Definition at line 310 of file MSVehicleType.h.
References SUMOVTypeParameter::maxSpeedLat, and myParameter.
Referenced by MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::commitManoeuvre(), MSAbstractLaneChangeModel::computeSpeedLat(), MSLCM_SL2015::computeSpeedLat(), MSAbstractLaneChangeModel::estimateLCDuration(), MSAbstractLaneChangeModel::getAngleOffset(), MSLeaderInfo::getSubLanes(), GUIVehicle::getTypeParameterWindow(), MSAbstractLaneChangeModel::remainingTime(), setMaxSpeedLat(), and MSLaneChangerSublane::startChangeSublane().
|
inline |
Get the free space in front of vehicles of this class.
Definition at line 122 of file MSVehicleType.h.
References SUMOVTypeParameter::minGap, and myParameter.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_IDM::_v(), MSCFModel_CACC::_v(), MSLCM_SL2015::_wantsChangeSublane(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeaders(), MSLaneChanger::checkChange(), MSLane::checkFailure(), MSVehicle::checkRewindLinkLanes(), MSDevice_SSM::computeGlobalMeasures(), MSLaneChanger::computeOvertakingTime(), MSCFModel_W99::computeThresholds(), MSLane::detectCollisionBetween(), GUIBaseVehicle::drawOnPos(), MSParkingArea::enter(), MSStoppingPlace::enter(), MSCFModel_Rail::followSpeed(), MSCFModel_W99::followSpeed(), MSLane::freeInsertion(), MSVehicle::Influencer::gapControlSpeed(), MSLane::getCriticalLeader(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSParkingArea::getLastFreePos(), MSStoppingPlace::getLastFreePos(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLeader(), MSVehicle::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLane::getOppositeLeader(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSLink::getZipperSpeed(), MSLCM_SL2015::informLeaders(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSE2Collector::makeVehicleInfo(), MSLCM_DK2008::patchSpeed(), MSLane::safeInsertionSpeed(), MSAbstractLaneChangeModel::setFollowerGaps(), MSAbstractLaneChangeModel::setLeaderGaps(), setMinGap(), MSAbstractLaneChangeModel::setOrigLeaderGaps(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSCFModel_CACC::speedGapControl(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSFCDExport::write().
|
inline |
Get the minimum lateral gap that vehicles of this type maintain.
Definition at line 129 of file MSVehicleType.h.
References SUMOVTypeParameter::minGapLat, and myParameter.
Referenced by GUIVehicle::getTypeParameterWindow(), setMinGapLat(), and MSLCM_SL2015::updateGaps().
|
inline |
Returns the running index of the vehicle type.
Definition at line 98 of file MSVehicleType.h.
References myIndex.
Referenced by MSAmitranTrajectories::writeVehicle().
|
inline |
Returns the id of the original vehicle type if this is a vehicle specific type, the id otherwise.
Definition at line 552 of file MSVehicleType.h.
References getID(), and myOriginalType.
Referenced by MSDetectorFileOutput::vehicleApplies(), and MSTriggeredRerouter::vehicleApplies().
|
inline |
Get this vehicle type's 3D model file name.
Definition at line 265 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::osgFile.
|
inline |
Definition at line 557 of file MSVehicleType.h.
References myParameter.
Referenced by MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUIVehicle::drawAction_drawCarriageClass(), MSAbstractLaneChangeModel::estimateLCDuration(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSDevice_SSM::getDetectionRange(), getEntryManoeuvreTime(), getExitManoeuvreTime(), MSDevice_SSM::getExtraTime(), MSLink::getLeaderInfo(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSDevice::getStringParam(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSBaseVehicle::getVClass(), MSTriggeredRerouter::getWeight(), MSVehicle::ignoreRed(), MSVehicle::keepClear(), MSCFModel_ACC::MSCFModel_ACC(), MSCFModel_CACC::MSCFModel_CACC(), MSCFModel_IDM::MSCFModel_IDM(), MSCFModel_Kerner::MSCFModel_Kerner(), MSCFModel_PWag2009::MSCFModel_PWag2009(), MSCFModel_Rail::MSCFModel_Rail(), MSCFModel_W99::MSCFModel_W99(), MSCFModel_Wiedemann::MSCFModel_Wiedemann(), MSDevice_Bluelight::notifyMove(), MSCFModel_Krauss::patchSpeedBeforeLC(), MSVehicle::processNextStop(), MSAbstractLaneChangeModel::remainingTime(), MSDevice_SSM::requestsTrajectories(), and MSDevice_SSM::useGeoCoords().
|
inline |
Get this vehicle type's person capacity.
Definition at line 281 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::personCapacity.
Referenced by MSDevice_Taxi::buildVehicleDevices(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::getTypeParameterWindow(), and GUIMEVehicle::getTypeParameterWindow().
|
inline |
Get vehicle's preferred lateral alignment.
Definition at line 317 of file MSVehicleType.h.
References SUMOVTypeParameter::latAlignment, and myParameter.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), and GUIVehicle::getTypeParameterWindow().
|
inline |
Returns this type's speed factor.
Definition at line 206 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::speedFactor.
Referenced by LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), and MSEdge::validateDepartSpeed().
|
inline |
Get this vehicle type's vehicle class.
Definition at line 181 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::vehicleClass.
Referenced by MSLCM_LC2013::_wantsChange(), LIBSUMO_NAMESPACE::Vehicle::add(), MSBaseVehicle::addStop(), libsumo::Helper::applySubscriptionFilters(), MSBaseVehicle::calculateArrivalParams(), MSLaneChanger::change(), MSLaneChanger::changeOpposite(), MSVehicleTransfer::checkInsertions(), MSLCM_SL2015::checkStrategicChange(), MSRouteHandler::closeVehicle(), MSVehicle::executeMove(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSLaneChanger::getColumnleader(), MSEdge::getDepartLane(), LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance2D(), MSLink::getLeaderInfo(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSTransportable::getVClass(), MSBaseVehicle::hasValidRoute(), MSLaneChanger::mayChange(), MEVehicle::MEVehicle(), MSRouteHandler::openRoute(), MSStageTrip::setArrived(), MSLane::succLinkSec(), MSVehicle::updateBestLanes(), and MSLCM_SL2015::updateExpectedSublaneSpeeds().
|
inline |
Get the width which vehicles of this class shall have when being drawn.
Definition at line 243 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::width.
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSPModel_Striping::addCrossingVehs(), MSLaneChanger::checkChange(), MSLane::checkForPedestrians(), MSDevice_SSM::classifyEncounter(), GUIBaseVehicle::computeSeats(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), GUIContainer::drawAction_drawAsImage(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawOnPos(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), MSLane::getDepartPosLat(), MSLink::getLeaderInfo(), GUIVehicle::getLeftSideOnEdge(), MSPModel_Striping::getNextLaneObstacles(), MSVehicle::getRightSideOnEdge(), MSVehicle::getRightSideOnLane(), MSLeaderInfo::getSubLanes(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), MSPModel_Striping::getVehicleObstacles(), MSLCM_SL2015::getWidth(), MSBaseVehicle::getWidth(), MSLane::insertVehicle(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSPModel_Striping::nextBlocking(), MSDevice_Bluelight::notifyMove(), MSVehicle::Influencer::postProcessRemoteControl(), setWidth(), and MSLCM_SL2015::updateCFRelated().
|
protected |
init Rail Visualization Parameters
Definition at line 470 of file MSVehicleType.cpp.
References SUMOVTypeParameter::carriageGap, SUMOVTypeParameter::carriageLength, Parameterised::getParameter(), Parameterised::knowsParameter(), SUMOVTypeParameter::locomotiveLength, myParameter, SUMOVTypeParameter::shape, SVS_BUS_FLEXIBLE, SVS_RAIL, SVS_RAIL_CAR, SVS_RAIL_CARGO, SVS_TRUCK_1TRAILER, SVS_TRUCK_SEMITRAILER, StringUtils::toDouble(), VTYPEPARS_SHAPE_SET, and SUMOVTypeParameter::wasSet().
Referenced by build().
|
inline |
Returns whether this type belongs to a single vehicle only (was modified)
Definition at line 544 of file MSVehicleType.h.
References myOriginalType.
Referenced by MSBaseVehicle::getSingularType(), MSTransportable::getSingularType(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), setActionStepLength(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().
|
privatedelete |
Invalidated assignment operator.
void MSVehicleType::setAccel | ( | double | accel | ) |
Set a new value for this type's acceleration.
[in] | accel | The new acceleration of this type |
Definition at line 415 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, getCarFollowModel(), MSCFModel::getMaxAccel(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setMaxAccel(), SUMO_ATTR_ACCEL, and toString().
void MSVehicleType::setActionStepLength | ( | const SUMOTime | actionStepLength, |
bool | resetActionOffset | ||
) |
Set a new value for this type's action step length.
[in] | actionStepLength | The new action step length of this type (in ms.) |
[in] | resetActionOffset | If True (default), the next action point is scheduled immediately. if If resetActionOffset == False, the interval between the last and the next action point is updated to match the given value for all vehicles of this type, or if the latter is smaller than the time since the last action point, the next action follows immediately. |
Definition at line 204 of file MSVehicleType.cpp.
References SUMOVTypeParameter::actionStepLength, check(), MSNet::getInstance(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), isVehicleSpecific(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), myCachedActionStepLengthSecs, myParameter, SUMOVTypeParameter::parametersSet, MSVehicle::resetActionOffset(), STEPS2TIME, MSVehicle::updateActionOffset(), and VTYPEPARS_ACTIONSTEPLENGTH_SET.
Referenced by MSVehicle::setActionStepLength().
void MSVehicleType::setApparentDecel | ( | double | apparentDecel | ) |
Set a new value for this type's apparent deceleration.
[in] | apparentDecel | The new apparent deceleration of this type |
Definition at line 442 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, MSCFModel::getApparentDecel(), getCarFollowModel(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setApparentDecel(), SUMO_ATTR_APPARENTDECEL, and toString().
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 247 of file MSVehicleType.cpp.
References SUMOVTypeParameter::color, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_COLOR_SET.
void MSVehicleType::setDecel | ( | double | decel | ) |
Set a new value for this type's deceleration.
[in] | decel | The new deceleration of this type |
Definition at line 424 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, getCarFollowModel(), MSCFModel::getMaxDecel(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setMaxDecel(), SUMO_ATTR_DECEL, and toString().
Referenced by MSDevice_ToC::triggerMRM().
void MSVehicleType::setDefaultProbability | ( | const double & | 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 171 of file MSVehicleType.cpp.
References SUMOVTypeParameter::defaultProbability, getDefaultProbability(), myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_PROBABILITY_SET.
void MSVehicleType::setEmergencyDecel | ( | double | emergencyDecel | ) |
Set a new value for this type's emergency deceleration.
[in] | emergencyDecel | The new emergency deceleration of this type |
Definition at line 433 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, getCarFollowModel(), MSCFModel::getEmergencyDecel(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setEmergencyDecel(), SUMO_ATTR_EMERGENCYDECEL, and toString().
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 240 of file MSVehicleType.cpp.
References SUMOVTypeParameter::emissionClass, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_EMISSIONCLASS_SET.
void MSVehicleType::setHeight | ( | const double & | height | ) |
Set a new value for this type's height.
If the given value<0 then the one from the original type will be used.
[in] | height | The new height of this type |
Definition at line 103 of file MSVehicleType.cpp.
References getHeight(), SUMOVTypeParameter::height, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_HEIGHT_SET.
void MSVehicleType::setImpatience | ( | const double | impatience | ) |
Set a new value for this type's impatience.
[in] | impatience | The new impatience of this type |
Definition at line 264 of file MSVehicleType.cpp.
References getImpatience(), SUMOVTypeParameter::impatience, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_IMPATIENCE_SET.
void MSVehicleType::setImperfection | ( | double | imperfection | ) |
Set a new value for this type's imperfection.
[in] | imperfection | The new imperfection of this type |
Definition at line 451 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, getCarFollowModel(), MSCFModel::getImperfection(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setImperfection(), SUMO_ATTR_SIGMA, and toString().
void MSVehicleType::setLength | ( | const double & | 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 92 of file MSVehicleType.cpp.
References getLength(), SUMOVTypeParameter::length, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_LENGTH_SET.
Referenced by MSVehicle::joinTrainPart(), MSVehicle::joinTrainPartFront(), and MSVehicle::processNextStop().
void MSVehicleType::setMaxSpeed | ( | const double & | 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 136 of file MSVehicleType.cpp.
References getMaxSpeed(), SUMOVTypeParameter::maxSpeed, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MAXSPEED_SET.
void MSVehicleType::setMaxSpeedLat | ( | const double & | maxSpeedLat | ) |
Set a new value for this type's maximum lateral speed.
If the given value<0 then the one from the original type will be used.
[in] | maxSpeedLat | The new maximum lateral speed of this type |
Definition at line 147 of file MSVehicleType.cpp.
References getMaxSpeedLat(), SUMOVTypeParameter::maxSpeedLat, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MAXSPEED_LAT_SET.
void MSVehicleType::setMinGap | ( | const double & | 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 114 of file MSVehicleType.cpp.
References getMinGap(), SUMOVTypeParameter::minGap, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MINGAP_SET.
void MSVehicleType::setMinGapLat | ( | const double & | minGapLat | ) |
Set a new value for this type's minimum lataral gap.
If the given value<0 then the one from the original type will be used.
[in] | minGapLat | The new minimum lateral gap of this type |
Definition at line 125 of file MSVehicleType.cpp.
References getMinGapLat(), SUMOVTypeParameter::minGapLat, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MINGAP_LAT_SET.
void MSVehicleType::setPreferredLateralAlignment | ( | LateralAlignment | latAlignment | ) |
Set vehicle's preferred lateral alignment.
Definition at line 164 of file MSVehicleType.cpp.
References SUMOVTypeParameter::latAlignment, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_LATALIGNMENT_SET.
Referenced by MSDevice_Bluelight::notifyMove().
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 275 of file MSVehicleType.cpp.
References myParameter, SUMOVTypeParameter::parametersSet, SUMOVTypeParameter::shape, and VTYPEPARS_SHAPE_SET.
void MSVehicleType::setSpeedDeviation | ( | const double & | 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 193 of file MSVehicleType.cpp.
References Distribution_Parameterized::getParameter(), myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, SUMOVTypeParameter::speedFactor, and VTYPEPARS_SPEEDFACTOR_SET.
void MSVehicleType::setSpeedFactor | ( | const double & | 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 182 of file MSVehicleType.cpp.
References Distribution_Parameterized::getParameter(), myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, SUMOVTypeParameter::speedFactor, and VTYPEPARS_SPEEDFACTOR_SET.
void MSVehicleType::setTau | ( | double | tau | ) |
Set a new value for this type's headway.
[in] | tau | The new headway of this type |
Definition at line 460 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, getCarFollowModel(), MSCFModel::getHeadwayTime(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setHeadwayTime(), SUMO_ATTR_TAU, and toString().
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 158 of file MSVehicleType.cpp.
References myParameter, SUMOVTypeParameter::parametersSet, SUMOVTypeParameter::vehicleClass, and VTYPEPARS_VEHICLECLASS_SET.
void MSVehicleType::setWidth | ( | const double & | 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 254 of file MSVehicleType.cpp.
References getWidth(), myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, VTYPEPARS_WIDTH_SET, and SUMOVTypeParameter::width.
|
inline |
Returns whether the given parameter was set.
[in] | what | The parameter which one asks for |
Definition at line 79 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::parametersSet.
Referenced by MSAbstractLaneChangeModel::computeSpeedLat(), MSAbstractLaneChangeModel::estimateLCDuration(), MSAbstractLaneChangeModel::getAngleOffset(), MSCFModel_Rail::MSCFModel_Rail(), MSRouteHandler::myStartElement(), MSAbstractLaneChangeModel::remainingTime(), and GUIBaseVehicle::setFunctionalColor().
|
private |
the vtypes actionsStepLength in seconds (cached because needed very often)
Definition at line 576 of file MSVehicleType.h.
Referenced by getActionStepLengthSecs(), MSVehicleType(), and setActionStepLength().
|
private |
instance of the car following model.
Definition at line 587 of file MSVehicleType.h.
Referenced by build(), duplicateType(), getCarFollowModel(), setAccel(), setApparentDecel(), setDecel(), setEmergencyDecel(), setImperfection(), setTau(), and ~MSVehicleType().
|
private |
|
staticprivate |
next value for the running index
Definition at line 593 of file MSVehicleType.h.
|
private |
The original type.
Definition at line 590 of file MSVehicleType.h.
Referenced by duplicateType(), getOriginalID(), isVehicleSpecific(), setAccel(), setApparentDecel(), setDecel(), setDefaultProbability(), setEmergencyDecel(), setHeight(), setImpatience(), setImperfection(), setLength(), setMaxSpeed(), setMaxSpeedLat(), setMinGap(), setMinGapLat(), setSpeedDeviation(), setSpeedFactor(), setTau(), and setWidth().
|
private |
the parameter container
Definition at line 573 of file MSVehicleType.h.
Referenced by check(), computeChosenSpeedDeviation(), duplicateType(), getActionStepLength(), getBoardingDuration(), getColor(), getContainerCapacity(), getDefaultProbability(), getEmissionClass(), getGuiShape(), getHeight(), getID(), getImgFile(), getImpatience(), getLaneChangeModel(), getLength(), getLengthWithGap(), getLoadingDuration(), getMaxSpeed(), getMaxSpeedLat(), getMinGap(), getMinGapLat(), getOSGFile(), getParameter(), getPersonCapacity(), getPreferredLateralAlignment(), getSpeedFactor(), getVehicleClass(), getWidth(), initRailVisualizationParameters(), MSVehicleType(), setAccel(), setActionStepLength(), setApparentDecel(), setColor(), setDecel(), setDefaultProbability(), setEmergencyDecel(), setEmissionClass(), setHeight(), setImpatience(), setImperfection(), setLength(), setMaxSpeed(), setMaxSpeedLat(), setMinGap(), setMinGapLat(), setPreferredLateralAlignment(), setShape(), setSpeedDeviation(), setSpeedFactor(), setTau(), setVClass(), setWidth(), and wasSet().
|
private |
Definition at line 581 of file MSVehicleType.h.
Referenced by check().
|
private |
Indicator whether the user was already warned once about an action step length larger than the desired time headway.
Definition at line 580 of file MSVehicleType.h.
Referenced by check().