SUMO - Simulation of Urban MObility
GNECalibratorVehicleType Class Reference

#include <GNECalibratorVehicleType.h>

Collaboration diagram for GNECalibratorVehicleType:
Collaboration graph

Public Member Functions

double getAccel () const
 get accel More...
 
double getBoardingDuration () const
 get boarding duration More...
 
GNECalibratorgetCalibratorParent () const
 get pointer to calibrator parent More...
 
std::string getCarFollowModel () const
 get car follow model More...
 
std::string getColor () const
 get color More...
 
int getContainerCapacity () const
 get container capacity More...
 
double getDecel () const
 get decel More...
 
std::string getEmissionClass () const
 get emission class More...
 
std::string getFilename () const
 get filename More...
 
double getImpatience () const
 get impatience More...
 
std::string getLaneChangeModel () const
 get lane change model More...
 
std::string getLatAlignment () const
 get lateral lat More...
 
double getLength () const
 get length More...
 
double getLoadingDuration () const
 get loading duration More...
 
double getMaxSpeed () const
 get max speed More...
 
double getMaxSpeedLat () const
 get max speed lat More...
 
double getMinGap () const
 get min gap More...
 
double getMinGapLat () const
 get min gap lat More...
 
int getPersonCapacity () const
 get person capacity More...
 
SUMOVehicleShape getShape () const
 get shape More...
 
double getSigma () const
 get sigma More...
 
double getSpeedDev () const
 get speed dev More...
 
double getSpeedFactor () const
 get speed factor More...
 
SumoXMLTag getTag () const
 get tag More...
 
double getTau () const
 get tau More...
 
SUMOVehicleClass getVClass () const
 get VClass More...
 
std::string getVehicleTypeID () const
 get VehicleTypeID More...
 
double getWidth () const
 get width More...
 
 GNECalibratorVehicleType (GNECalibrator *calibratorParent)
 constructor More...
 
 GNECalibratorVehicleType (GNECalibrator *calibratorParent, std::string vehicleTypeID, double accel, double decel, double sigma, double tau, double length, double minGap, double maxSpeed, double speedFactor, double speedDev, const std::string &color, SUMOVehicleClass vClass, const std::string &emissionClass, SUMOVehicleShape shape, double width, const std::string &filename, double impatience, const std::string &laneChangeModel, const std::string &carFollowModel, int personCapacity, int containerCapacity, double boardingDuration, double loadingDuration, const std::string &latAlignment, double minGapLat, double maxSpeedLat)
 parameter constructor More...
 
bool operator== (const GNECalibratorVehicleType &calibratorVehicleType) const
 overload operator == More...
 
bool setAccel (double accel=2.6)
 set accel More...
 
bool setAccel (std::string accel)
 set accel (string version) More...
 
bool setBoardingDuration (double boardingDuration=0.5)
 set boarding duration More...
 
bool setBoardingDuration (std::string boardingDuration)
 set boarding duration (string version) More...
 
bool setCarFollowModel (std::string carFollowModel="Krauss")
 set car follow model More...
 
bool setColor (std::string color="1,1,0")
 set color More...
 
bool setContainerCapacity (int containerCapacity=0)
 set container capacity More...
 
bool setContainerCapacity (std::string containerCapacity)
 set container capacity (string version) More...
 
bool setDecel (double decel=4.5)
 set decel More...
 
bool setDecel (std::string decel)
 set decel (string version) More...
 
bool setEmissionClass (std::string emissionClass="P_7_7")
 set emission class More...
 
bool setFilename (std::string filename="")
 set filename More...
 
bool setImpatience (double impatience=0.0)
 set impatience More...
 
bool setImpatience (std::string impatience)
 set impatience (string version) More...
 
bool setLaneChangeModel (std::string laneChangeModel="LC2013")
 set lane change model More...
 
bool setLatAlignment (std::string latAlignment="center")
 set lateral lat More...
 
bool setLength (double length=5.0)
 set length More...
 
bool setLength (std::string length)
 set length (string version) More...
 
bool setLoadingDuration (double loadingDuration=90.0)
 set loading duration More...
 
bool setLoadingDuration (std::string loadingDuration)
 set loading duration (string version) More...
 
