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.) | |
const EnergyParams * | getEmissionParameters () const |
retrieve parameters for the energy consumption model | |
const std::string & | getOriginalID () const |
Returns the id of the original vehicle type if this is a vehicle specific type, the id otherwise. | |
const SUMOVTypeParameter & | getParameter () const |
bool | isVehicleSpecific () const |
Returns whether this type belongs to a single vehicle only (was modified) | |
MSVehicleType (const SUMOVTypeParameter ¶meter) | |
Constructor. | |
bool | wasSet (long long int what) const |
Returns whether the given parameter was set. | |
virtual | ~MSVehicleType () |
Destructor. | |
Atomar getter for simulation | |
const std::string & | getID () const |
Returns the name of the vehicle type. | |
int | getNumericalID () const |
Returns the running index of the vehicle type. | |
double | getLength () const |
Get vehicle's length [m]. | |
double | getLengthWithGap () const |
Get vehicle's length including the minimum gap [m]. | |
double | getMinGap () const |
Get the free space in front of vehicles of this class. | |
double | getMinGapLat () const |
Get the minimum lateral gap that vehicles of this type maintain. | |
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) | |
LaneChangeModel | getLaneChangeModel () const |
double | getMaxSpeed () const |
Get vehicle's (technical) maximum speed [m/s]. | |
double | getDesiredMaxSpeed () const |
Returns the vehicles's desired maximum speed. | |
double | computeChosenSpeedDeviation (SumoRNG *rng, const double minDev=-1.) const |
Computes and returns the speed deviation. | |
double | 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. | |
double | getMass () const |
Get this vehicle type's mass. | |
const RGBColor & | getColor () const |
Returns this type's color. | |
const std::vector< std::string > & | getParkingBadges () const |
Returns the parking access rights of this type. | |
const Distribution_Parameterized & | getSpeedFactor () const |
Returns this type's speed factor. | |
SUMOTime | getActionStepLength () const |
Returns this type's default action step length. | |
double | getActionStepLengthSecs () const |
Returns this type's default action step length in seconds. | |
double | getImpatience () const |
Returns this type's impatience. | |
Atomar getter for visualization | |
double | getWidth () const |
Get the width which vehicles of this class shall have when being drawn. | |
double | getSeatingWidth () const |
Get the width of the passenger compartment when being drawn. | |
double | getHeight () const |
Get the height which vehicles of this class shall have when being drawn. | |
SUMOVehicleShape | getGuiShape () const |
Get this vehicle type's shape. | |
std::string | getOSGFile () const |
Get this vehicle type's 3D model file name. | |
std::string | getImgFile () const |
Get this vehicle type's raster model file name. | |
int | getPersonCapacity () const |
Get this vehicle type's person capacity. | |
int | getContainerCapacity () const |
Get this vehicle type's container capacity. | |
SUMOTime | getLoadingDuration (const bool isPerson) const |
Get this vehicle type's loading duration. | |
SUMOTime | getBoardingDuration (const bool isPerson) const |
Get this vehicle type's boarding duration. | |
double | getBoardingFactor () const |
Get this person type's factor for loading/boarding duration. | |
double | getMaxSpeedLat () const |
Get vehicle's maximum lateral speed [m/s]. | |
const LatAlignmentDefinition & | getPreferredLateralAlignment () const |
Get vehicle's preferred lateral alignment procedure. | |
double | getPreferredLateralAlignmentOffset () const |
Get vehicle's preferred lateral alignment offset (in m from center line) | |
double | getFrontSeatPos () const |
Get offset of first seat from vehicle front. | |
Setter methods | |
void | setAccel (double accel) |
Set a new value for this type's acceleration. | |
void | setDecel (double decel) |
Set a new value for this type's deceleration. | |
void | setEmergencyDecel (double emergencyDecel) |
Set a new value for this type's emergency deceleration. | |
void | setApparentDecel (double apparentDecel) |
Set a new value for this type's apparent deceleration. | |
void | setImperfection (double imperfection) |
Set a new value for this type's imperfection. | |
void | setTau (double tau) |
Set a new value for this type's headway. | |
void | setLength (const double &length) |
Set a new value for this type's length. | |
void | setHeight (const double &height) |
Set a new value for this type's height. | |
void | setMinGap (const double &minGap) |
Set a new value for this type's minimum gap. | |
void | setMinGapLat (const double &minGapLat) |
Set a new value for this type's minimum lataral gap. | |
void | setMaxSpeed (const double &maxSpeed) |
Set a new value for this type's maximum speed. | |
void | setMaxSpeedLat (const double &maxSpeedLat) |
Set a new value for this type's maximum lateral speed. | |
void | setVClass (SUMOVehicleClass vclass) |
Set a new value for this type's vehicle class. | |
void | setDefaultProbability (const double &prob) |
Set a new value for this type's default probability. | |
void | setSpeedFactor (const double &factor) |
Set a new value for this type's speed factor. | |
void | setSpeedDeviation (const double &dev) |
Set a new value for this type's speed deviation. | |
void | setActionStepLength (const SUMOTime actionStepLength, bool resetActionOffset) |
Set a new value for this type's action step length. | |
void | setEmissionClass (SUMOEmissionClass eclass) |
Set a new value for this type's emission class. | |
void | setMass (double mass) |
Set a new value for this type's mass. | |
void | setColor (const RGBColor &color) |
Set a new value for this type's color. | |
void | setParkingBadges (const std::vector< std::string > &badges) |
Set a new value for parking access rights of this type. | |
void | setWidth (const double &width) |
Set a new value for this type's width. | |
void | setShape (SUMOVehicleShape shape) |
Set a new value for this type's shape. | |
void | setBoardingDuration (SUMOTime duration, bool isPerson=true) |
Set a new value for this type's boardingDuration. | |
void | setImpatience (const double impatience) |
Set a new value for this type's impatience. | |
void | setPreferredLateralAlignment (const LatAlignmentDefinition &latAlignment, double latAlignmentOffset=0.0) |
Set vehicle's preferred lateral alignment. | |
void | setScale (double value) |
Set traffic scaling factor. | |
Private Member Functions | |
MSVehicleType (const MSVehicleType &)=delete | |
Invalidated copy constructor. | |
MSVehicleType & | operator= (const MSVehicleType &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
double | myCachedActionStepLengthSecs |
the vtypes actionsStepLength in seconds (cached because needed very often) | |
MSCFModel * | myCarFollowModel |
instance of the car following model. | |
const EnergyParams | myEnergyParams |
const int | myIndex |
the running index | |
const MSVehicleType * | myOriginalType |
The original type. | |
SUMOVTypeParameter | myParameter |
the parameter container | |
bool | myWarnedActionStepLengthBallisticOnce |
bool | myWarnedActionStepLengthTauOnce |
Indicator whether the user was already warned once about an action step length larger than the desired time headway. | |
bool | myWarnedStepLengthTauOnce |
Static Private Attributes | |
static int | myNextIndex = 0 |
next value for the running index | |
methods for building vehicle types | |
SUMOTime | getEntryManoeuvreTime (const int angle) const |
Accessor function for parameter equivalent returning entry time for a specific manoeuver angle. | |
SUMOTime | getExitManoeuvreTime (const int angle) const |
Accessor function for parameter equivalent returning exit time for a specific manoeuver angle. | |
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. | |
MSVehicleType * | duplicateType (const std::string &id, bool persistent) const |
Duplicates the microsim vehicle type giving the newly created type the given id. | |
static MSVehicleType * | build (SUMOVTypeParameter &from) |
Builds the microsim vehicle type described by the given parameter. | |
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 63 of file MSVehicleType.h.
MSVehicleType::MSVehicleType | ( | const SUMOVTypeParameter & | parameter | ) |
Constructor.
[in] | parameter | The vehicle type's parameter |
Definition at line 63 of file MSVehicleType.cpp.
References SUMOVTypeParameter::actionStepLength, MSGlobals::gActionStepLength, getLength(), getMaxSpeed(), myCachedActionStepLengthSecs, myParameter, STEPS2TIME, VTYPEPARS_ACTIONSTEPLENGTH_SET, and SUMOVTypeParameter::wasSet().
|
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 320 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfModel, MSGlobals::gDefaultEmergencyDecel, SUMOVTypeParameter::getCFParam(), SUMOVTypeParameter::getDefaultDecel(), SUMOVTypeParameter::getDefaultEmergencyDecel(), Parameterised::getDouble(), Parameterised::hasParameter(), SUMOVTypeParameter::id, SUMOVTypeParameter::initRailVisualizationParameters(), SUMOVTypeParameter::mass, myCarFollowModel, myParameter, SUMOVTypeParameter::parametersSet, 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_EIDM, 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, TL, toString(), SUMOVTypeParameter::vehicleClass, VTYPEPARS_MASS_SET, SUMOVTypeParameter::wasSet(), and WRITE_WARNINGF.
Referenced by MSRouteHandler::closeVType(), and MSVehicleControl::initDefaultTypes().
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 413 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 434 of file MSVehicleType.cpp.
References SUMOVTypeParameter::actionStepLength, DELTA_T, SUMOVTypeParameter::emissionClass, OptionsCont::getBool(), getCarFollowModel(), PollutantsInterface::getClassByName(), Parameterised::getDouble(), OptionsCont::getFloat(), MSCFModel::getHeadwayTime(), getID(), OptionsCont::getOptions(), Parameterised::getParameter(), getVehicleClass(), MSGlobals::gSemiImplicitEulerUpdate, MSGlobals::gUseMesoSim, myParameter, myWarnedActionStepLengthBallisticOnce, myWarnedActionStepLengthTauOnce, myWarnedStepLengthTauOnce, SUMOVTypeParameter::parametersSet, parseVehicleClasses(), STEPS2TIME, SVC_PEDESTRIAN, TL, StringUtils::toBool(), toString(), TS, VTYPEPARS_EMISSIONCLASS_SET, SUMOVTypeParameter::wasSet(), WRITE_MESSAGEF, WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSRouteHandler::closeVType(), MSVehicleControl::getVType(), and setActionStepLength().
double MSVehicleType::computeChosenSpeedDeviation | ( | SumoRNG * | rng, |
const double | minDev = -1. |
||
) | const |
Computes and returns the speed deviation.
Definition at line 89 of file MSVehicleType.cpp.
References gPrecisionRandom, MAX2(), myParameter, roundDecimal(), Distribution_Parameterized::sample(), and SUMOVTypeParameter::speedFactor.
Referenced by GUITransportableControl::buildPerson(), MSTransportableControl::buildPerson(), MSVehicleControl::buildVehicle(), GUIVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), MEVehicleControl::buildVehicle(), MSBaseVehicle::replaceVehicleType(), 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 419 of file MSVehicleType.cpp.
References MSCFModel::duplicate(), getID(), MSNet::getInstance(), SUMOVTypeParameter::id, myCarFollowModel, myOriginalType, and myParameter.
Referenced by buildSingularType().
|
inline |
Returns this type's default action step length.
Definition at line 238 of file MSVehicleType.h.
References SUMOVTypeParameter::actionStepLength, and myParameter.
Referenced by MSVehicle::getActionStepLength(), and MSCFModel_EIDM::MSCFModel_EIDM().
|
inline |
Returns this type's default action step length in seconds.
Definition at line 246 of file MSVehicleType.h.
References myCachedActionStepLengthSecs.
Referenced by MSVehicle::getActionStepLengthSecs(), and GUIVehicle::getTypeParameterWindow().
|
inline |
Get this vehicle type's boarding duration.
Definition at line 334 of file MSVehicleType.h.
References SUMOVTypeParameter::boardingDuration, SUMOVTypeParameter::loadingDuration, and myParameter.
Referenced by setBoardingDuration().
|
inline |
Get this person type's factor for loading/boarding duration.
Definition at line 341 of file MSVehicleType.h.
References SUMOVTypeParameter::boardingFactor, and myParameter.
Referenced by MSTransportableControl::loadAnyWaiting(), and MSDevice_Transportable::notifyMove().
|
inline |
Returns the vehicle type's car following model definition (non-const version)
Definition at line 146 of file MSVehicleType.h.
References myCarFollowModel.
|
inline |
Returns the vehicle type's car following model definition (const version)
Definition at line 138 of file MSVehicleType.h.
References myCarFollowModel.
Referenced by MSLink::blockedAtTime(), MSLink::blockedByFoe(), check(), MSLink::computeFoeArrivalTimeBraking(), MSRailSignal::constraintsAllow(), MSDriveWay::foeDriveWayOccupied(), MSVehicle::Influencer::gapControlSpeed(), MSVehicle::getCarFollowModel(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), MESegment::isOpen(), MSVehicle::MSVehicle(), MSDevice_Bluelight::notifyMove(), LIBSUMO_NAMESPACE::Vehicle::openGap(), MSVehicle::processTraCISpeedControl(), MESegment::receive(), MSCalibrator::remainingVehicleCapacity(), MSVehicle::replaceVehicleType(), MESegment::send(), 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 214 of file MSVehicleType.h.
References SUMOVTypeParameter::color, and myParameter.
Referenced by MSDevice_ToC::initColorScheme(), GUIBaseVehicle::setFunctionalColor(), GUIPerson::setFunctionalColor(), and MSDevice_ToC::setParameter().
|
inline |
Get this vehicle type's container capacity.
Definition at line 320 of file MSVehicleType.h.
References SUMOVTypeParameter::containerCapacity, and myParameter.
Referenced by MSDevice_Taxi::buildVehicleDevices(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSIdling_Stop::idle(), MSIdling_TaxiStand::idle(), and MSDispatch::remainingCapacity().
|
inline |
Get the default probability of this vehicle type.
Definition at line 180 of file MSVehicleType.h.
References SUMOVTypeParameter::defaultProbability, and myParameter.
Referenced by MSRouteHandler::closeVType(), MSRouteHandler::openVehicleTypeDistribution(), and setDefaultProbability().
|
inline |
Returns the vehicles's desired maximum speed.
Definition at line 166 of file MSVehicleType.h.
References SUMOVTypeParameter::desiredMaxSpeed, and myParameter.
Referenced by LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSBaseVehicle::getMaxSpeed(), GUIPerson::getTypeParameterWindow(), and MSEdge::validateDepartSpeed().
|
inline |
Get this vehicle type's emission class.
Definition at line 198 of file MSVehicleType.h.
References SUMOVTypeParameter::emissionClass, and myParameter.
Referenced by MSDevice_StationFinder::estimateConsumption(), MSBaseVehicle::getEmissions(), MSBaseVehicle::getHarmonoise_NoiseEmissions(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSDevice_Battery::MSDevice_Battery(), MSDevice_Emissions::notifyIdle(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyIdle(), MSDevice_Battery::notifyMove(), 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().
|
inline |
retrieve parameters for the energy consumption model
Definition at line 641 of file MSVehicleType.h.
References myEnergyParams.
Referenced by MSBaseVehicle::replaceVehicleType(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
SUMOTime MSVehicleType::getEntryManoeuvreTime | ( | const int | angle | ) | const |
Accessor function for parameter equivalent returning entry time for a specific manoeuver angle.
Definition at line 403 of file MSVehicleType.cpp.
References getEntryManoeuvreTime(), and getParameter().
Referenced by MSVehicle::Manoeuvre::configureEntryManoeuvre(), and getEntryManoeuvreTime().
SUMOTime MSVehicleType::getExitManoeuvreTime | ( | const int | angle | ) | const |
Accessor function for parameter equivalent returning exit time for a specific manoeuver angle.
Definition at line 408 of file MSVehicleType.cpp.
References getExitManoeuvreTime(), and getParameter().
Referenced by MSVehicle::Manoeuvre::configureExitManoeuvre(), and getExitManoeuvreTime().
|
inline |
Get offset of first seat from vehicle front.
Definition at line 368 of file MSVehicleType.h.
References SUMOVTypeParameter::frontSeatPos, and myParameter.
Referenced by GUIBaseVehicle::computeSeats().
|
inline |
Get this vehicle type's shape.
Definition at line 289 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::shape.
Referenced by MSLane::detectCollisions(), GUIVehicle::drawAction_drawCarriageClass(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), and GUIBaseVehicle::setFunctionalColor().
|
inline |
Get the height which vehicles of this class shall have when being drawn.
Definition at line 281 of file MSVehicleType.h.
References SUMOVTypeParameter::height, and myParameter.
Referenced by GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), and setHeight().
|
inline |
Returns the name of the vehicle type.
Definition at line 91 of file MSVehicleType.h.
References SUMOVTypeParameter::id, and myParameter.
Referenced by MSChargingStation::addChargeValueForOutput(), MSOverheadWire::addChargeValueForOutput(), MSVehicleControl::addVType(), libsumo::Helper::applySubscriptionFilters(), MSDevice_Taxi::buildVehicleDevices(), check(), MSRouteHandler::closeTransportable(), 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(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSStageTrip::getVehicles(), MSBaseVehicle::hasValidRouteStart(), MSVehicle::hasValidRouteStart(), MSLink::ignoreFoe(), MSVehicle::ignoreFoe(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE2Collector::makeVehicleInfo(), MSCFModel_EIDM::MSCFModel_EIDM(), MSCFModel_Krauss::MSCFModel_Krauss(), MSCFModel_Rail::MSCFModel_Rail(), MSDevice_ToC::MSDevice_ToC(), MSDevice_Bluelight::notifyMove(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_Vehicle::processSet(), MSNet::registerCollision(), MSVehicleControl::removeVType(), MSTransportable::replaceVehicleType(), MSTransportable::routeOutput(), MSBaseVehicle::saveState(), MSTransportable::saveState(), setScale(), MSStageDriving::setVehicle(), MSStopOut::stopEnded(), MSDevice_ToC::switchHolderType(), MSTransportable::tripInfoOutput(), MSInstantInductLoop::write(), MSFCDExport::write(), MSEmissionExport::write(), MSDevice_Vehroutes::writeOutput(), MSFCDExport::writeTransportable(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
inline |
Get this vehicle type's raster model file name.
Definition at line 304 of file MSVehicleType.h.
References SUMOVTypeParameter::imgFile, and myParameter.
Referenced by GUIContainer::drawAction_drawAsImage(), and GUIVehicle::drawAction_drawCarriageClass().
|
inline |
Returns this type's impatience.
Definition at line 254 of file MSVehicleType.h.
References SUMOVTypeParameter::impatience, and myParameter.
|
inline |
Definition at line 151 of file MSVehicleType.h.
References SUMOVTypeParameter::lcModel, and myParameter.
Referenced by MSVehicle::initDevices().
|
inline |
Get vehicle's length [m].
Definition at line 107 of file MSVehicleType.h.
References SUMOVTypeParameter::length, and myParameter.
Referenced by MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::adaptToLeaders(), MSPModel_Striping::addCrossingVehs(), MSBaseVehicle::addStop(), libsumo::Helper::applySubscriptionFilterLateralDistance(), MSLaneChanger::changeOpposite(), MSLaneChangerSublane::checkChangeOpposite(), MSLane::checkForPedestrians(), MSVehicle::checkRewindLinkLanes(), MSLink::checkWalkingAreaFoe(), MSVehicle::computeFurtherLanes(), MSLaneChanger::computeOvertakingTime(), MSTrainHelper::computeTrainDimensions(), MSLane::detectCollisions(), GUIContainer::drawAction_drawAsImage(), GUIBaseVehicle::drawOnPos(), MSParkingArea::enter(), MSLane::enteredByLaneChange(), MSVehicle::enterLaneAtLaneChange(), MSDevice_SSM::estimateConflictTimes(), MSVehicle::estimateTimeToNextStop(), MSPModel_JuPedSim::execute(), MSLane::executeMovements(), MSStoppingPlace::fits(), MSLane::freeInsertion(), MSVehicle::getBackPosition(), MEVehicle::getBackPositionOnLane(), MSTransportable::getBackPositionOnLane(), MSVehicle::getBackPositionOnLane(), MSTransportable::getBoundingBox(), MSLane::getBruttoOccupancy(), GUIBaseVehicle::getCenteringBoundary(), MSLane::getCriticalLeader(), MSEdge::getDepartPosBound(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSStoppingPlace::getLastFreePos(), MSParkingArea::getLastFreePosWithReservation(), MSLink::getLeaderInfo(), MSLane::getLeadersOnConsecutive(), MSBaseVehicle::getLength(), MSLCM_SL2015::getLongest(), MSLane::getNettoOccupancy(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSVehicle::getPositionOnLane(), MSPModel_JuPedSim::getRadius(), MSLaneChanger::getRealFollower(), MSCFModel_Wiedemann::getSecureGap(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSPModel_Striping::getVehicleObstacles(), GUIVehicle::getVisualAngle(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), MSVehicle::handleCollisionStop(), MSLane::handleIntermodalCollisionBetween(), MSLane::incorporateVehicle(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSLane::isInsertionSuccess(), MSVehicle::joinTrainPart(), MSVehicle::joinTrainPartFront(), MSLCM_SL2015::keepLatGap(), MSLane::leftByLaneChange(), MSE2Collector::makeVehicleInfo(), MSStageWalking::moveToNextEdge(), MSCFModel_Rail::MSCFModel_Rail(), MSVehicleType(), MSLCM_SL2015::mustOvertakeStopped(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE2Collector::notifyMove(), MSInductLoop::notifyMove(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_StationFinder::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSE2Collector::notifyMovePerson(), MSInductLoop::notifyMovePerson(), MSE3Collector::notifyMovePerson(), MSLCM_LC2013::overtakeDistance(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessRemoteControl(), MSDevice_Taxi::prepareStop(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSLane::removeVehicle(), GUIVehicle::selectBlockingFoes(), MSLink::setApproaching(), MSStageDriving::setArrived(), setLength(), MSVehicle::setTentativeLaneAndPosition(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSInstantInductLoop::write(), and MSQueueExport::writeLane().
|
inline |
Get vehicle's length including the minimum gap [m].
Definition at line 115 of file MSVehicleType.h.
References SUMOVTypeParameter::length, SUMOVTypeParameter::minGap, and myParameter.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::adaptToLeaders(), MSLaneChanger::avoidDeadlock(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeToNewLane(), MSLane::checkForPedestrians(), MSVehicle::checkRewindLinkLanes(), MSLaneChanger::computeOvertakingTime(), GUIEdge::drawMesoVehicles(), MSStoppingPlace::enter(), MSLane::enteredByLaneChange(), MSLane::executeMovements(), GUIMEVehicle::getCenteringBoundary(), MSLaneChanger::getColumnleader(), MSLane::getFollowersOnConsecutive(), MSLaneChanger::getOncomingOppositeVehicle(), MESegment::hasSpaceFor(), MSLane::incorporateVehicle(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_LC2013::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(), MSLaneChanger::resolveDeadlock(), MESegment::send(), MSLCHelper::updateBlockerLength(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSLaneChanger::yieldToDeadlockOncoming().
|
inline |
Get this vehicle type's loading duration.
Definition at line 327 of file MSVehicleType.h.
References SUMOVTypeParameter::boardingDuration, SUMOVTypeParameter::loadingDuration, and myParameter.
Referenced by GUIVehicle::getTypeParameterWindow(), MSTransportableControl::loadAnyWaiting(), and MSDevice_Transportable::notifyMove().
|
inline |
Get this vehicle type's mass.
Definition at line 206 of file MSVehicleType.h.
References SUMOVTypeParameter::mass, and myParameter.
Referenced by GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), and MSCFModel_Rail::MSCFModel_Rail().
|
inline |
Get vehicle's (technical) maximum speed [m/s].
Definition at line 159 of file MSVehicleType.h.
References SUMOVTypeParameter::maxSpeed, and myParameter.
Referenced by MSRouteHandler::addTranship(), MSCFModel::estimateSpeedAfterDistance(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSBaseVehicle::getMaxSpeed(), MSVehicle::getMaxSpeedOnLane(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSBaseVehicle::hasValidRouteStart(), MSVehicle::hasValidRouteStart(), MSCFModel::insertionStopSpeed(), MSCFModel_EIDM::insertionStopSpeed(), MSCFModel::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_Rail::MSCFModel_Rail(), MSVehicleType(), setMaxSpeed(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
inline |
Get vehicle's maximum lateral speed [m/s].
Definition at line 349 of file MSVehicleType.h.
References SUMOVTypeParameter::maxSpeedLat, and myParameter.
Referenced by MSLaneChanger::checkOppositeStop(), MSLCM_SL2015::commitManoeuvre(), MSLaneChanger::computeOvertakingTime(), MSAbstractLaneChangeModel::computeSpeedLat(), MSLCM_SL2015::computeSpeedLat(), MSAbstractLaneChangeModel::estimateLCDuration(), MSAbstractLaneChangeModel::getMaxSpeedLat2(), MSLeaderInfo::getSubLanes(), GUIVehicle::getTypeParameterWindow(), MSLCM_LC2013::prepareStep(), MSAbstractLaneChangeModel::remainingTime(), setMaxSpeedLat(), and MSLaneChangerSublane::startChangeSublane().
|
inline |
Get the free space in front of vehicles of this class.
Definition at line 123 of file MSVehicleType.h.
References SUMOVTypeParameter::minGap, and myParameter.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_EIDM::_v(), MSCFModel_IDM::_v(), MSLCM_SL2015::_wantsChangeSublane(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeaders(), MSLane::addLeaders(), MSLaneChangerSublane::addOutsideLeaders(), MSLaneChanger::avoidDeadlock(), MSLaneChanger::changeOpposite(), MSLaneChanger::checkChange(), MSLane::checkFailure(), MSVehicle::checkRewindLinkLanes(), MSLink::checkWalkingAreaFoe(), 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(), LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes(), MSParkingArea::getLastFreePos(), MSStoppingPlace::getLastFreePos(), MSParkingArea::getLastFreePosWithReservation(), MSDevice_StationFinder::getLastStepStoppingPlaceOccupancy(), MSLane::getLeader(), MSVehicle::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLane::getOppositeLeader(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), MSDevice_StationFinder::getStoppingPlaceCapacity(), MSDevice_StationFinder::getStoppingPlaceOccupancy(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSLink::getZipperSpeed(), MSLCM_SL2015::informLeaders(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MSLane::lastInsertion(), MSE2Collector::makeVehicleInfo(), MSDevice_Bluelight::notifyMove(), MSLCM_DK2008::patchSpeed(), MSCFModel_EIDM::patchSpeedBeforeLCEIDM(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSLaneChanger::resolveDeadlock(), MSLane::safeInsertionSpeed(), MSAbstractLaneChangeModel::setFollowerGaps(), MSAbstractLaneChangeModel::setLeaderGaps(), MSAbstractLaneChangeModel::setLeaderGaps(), setMinGap(), MSAbstractLaneChangeModel::setOrigLeaderGaps(), MSAbstractLaneChangeModel::setOrigLeaderGaps(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), 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 130 of file MSVehicleType.h.
References SUMOVTypeParameter::minGapLat, and myParameter.
Referenced by MSLaneChangerSublane::findClosestLeader(), GUIVehicle::getTypeParameterWindow(), MSDevice_Bluelight::notifyMove(), and setMinGapLat().
|
inline |
Returns the running index of the vehicle type.
Definition at line 99 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 625 of file MSVehicleType.h.
References getID(), and myOriginalType.
Referenced by MSTriggeredRerouter::applies(), and MSDetectorFileOutput::vehicleApplies().
|
inline |
Get this vehicle type's 3D model file name.
Definition at line 296 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::osgFile.
|
inline |
Definition at line 630 of file MSVehicleType.h.
References myParameter.
Referenced by MSRouteHandler::addFlowTransportable(), MSRouteHandler::addStop(), MSVehicle::betterContinuation(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeVehicle(), MSTrainHelper::computeCarriages(), MSTrainHelper::computeTrainDimensions(), MSInsertionControl::determineCandidates(), MSAbstractLaneChangeModel::estimateLCDuration(), MSDevice_StationFinder::evaluateCustomComponents(), MSLane::executeMovements(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSDevice_StationFinder::freeSpaceAtChargingStation(), MSDevice_SSM::getDetectionRange(), getEntryManoeuvreTime(), getExitManoeuvreTime(), MSDevice_SSM::getExtraTime(), MSLink::getLeaderInfo(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSCFModel_Rail::getValueTable(), MSBaseVehicle::getVClass(), MSBaseVehicle::getVTypeParameter(), MSTransportable::getVTypeParameter(), MSStoppingPlaceRerouter::getWeight(), MSVehicle::ignoreRed(), MSInsertionControl::initScale(), MSLane::isInsertionSuccess(), MSVehicle::keepClear(), MSCFModel_ACC::MSCFModel_ACC(), MSCFModel_CACC::MSCFModel_CACC(), MSCFModel_EIDM::MSCFModel_EIDM(), 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_Battery::MSDevice_Battery(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_GLOSA::notifyMove(), MSLink::opened(), MSRouteHandler::parseFromViaTo(), MSCFModel_Krauss::patchSpeedBeforeLC(), MSVehicle::planMoveInternal(), MSStageDriving::proceed(), MSVehicle::processNextStop(), MSDevice_Battery::readParameterValue(), MSAbstractLaneChangeModel::remainingTime(), MSTransportable::replaceVehicleType(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSDevice_SSM::writeLanesPositions(), and MSDevice_SSM::writePositions().
|
inline |
Returns the parking access rights of this type.
Definition at line 222 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::parkingBadges.
Referenced by MSBaseVehicle::getParkingBadges().
|
inline |
Get this vehicle type's person capacity.
Definition at line 312 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::personCapacity.
Referenced by MSDevice_Taxi::buildVehicleDevices(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MEVehicle::mayProceed(), and MSDispatch::remainingCapacity().
|
inline |
Get vehicle's preferred lateral alignment procedure.
Definition at line 356 of file MSVehicleType.h.
References SUMOVTypeParameter::latAlignmentProcedure, and myParameter.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSAbstractLaneChangeModel::getDesiredAlignment(), and GUIVehicle::getDynamicAlignment().
|
inline |
Get vehicle's preferred lateral alignment offset (in m from center line)
Definition at line 363 of file MSVehicleType.h.
References SUMOVTypeParameter::latAlignmentOffset, and myParameter.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), and GUIVehicle::getDynamicAlignment().
|
inline |
Get the width of the passenger compartment when being drawn.
Definition at line 274 of file MSVehicleType.h.
References myParameter, SUMOVTypeParameter::seatingWidth, and SUMOVTypeParameter::width.
Referenced by GUIBaseVehicle::computeSeats().
|
inline |
Returns this type's speed factor.
Definition at line 230 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::speedFactor.
Referenced by LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSBaseVehicle::replaceVehicleType(), and MSEdge::validateDepartSpeed().
|
inline |
Get this vehicle type's vehicle class.
Definition at line 189 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::vehicleClass.
Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::addPersonTrip(), MSBaseVehicle::addStop(), libsumo::Helper::applySubscriptionFilters(), MSAbstractLaneChangeModel::avoidOvertakeRight(), MSBaseVehicle::calculateArrivalParams(), MSLaneChanger::change(), MSLaneChanger::changeOpposite(), check(), MSVehicleTransfer::checkInsertions(), MSDevice_FCDReplay::FCDHandler::checkRoute(), MSRouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeVehicle(), MSVehicle::executeMove(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSLaneChanger::getColumnleader(), MSEdge::getDepartLane(), MSEdge::getDepartLaneMeso(), LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance2D(), MSLink::getLeaderInfo(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSTransportable::getVClass(), MSStageTrip::getVehicles(), MSBaseVehicle::hasValidRoute(), MSLCM_SL2015::preventSliding(), MSTransportable::replaceVehicleType(), 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 267 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::width.
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSPModel_Striping::addCrossingVehs(), MSVehicle::brakeForOverlap(), MSLaneChanger::checkChange(), MSLane::checkForPedestrians(), MSDevice_SSM::classifyEncounter(), MSTrainHelper::computeTrainDimensions(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), GUIContainer::drawAction_drawAsImage(), GUIBaseVehicle::drawOnPos(), MSVehicle::enterLaneAtMove(), MSLaneChangerSublane::findClosestLeader(), MEVehicle::getBoundingBox(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), MSLane::getDepartPosLat(), MSLink::getLeaderInfo(), GUIVehicle::getLeftSideOnEdge(), MSVehicle::getLeftSideOnEdge(), MSVehicle::getLeftSideOnLane(), MSVehicle::getLeftSideOnLane(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_JuPedSim::getRadius(), MEVehicle::getRightSideOnEdge(), MSVehicle::getRightSideOnEdge(), MSVehicle::getRightSideOnLane(), MSVehicle::getRightSideOnLane(), MSLane::getSpaceTillLastStanding(), MSLeaderInfo::getSubLanes(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), MSPModel_Striping::getVehicleObstacles(), MSLCM_SL2015::getWidth(), MSBaseVehicle::getWidth(), MSLane::insertVehicle(), MSLink::isInFront(), MSPModel_Striping::moveInDirection(), LIBSUMO_NAMESPACE::Person::moveTo(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSPModel_Striping::MSPModel_Striping(), MSDevice_Bluelight::notifyMove(), MSLink::opened(), MSVehicle::Influencer::postProcessRemoteControl(), MSStageDriving::setArrived(), setWidth(), and MSLCM_SL2015::updateCFRelated().
|
inline |
Returns whether this type belongs to a single vehicle only (was modified)
Definition at line 617 of file MSVehicleType.h.
References myOriginalType.
Referenced by MSBaseVehicle::getSingularType(), MSTransportable::getSingularType(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSBaseVehicle::saveState(), 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 485 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 216 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 512 of file MSVehicleType.cpp.
References SUMOVTypeParameter::cfParameter, MSCFModel::getApparentDecel(), getCarFollowModel(), myCarFollowModel, myOriginalType, myParameter, MSCFModel::setApparentDecel(), SUMO_ATTR_APPARENTDECEL, and toString().
void MSVehicleType::setBoardingDuration | ( | SUMOTime | duration, |
bool | isPerson = true |
||
) |
Set a new value for this type's boardingDuration.
[in] | boardingDuration | The new boardingDuration of this type |
[in] | isPerson | Whether to set boardingDuration or loadingDuration |
Definition at line 297 of file MSVehicleType.cpp.
References SUMOVTypeParameter::boardingDuration, getBoardingDuration(), SUMOVTypeParameter::loadingDuration, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_BOARDING_DURATION.
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 266 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 494 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 183 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 503 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 252 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 107 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 290 of file MSVehicleType.cpp.
References SUMOVTypeParameter::impatience, 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 521 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 96 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::setMass | ( | double | mass | ) |
Set a new value for this type's mass.
[in] | mass | The new mass of this type |
Definition at line 259 of file MSVehicleType.cpp.
References SUMOVTypeParameter::mass, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MASS_SET.
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 140 of file MSVehicleType.cpp.
References getMaxSpeed(), SUMOVTypeParameter::maxSpeed, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MAXSPEED_SET.
Referenced by MSTransportable::setSpeed().
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 151 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 118 of file MSVehicleType.cpp.
References getMinGap(), SUMOVTypeParameter::minGap, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MINGAP_SET.
Referenced by MSDevice_Bluelight::notifyMove().
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 129 of file MSVehicleType.cpp.
References getMinGapLat(), SUMOVTypeParameter::minGapLat, myOriginalType, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_MINGAP_LAT_SET.
void MSVehicleType::setParkingBadges | ( | const std::vector< std::string > & | badges | ) |
Set a new value for parking access rights of this type.
[in] | badges | The new parking access rights of this type |
Definition at line 273 of file MSVehicleType.cpp.
References myParameter, SUMOVTypeParameter::parametersSet, SUMOVTypeParameter::parkingBadges, and VTYPEPARS_PARKING_BADGES_SET.
void MSVehicleType::setPreferredLateralAlignment | ( | const LatAlignmentDefinition & | latAlignment, |
double | latAlignmentOffset = 0.0 |
||
) |
Set vehicle's preferred lateral alignment.
Definition at line 169 of file MSVehicleType.cpp.
References SUMOVTypeParameter::latAlignmentOffset, SUMOVTypeParameter::latAlignmentProcedure, myParameter, SUMOVTypeParameter::parametersSet, and VTYPEPARS_LATALIGNMENT_SET.
Referenced by MSDevice_Bluelight::notifyMove().
void MSVehicleType::setScale | ( | double | value | ) |
Set traffic scaling factor.
Definition at line 176 of file MSVehicleType.cpp.
References getID(), MSNet::getInsertionControl(), MSNet::getInstance(), myParameter, SUMOVTypeParameter::scale, and MSInsertionControl::updateScale().
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 311 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 205 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 194 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 530 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 162 of file MSVehicleType.cpp.
References myParameter, SUMOVTypeParameter::parametersSet, SUMOVTypeParameter::vehicleClass, and VTYPEPARS_VEHICLECLASS_SET.
Referenced by MSDevice_FCDReplay::FCDHandler::updateTrafficObjects().
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 280 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 80 of file MSVehicleType.h.
References myParameter, and SUMOVTypeParameter::parametersSet.
Referenced by MSRouteHandler::addTranship(), MSAbstractLaneChangeModel::computeSpeedLat(), MSAbstractLaneChangeModel::estimateLCDuration(), MSCFModel_Rail::MSCFModel_Rail(), MSAbstractLaneChangeModel::remainingTime(), GUIBaseVehicle::setFunctionalColor(), and GUIPerson::setFunctionalColor().
|
private |
the vtypes actionsStepLength in seconds (cached because needed very often)
Definition at line 652 of file MSVehicleType.h.
Referenced by getActionStepLengthSecs(), MSVehicleType(), and setActionStepLength().
|
private |
instance of the car following model.
Definition at line 664 of file MSVehicleType.h.
Referenced by build(), duplicateType(), getCarFollowModel(), getCarFollowModel(), setAccel(), setApparentDecel(), setDecel(), setEmergencyDecel(), setImperfection(), setTau(), and ~MSVehicleType().
|
private |
Definition at line 649 of file MSVehicleType.h.
Referenced by getEmissionParameters().
|
private |
|
staticprivate |
next value for the running index
Definition at line 670 of file MSVehicleType.h.
|
private |
The original type.
Definition at line 667 of file MSVehicleType.h.
Referenced by duplicateType(), getOriginalID(), isVehicleSpecific(), setAccel(), setApparentDecel(), setBoardingDuration(), setDecel(), setDefaultProbability(), setEmergencyDecel(), setHeight(), setImperfection(), setLength(), setMaxSpeed(), setMaxSpeedLat(), setMinGap(), setMinGapLat(), setSpeedDeviation(), setSpeedFactor(), setTau(), and setWidth().
|
private |
the parameter container
Definition at line 647 of file MSVehicleType.h.
Referenced by build(), check(), computeChosenSpeedDeviation(), duplicateType(), getActionStepLength(), getBoardingDuration(), getBoardingFactor(), getColor(), getContainerCapacity(), getDefaultProbability(), getDesiredMaxSpeed(), getEmissionClass(), getFrontSeatPos(), getGuiShape(), getHeight(), getID(), getImgFile(), getImpatience(), getLaneChangeModel(), getLength(), getLengthWithGap(), getLoadingDuration(), getMass(), getMaxSpeed(), getMaxSpeedLat(), getMinGap(), getMinGapLat(), getOSGFile(), getParameter(), getParkingBadges(), getPersonCapacity(), getPreferredLateralAlignment(), getPreferredLateralAlignmentOffset(), getSeatingWidth(), getSpeedFactor(), getVehicleClass(), getWidth(), MSVehicleType(), setAccel(), setActionStepLength(), setApparentDecel(), setBoardingDuration(), setColor(), setDecel(), setDefaultProbability(), setEmergencyDecel(), setEmissionClass(), setHeight(), setImpatience(), setImperfection(), setLength(), setMass(), setMaxSpeed(), setMaxSpeedLat(), setMinGap(), setMinGapLat(), setParkingBadges(), setPreferredLateralAlignment(), setScale(), setShape(), setSpeedDeviation(), setSpeedFactor(), setTau(), setVClass(), setWidth(), and wasSet().
|
private |
Definition at line 657 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 656 of file MSVehicleType.h.
Referenced by check().
|
private |
Definition at line 658 of file MSVehicleType.h.
Referenced by check().