bool setMaxSpeed (double maxSpeed=70.0)
 set max speed More...
 
bool setMaxSpeed (std::string maxSpeed)
 set max speed (string version) More...
 
bool setMaxSpeedLat (double maxSpeedLat=1.0)
 set max speed lat More...
 
bool setMaxSpeedLat (std::string maxSpeedLat)
 set max speed lat (string version) More...
 
bool setMinGap (double minGap=2.5)
 set min gap More...
 
bool setMinGap (std::string minGap)
 set min gap (string version) More...
 
bool setMinGapLat (double minGapLat=0.12)
 set min gap lat More...
 
bool setMinGapLat (std::string minGapLat)
 set min gap lat (string version) More...
 
bool setPersonCapacity (int personCapacity=4)
 set person capacity More...
 
bool setPersonCapacity (std::string personCapacity)
 set person capacity (string version) More...
 
bool setShape (std::string shape)
 set shape (string version) More...
 
bool setShape (SUMOVehicleShape shape=SVS_PASSENGER)
 set shape More...
 
bool setSigma (double sigma=0.5)
 set sigma More...
 
bool setSigma (std::string sigma)
 set sigma (string version) More...
 
bool setSpeedDev (double speedDev=0.0)
 set speed dev More...
 
bool setSpeedDev (std::string speedDev)
 set speed dev (string version) More...
 
bool setSpeedFactor (double speedFactor=1.0)
 set speed factor More...
 
bool setSpeedFactor (std::string speedFactor)
 set speed factor (string version) More...
 
bool setTau (double tau=1.0)
 set tau More...
 
bool setTau (std::string tau)
 set tau (string version) More...
 
bool setVClass (SUMOVehicleClass vClass=SVC_PRIVATE)
 set VClass More...
 
bool setVClass (std::string vClass)
 set VClass (string version) More...
 
bool setVehicleTypeID (std::string vehicleTypeID)
 set vehicleType ID More...
 
bool setWidth (double width=2.0)
 set width More...
 
bool setWidth (std::string width)
 set width (string version) More...
 
 ~GNECalibratorVehicleType ()
 destructor More...
 

Private Attributes

double myAccel
 The acceleration ability of vehicles of this type (in m/s^2) More...
 
double myBoardingDuration
 The time required by a person to board the vehicle. More...
 
GNECalibratormyCalibratorParent
 pointer to calibrator parent More...
 
std::string myCarFollowModel
 The model used for car following. More...
 
std::string myColor
 This vehicle type's color. More...
 
int myContainerCapacity
 The number of containers the vehicle can transport. More...
 
double myDecel
 The deceleration ability of vehicles of this type (in m/s^2) More...
 
std::string myEmissionClass
 An abstract emission class. More...
 
std::string myFilename
 Image file for rendering vehicles of this type (should be grayscale to allow functional coloring) More...
 
double myImpatience
 Willingess of drivers to impede vehicles with higher priority. See below for semantics. More...
 
std::string myLaneChangeModel
 The model used for changing lanes. More...
 
std::string myLatAlignment
 The preferred lateral alignment when using the sublane-model. One of (left, right, center, compact, nice, arbitrary). More...
 
double myLength
 The vehicle's netto-length (length) (in m) More...
 
double myLoadingDuration
 The time required to load a container onto the vehicle. More...
 
double myMaxSpeed
 The vehicle's maximum velocity (in m/s) More...
 
double myMaxSpeedLat
 The maximum lateral speed when using the sublane-model. More...
 
double myMinGap
 Empty space after leader [m]. More...
 
double myMinGapLat
 The minimum lateral gap at a speed difference of 100km/h when using the sublane-model. More...
 
int myPersonCapacity
 The number of persons (excluding an autonomous driver) the vehicle can transport. More...
 
SUMOVehicleShape myShape
 How this vehicle is rendered. More...
 
double mySigma
 Car-following model parameter. More...
 
double mySpeedDev
 The deviation of the speedFactor; see below for details. More...
 
double mySpeedFactor
 The vehicles expected multiplicator for lane speed limits. More...
 
double myTau
 Car-following model parameter. More...
 
SUMOVehicleClass myVClass
 An abstract vehicle class. More...
 
std::string myVehicleTypeID
 vehicleType ID More...
 
double myWidth
 The vehicle's width [m] (only used for drawing) More...
 

Detailed Description

vehicleType vehicleType used by GNECalibrators

Definition at line 50 of file GNECalibratorVehicleType.h.

Constructor & Destructor Documentation

◆ GNECalibratorVehicleType() [1/2]

◆ GNECalibratorVehicleType() [2/2]

GNECalibratorVehicleType::GNECalibratorVehicleType ( GNECalibrator calibratorParent,
std::string  vehicleTypeID,
double  accel,
double  decel,
double  sigma,
double  tau,
double  length,
double  minGap,
double  maxSpeed,
double  speedFactor,
double  speedDev,
const std::string &  color,
SUMOVehicleClass  vClass,
const std::string &  emissionClass,
SUMOVehicleShape  shape,
double  width,
const std::string &  filename,
double  impatience,
const std::string &  laneChangeModel,
const std::string &  carFollowModel,
int  personCapacity,
int  containerCapacity,
double  boardingDuration,
double  loadingDuration,
const std::string &  latAlignment,
double  minGapLat,
double  maxSpeedLat 
)

◆ ~GNECalibratorVehicleType()

GNECalibratorVehicleType::~GNECalibratorVehicleType ( )

destructor

Definition at line 129 of file GNECalibratorVehicleType.cpp.

Member Function Documentation

◆ getAccel()

double GNECalibratorVehicleType::getAccel ( ) const

get accel

Definition at line 151 of file GNECalibratorVehicleType.cpp.

References myAccel.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getBoardingDuration()

double GNECalibratorVehicleType::getBoardingDuration ( ) const

get boarding duration

Definition at line 271 of file GNECalibratorVehicleType.cpp.

References myBoardingDuration.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getCalibratorParent()

GNECalibrator * GNECalibratorVehicleType::getCalibratorParent ( ) const

get pointer to calibrator parent

Definition at line 133 of file GNECalibratorVehicleType.cpp.

References myCalibratorParent.

Referenced by GNECalibratorVehicleTypeDialog::onCmdAccept().

◆ getCarFollowModel()

std::string GNECalibratorVehicleType::getCarFollowModel ( ) const

get car follow model

Definition at line 253 of file GNECalibratorVehicleType.cpp.

References myCarFollowModel.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getColor()

std::string GNECalibratorVehicleType::getColor ( ) const

get color

Definition at line 205 of file GNECalibratorVehicleType.cpp.

References myColor.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getContainerCapacity()

int GNECalibratorVehicleType::getContainerCapacity ( ) const

get container capacity

Definition at line 265 of file GNECalibratorVehicleType.cpp.

References myContainerCapacity.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getDecel()

double GNECalibratorVehicleType::getDecel ( ) const

get decel

Definition at line 157 of file GNECalibratorVehicleType.cpp.

References myDecel.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getEmissionClass()

std::string GNECalibratorVehicleType::getEmissionClass ( ) const

get emission class

Definition at line 217 of file GNECalibratorVehicleType.cpp.

References myEmissionClass.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getFilename()

std::string GNECalibratorVehicleType::getFilename ( ) const

get filename

Definition at line 235 of file GNECalibratorVehicleType.cpp.

References myFilename.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getImpatience()

double GNECalibratorVehicleType::getImpatience ( ) const

get impatience

Definition at line 241 of file GNECalibratorVehicleType.cpp.

References myImpatience.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getLaneChangeModel()

std::string GNECalibratorVehicleType::getLaneChangeModel ( ) const

get lane change model

Definition at line 247 of file GNECalibratorVehicleType.cpp.

References myLaneChangeModel.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getLatAlignment()

std::string GNECalibratorVehicleType::getLatAlignment ( ) const

get lateral lat

Definition at line 283 of file GNECalibratorVehicleType.cpp.

References myLatAlignment.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getLength()

double GNECalibratorVehicleType::getLength ( ) const

get length

Definition at line 175 of file GNECalibratorVehicleType.cpp.

References myLength.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getLoadingDuration()

double GNECalibratorVehicleType::getLoadingDuration ( ) const

get loading duration

Definition at line 277 of file GNECalibratorVehicleType.cpp.

References myLoadingDuration.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getMaxSpeed()

double GNECalibratorVehicleType::getMaxSpeed ( ) const

get max speed

Definition at line 187 of file GNECalibratorVehicleType.cpp.

References myMaxSpeed.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getMaxSpeedLat()

double GNECalibratorVehicleType::getMaxSpeedLat ( ) const

get max speed lat

Definition at line 295 of file GNECalibratorVehicleType.cpp.

References myMaxSpeedLat.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getMinGap()

double GNECalibratorVehicleType::getMinGap ( ) const

get min gap

Definition at line 181 of file GNECalibratorVehicleType.cpp.

References myMinGap.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getMinGapLat()

double GNECalibratorVehicleType::getMinGapLat ( ) const

get min gap lat

Definition at line 289 of file GNECalibratorVehicleType.cpp.

References myMinGapLat.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getPersonCapacity()

int GNECalibratorVehicleType::getPersonCapacity ( ) const

get person capacity

Definition at line 259 of file GNECalibratorVehicleType.cpp.

References myPersonCapacity.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getShape()

SUMOVehicleShape GNECalibratorVehicleType::getShape ( ) const

get shape

Definition at line 223 of file GNECalibratorVehicleType.cpp.

References myShape.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getSigma()

double GNECalibratorVehicleType::getSigma ( ) const

get sigma

Definition at line 163 of file GNECalibratorVehicleType.cpp.

References mySigma.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getSpeedDev()

double GNECalibratorVehicleType::getSpeedDev ( ) const

get speed dev

Definition at line 199 of file GNECalibratorVehicleType.cpp.

References mySpeedDev.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getSpeedFactor()

double GNECalibratorVehicleType::getSpeedFactor ( ) const

get speed factor

Definition at line 193 of file GNECalibratorVehicleType.cpp.

References mySpeedFactor.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ getTag()

SumoXMLTag GNECalibratorVehicleType::getTag ( ) const

get tag

Definition at line 139 of file GNECalibratorVehicleType.cpp.

References SUMO_TAG_VTYPE.

Referenced by GNECalibratorVehicleTypeDialog::onCmdAccept().

◆ getTau()

double GNECalibratorVehicleType::getTau ( ) const

◆ getVClass()

SUMOVehicleClass GNECalibratorVehicleType::getVClass ( ) const

◆ getVehicleTypeID()

std::string GNECalibratorVehicleType::getVehicleTypeID ( ) const

◆ getWidth()

double GNECalibratorVehicleType::getWidth ( ) const

get width

Definition at line 229 of file GNECalibratorVehicleType.cpp.

References myWidth.

Referenced by GNECalibratorVehicleTypeDialog::updateCalibratorVehicleTypeValues().

◆ operator==()

bool GNECalibratorVehicleType::operator== ( const GNECalibratorVehicleType calibratorVehicleType) const

overload operator ==

Definition at line 763 of file GNECalibratorVehicleType.cpp.

References getVehicleTypeID(), and myVehicleTypeID.

◆ setAccel() [1/2]

bool GNECalibratorVehicleType::setAccel ( double  accel = 2.6)

set accel

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 313 of file GNECalibratorVehicleType.cpp.

References myAccel.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setAccel().

◆ setAccel() [2/2]

bool GNECalibratorVehicleType::setAccel ( std::string  accel)

set accel (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 324 of file GNECalibratorVehicleType.cpp.

References setAccel().

◆ setBoardingDuration() [1/2]

bool GNECalibratorVehicleType::setBoardingDuration ( double  boardingDuration = 0.5)

set boarding duration

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 667 of file GNECalibratorVehicleType.cpp.

References myBoardingDuration.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setBoardingDuration().

◆ setBoardingDuration() [2/2]

bool GNECalibratorVehicleType::setBoardingDuration ( std::string  boardingDuration)

set boarding duration (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 678 of file GNECalibratorVehicleType.cpp.

References setBoardingDuration().

◆ setCarFollowModel()

bool GNECalibratorVehicleType::setCarFollowModel ( std::string  carFollowModel = "Krauss")

set car follow model

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 606 of file GNECalibratorVehicleType.cpp.

References myCarFollowModel.

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setColor()

bool GNECalibratorVehicleType::setColor ( std::string  color = "1,1,0")

set color

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 502 of file GNECalibratorVehicleType.cpp.

References myColor.

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setContainerCapacity() [1/2]

bool GNECalibratorVehicleType::setContainerCapacity ( int  containerCapacity = 0)

set container capacity

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 640 of file GNECalibratorVehicleType.cpp.

References myContainerCapacity.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setContainerCapacity().

◆ setContainerCapacity() [2/2]

bool GNECalibratorVehicleType::setContainerCapacity ( std::string  containerCapacity)

set container capacity (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 651 of file GNECalibratorVehicleType.cpp.

References setContainerCapacity().

◆ setDecel() [1/2]

bool GNECalibratorVehicleType::setDecel ( double  decel = 4.5)

set decel

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 334 of file GNECalibratorVehicleType.cpp.

References myDecel.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setDecel().

◆ setDecel() [2/2]

bool GNECalibratorVehicleType::setDecel ( std::string  decel)

set decel (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 345 of file GNECalibratorVehicleType.cpp.

References setDecel().

◆ setEmissionClass()

bool GNECalibratorVehicleType::setEmissionClass ( std::string  emissionClass = "P_7_7")

set emission class

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 526 of file GNECalibratorVehicleType.cpp.

References myEmissionClass.

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setFilename()

bool GNECalibratorVehicleType::setFilename ( std::string  filename = "")

set filename

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 571 of file GNECalibratorVehicleType.cpp.

References myFilename.

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setImpatience() [1/2]

bool GNECalibratorVehicleType::setImpatience ( double  impatience = 0.0)

set impatience

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 578 of file GNECalibratorVehicleType.cpp.

References myImpatience.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setImpatience().

◆ setImpatience() [2/2]

bool GNECalibratorVehicleType::setImpatience ( std::string  impatience)

set impatience (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 589 of file GNECalibratorVehicleType.cpp.

References setImpatience().

◆ setLaneChangeModel()

bool GNECalibratorVehicleType::setLaneChangeModel ( std::string  laneChangeModel = "LC2013")

set lane change model

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 599 of file GNECalibratorVehicleType.cpp.

References myLaneChangeModel.

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setLatAlignment()

bool GNECalibratorVehicleType::setLatAlignment ( std::string  latAlignment = "center")

set lateral lat

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 709 of file GNECalibratorVehicleType.cpp.

References myLatAlignment.

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setLength() [1/2]

bool GNECalibratorVehicleType::setLength ( double  length = 5.0)

set length

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 397 of file GNECalibratorVehicleType.cpp.

References myLength.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setLength().

◆ setLength() [2/2]

bool GNECalibratorVehicleType::setLength ( std::string  length)

set length (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 408 of file GNECalibratorVehicleType.cpp.

References setLength().

◆ setLoadingDuration() [1/2]

bool GNECalibratorVehicleType::setLoadingDuration ( double  loadingDuration = 90.0)

set loading duration

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 688 of file GNECalibratorVehicleType.cpp.

References myLoadingDuration.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setLoadingDuration().

◆ setLoadingDuration() [2/2]

bool GNECalibratorVehicleType::setLoadingDuration ( std::string  loadingDuration)

set loading duration (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 699 of file GNECalibratorVehicleType.cpp.

References setLoadingDuration().

◆ setMaxSpeed() [1/2]

bool GNECalibratorVehicleType::setMaxSpeed ( double  maxSpeed = 70.0)

set max speed

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 439 of file GNECalibratorVehicleType.cpp.

References myMaxSpeed.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setMaxSpeed().

◆ setMaxSpeed() [2/2]

bool GNECalibratorVehicleType::setMaxSpeed ( std::string  maxSpeed)

set max speed (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 450 of file GNECalibratorVehicleType.cpp.

References setMaxSpeed().

◆ setMaxSpeedLat() [1/2]

bool GNECalibratorVehicleType::setMaxSpeedLat ( double  maxSpeedLat = 1.0)

set max speed lat

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 742 of file GNECalibratorVehicleType.cpp.

References myMaxSpeedLat.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setMaxSpeedLat().

◆ setMaxSpeedLat() [2/2]

bool GNECalibratorVehicleType::setMaxSpeedLat ( std::string  maxSpeedLat)

set max speed lat (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 753 of file GNECalibratorVehicleType.cpp.

References setMaxSpeedLat().

◆ setMinGap() [1/2]

bool GNECalibratorVehicleType::setMinGap ( double  minGap = 2.5)

set min gap

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 418 of file GNECalibratorVehicleType.cpp.

References myMinGap.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setMinGap().

◆ setMinGap() [2/2]

bool GNECalibratorVehicleType::setMinGap ( std::string  minGap)

set min gap (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 429 of file GNECalibratorVehicleType.cpp.

References setMinGap().

◆ setMinGapLat() [1/2]

bool GNECalibratorVehicleType::setMinGapLat ( double  minGapLat = 0.12)

set min gap lat

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 721 of file GNECalibratorVehicleType.cpp.

References myMinGapLat.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setMinGapLat().

◆ setMinGapLat() [2/2]

bool GNECalibratorVehicleType::setMinGapLat ( std::string  minGapLat)

set min gap lat (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 732 of file GNECalibratorVehicleType.cpp.

References setMinGapLat().

◆ setPersonCapacity() [1/2]

bool GNECalibratorVehicleType::setPersonCapacity ( int  personCapacity = 4)

set person capacity

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 613 of file GNECalibratorVehicleType.cpp.

References myPersonCapacity.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setPersonCapacity().

◆ setPersonCapacity() [2/2]

bool GNECalibratorVehicleType::setPersonCapacity ( std::string  personCapacity)

set person capacity (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 624 of file GNECalibratorVehicleType.cpp.

References setPersonCapacity().

◆ setShape() [1/2]

bool GNECalibratorVehicleType::setShape ( std::string  shape)

set shape (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 540 of file GNECalibratorVehicleType.cpp.

References canParseVehicleShape(), and getVehicleShapeID().

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setShape() [2/2]

bool GNECalibratorVehicleType::setShape ( SUMOVehicleShape  shape = SVS_PASSENGER)

set shape

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 533 of file GNECalibratorVehicleType.cpp.

References myShape.

◆ setSigma() [1/2]

bool GNECalibratorVehicleType::setSigma ( double  sigma = 0.5)

set sigma

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 355 of file GNECalibratorVehicleType.cpp.

References mySigma.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setSigma().

◆ setSigma() [2/2]

bool GNECalibratorVehicleType::setSigma ( std::string  sigma)

set sigma (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 366 of file GNECalibratorVehicleType.cpp.

References setSigma().

◆ setSpeedDev() [1/2]

bool GNECalibratorVehicleType::setSpeedDev ( double  speedDev = 0.0)

set speed dev

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 481 of file GNECalibratorVehicleType.cpp.

References mySpeedDev.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setSpeedDev().

◆ setSpeedDev() [2/2]

bool GNECalibratorVehicleType::setSpeedDev ( std::string  speedDev)

set speed dev (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 492 of file GNECalibratorVehicleType.cpp.

References setSpeedDev().

◆ setSpeedFactor() [1/2]

bool GNECalibratorVehicleType::setSpeedFactor ( double  speedFactor = 1.0)

set speed factor

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 460 of file GNECalibratorVehicleType.cpp.

References mySpeedFactor.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setSpeedFactor().

◆ setSpeedFactor() [2/2]

bool GNECalibratorVehicleType::setSpeedFactor ( std::string  speedFactor)

set speed factor (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 471 of file GNECalibratorVehicleType.cpp.

References setSpeedFactor().

◆ setTau() [1/2]

bool GNECalibratorVehicleType::setTau ( double  tau = 1.0)

set tau

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 376 of file GNECalibratorVehicleType.cpp.

References myTau.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setTau().

◆ setTau() [2/2]

bool GNECalibratorVehicleType::setTau ( std::string  tau)

set tau (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 387 of file GNECalibratorVehicleType.cpp.

References setTau().

◆ setVClass() [1/2]

bool GNECalibratorVehicleType::setVClass ( SUMOVehicleClass  vClass = SVC_PRIVATE)

set VClass

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 509 of file GNECalibratorVehicleType.cpp.

References myVClass.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setVClass().

◆ setVClass() [2/2]

bool GNECalibratorVehicleType::setVClass ( std::string  vClass)

set VClass (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 516 of file GNECalibratorVehicleType.cpp.

References canParseVehicleClasses(), getVehicleClassID(), and setVClass().

◆ setVehicleTypeID()

bool GNECalibratorVehicleType::setVehicleTypeID ( std::string  vehicleTypeID)

set vehicleType ID

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 300 of file GNECalibratorVehicleType.cpp.

References GNEViewNet::getNet(), GNEAdditional::getViewNet(), myCalibratorParent, myVehicleTypeID, and GNENet::vehicleTypeExists().

Referenced by GNECalibratorVehicleType(), and GNECalibratorVehicleTypeDialog::onCmdSetVariable().

◆ setWidth() [1/2]

bool GNECalibratorVehicleType::setWidth ( double  width = 2.0)

set width

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 550 of file GNECalibratorVehicleType.cpp.

References myWidth.

Referenced by GNECalibratorVehicleType(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), and setWidth().

◆ setWidth() [2/2]

bool GNECalibratorVehicleType::setWidth ( std::string  width)

set width (string version)

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 561 of file GNECalibratorVehicleType.cpp.

References setWidth().

Field Documentation

◆ myAccel

double GNECalibratorVehicleType::myAccel
private

The acceleration ability of vehicles of this type (in m/s^2)

Definition at line 387 of file GNECalibratorVehicleType.h.

Referenced by getAccel(), and setAccel().

◆ myBoardingDuration

double GNECalibratorVehicleType::myBoardingDuration
private

The time required by a person to board the vehicle.

Definition at line 447 of file GNECalibratorVehicleType.h.

Referenced by getBoardingDuration(), and setBoardingDuration().

◆ myCalibratorParent

GNECalibrator* GNECalibratorVehicleType::myCalibratorParent
private

pointer to calibrator parent

Definition at line 381 of file GNECalibratorVehicleType.h.

Referenced by getCalibratorParent(), and setVehicleTypeID().

◆ myCarFollowModel

std::string GNECalibratorVehicleType::myCarFollowModel
private

The model used for car following.

Definition at line 438 of file GNECalibratorVehicleType.h.

Referenced by getCarFollowModel(), and setCarFollowModel().

◆ myColor

std::string GNECalibratorVehicleType::myColor
private

This vehicle type's color.

Definition at line 414 of file GNECalibratorVehicleType.h.

Referenced by getColor(), and setColor().

◆ myContainerCapacity

int GNECalibratorVehicleType::myContainerCapacity
private

The number of containers the vehicle can transport.

Definition at line 444 of file GNECalibratorVehicleType.h.

Referenced by getContainerCapacity(), and setContainerCapacity().

◆ myDecel

double GNECalibratorVehicleType::myDecel
private

The deceleration ability of vehicles of this type (in m/s^2)

Definition at line 390 of file GNECalibratorVehicleType.h.

Referenced by getDecel(), and setDecel().

◆ myEmissionClass

std::string GNECalibratorVehicleType::myEmissionClass
private

An abstract emission class.

Definition at line 420 of file GNECalibratorVehicleType.h.

Referenced by getEmissionClass(), and setEmissionClass().

◆ myFilename

std::string GNECalibratorVehicleType::myFilename
private

Image file for rendering vehicles of this type (should be grayscale to allow functional coloring)

Definition at line 429 of file GNECalibratorVehicleType.h.

Referenced by getFilename(), and setFilename().

◆ myImpatience

double GNECalibratorVehicleType::myImpatience
private

Willingess of drivers to impede vehicles with higher priority. See below for semantics.

Definition at line 432 of file GNECalibratorVehicleType.h.

Referenced by getImpatience(), and setImpatience().

◆ myLaneChangeModel

std::string GNECalibratorVehicleType::myLaneChangeModel
private

The model used for changing lanes.

Definition at line 435 of file GNECalibratorVehicleType.h.

Referenced by getLaneChangeModel(), and setLaneChangeModel().

◆ myLatAlignment

std::string GNECalibratorVehicleType::myLatAlignment
private

The preferred lateral alignment when using the sublane-model. One of (left, right, center, compact, nice, arbitrary).

Definition at line 453 of file GNECalibratorVehicleType.h.

Referenced by getLatAlignment(), and setLatAlignment().

◆ myLength

double GNECalibratorVehicleType::myLength
private

The vehicle's netto-length (length) (in m)

Definition at line 399 of file GNECalibratorVehicleType.h.

Referenced by getLength(), and setLength().

◆ myLoadingDuration

double GNECalibratorVehicleType::myLoadingDuration
private

The time required to load a container onto the vehicle.

Definition at line 450 of file GNECalibratorVehicleType.h.

Referenced by getLoadingDuration(), and setLoadingDuration().

◆ myMaxSpeed

double GNECalibratorVehicleType::myMaxSpeed
private

The vehicle's maximum velocity (in m/s)

Definition at line 405 of file GNECalibratorVehicleType.h.

Referenced by getMaxSpeed(), and setMaxSpeed().

◆ myMaxSpeedLat

double GNECalibratorVehicleType::myMaxSpeedLat
private

The maximum lateral speed when using the sublane-model.

Definition at line 459 of file GNECalibratorVehicleType.h.

Referenced by getMaxSpeedLat(), and setMaxSpeedLat().

◆ myMinGap

double GNECalibratorVehicleType::myMinGap
private

Empty space after leader [m].

Definition at line 402 of file GNECalibratorVehicleType.h.

Referenced by getMinGap(), and setMinGap().

◆ myMinGapLat

double GNECalibratorVehicleType::myMinGapLat
private

The minimum lateral gap at a speed difference of 100km/h when using the sublane-model.

Definition at line 456 of file GNECalibratorVehicleType.h.

Referenced by getMinGapLat(), and setMinGapLat().

◆ myPersonCapacity

int GNECalibratorVehicleType::myPersonCapacity
private

The number of persons (excluding an autonomous driver) the vehicle can transport.

Definition at line 441 of file GNECalibratorVehicleType.h.

Referenced by getPersonCapacity(), and setPersonCapacity().

◆ myShape

SUMOVehicleShape GNECalibratorVehicleType::myShape
private

How this vehicle is rendered.

Definition at line 423 of file GNECalibratorVehicleType.h.

Referenced by getShape(), and setShape().

◆ mySigma

double GNECalibratorVehicleType::mySigma
private

Car-following model parameter.

Definition at line 393 of file GNECalibratorVehicleType.h.

Referenced by getSigma(), and setSigma().

◆ mySpeedDev

double GNECalibratorVehicleType::mySpeedDev
private

The deviation of the speedFactor; see below for details.

Definition at line 411 of file GNECalibratorVehicleType.h.

Referenced by getSpeedDev(), and setSpeedDev().

◆ mySpeedFactor

double GNECalibratorVehicleType::mySpeedFactor
private

The vehicles expected multiplicator for lane speed limits.

Definition at line 408 of file GNECalibratorVehicleType.h.

Referenced by getSpeedFactor(), and setSpeedFactor().

◆ myTau

double GNECalibratorVehicleType::myTau
private

Car-following model parameter.

Definition at line 396 of file GNECalibratorVehicleType.h.

Referenced by getTau(), and setTau().

◆ myVClass

SUMOVehicleClass GNECalibratorVehicleType::myVClass
private

An abstract vehicle class.

Definition at line 417 of file GNECalibratorVehicleType.h.

Referenced by getVClass(), and setVClass().

◆ myVehicleTypeID

std::string GNECalibratorVehicleType::myVehicleTypeID
private

vehicleType ID

Definition at line 384 of file GNECalibratorVehicleType.h.

Referenced by getVehicleTypeID(), operator==(), and setVehicleTypeID().

◆ myWidth

double GNECalibratorVehicleType::myWidth
private

The vehicle's width [m] (only used for drawing)

Definition at line 426 of file GNECalibratorVehicleType.h.

Referenced by getWidth(), and setWidth().


The documentation for this class was generated from the following files: