20 #ifndef GNECalibratorVehicleType_h 21 #define GNECalibratorVehicleType_h 57 double accel,
double decel,
double sigma,
double tau,
double length,
double minGap,
58 double maxSpeed,
double speedFactor,
double speedDev,
const std::string& color,
60 double width,
const std::string& filename,
double impatience,
const std::string& laneChangeModel,
61 const std::string& carFollowModel,
int personCapacity,
int containerCapacity,
double boardingDuration,
62 double loadingDuration,
const std::string& latAlignment,
double minGapLat,
double maxSpeedLat);
189 bool setTau(
double tau = 1.0);
194 bool setTau(std::string tau);
249 bool setColor(std::string color =
"1,1,0");
SUMOVehicleShape getShape() const
get shape
double myTau
Car-following model parameter.
double getMinGapLat() const
get min gap lat
double myMinGap
Empty space after leader [m].
double myMaxSpeedLat
The maximum lateral speed when using the sublane-model.
SumoXMLTag
Numbers representing SUMO-XML - element names.
SUMOVehicleClass getVClass() const
get VClass
bool setTau(double tau=1.0)
set tau
bool setDecel(double decel=4.5)
set decel
double getTau() const
get tau
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
std::string getLatAlignment() const
get lateral lat
bool setLength(double length=5.0)
set length
double getWidth() const
get width
bool setImpatience(double impatience=0.0)
set impatience
bool setAccel(double accel=2.6)
set accel
double myImpatience
Willingess of drivers to impede vehicles with higher priority. See below for semantics.
bool setMinGapLat(double minGapLat=0.12)
set min gap lat
bool setEmissionClass(std::string emissionClass="P_7_7")
set emission class
double getSigma() const
get sigma
bool setShape(std::string shape)
set shape (string version)
std::string getEmissionClass() const
get emission class
bool operator==(const GNECalibratorVehicleType &calibratorVehicleType) const
overload operator ==
double myWidth
The vehicle's width [m] (only used for drawing)
double myAccel
The acceleration ability of vehicles of this type (in m/s^2)
double getLoadingDuration() const
get loading duration
bool setFilename(std::string filename="")
set filename
GNECalibrator * myCalibratorParent
pointer to calibrator parent
double myDecel
The deceleration ability of vehicles of this type (in m/s^2)
bool setMaxSpeed(double maxSpeed=70.0)
set max speed
double getSpeedDev() const
get speed dev
std::string getLaneChangeModel() const
get lane change model
std::string myLatAlignment
The preferred lateral alignment when using the sublane-model. One of (left, right, center, compact, nice, arbitrary).
double myLength
The vehicle's netto-length (length) (in m)
double getMaxSpeed() const
get max speed
double mySigma
Car-following model parameter.
~GNECalibratorVehicleType()
destructor
std::string getCarFollowModel() const
get car follow model
std::string myCarFollowModel
The model used for car following.
bool setWidth(double width=2.0)
set width
std::string myVehicleTypeID
vehicleType ID
std::string getVehicleTypeID() const
get VehicleTypeID
std::string getColor() const
get color
int myPersonCapacity
The number of persons (excluding an autonomous driver) the vehicle can transport. ...
double mySpeedDev
The deviation of the speedFactor; see below for details.
int getPersonCapacity() const
get person capacity
double getDecel() const
get decel
bool setPersonCapacity(int personCapacity=4)
set person capacity
double getSpeedFactor() const
get speed factor
SUMOVehicleClass myVClass
An abstract vehicle class.
GNECalibratorVehicleType(GNECalibrator *calibratorParent)
constructor
double getImpatience() const
get impatience
SUMOVehicleShape myShape
How this vehicle is rendered.
std::string getFilename() const
get filename
render as a passenger vehicle
std::string myEmissionClass
An abstract emission class.
double getMinGap() const
get min gap
bool setSigma(double sigma=0.5)
set sigma
double getBoardingDuration() const
get boarding duration
std::string myFilename
Image file for rendering vehicles of this type (should be grayscale to allow functional coloring) ...
double getLength() const
get length
bool setSpeedDev(double speedDev=0.0)
set speed dev
bool setBoardingDuration(double boardingDuration=0.5)
set boarding duration
bool setMaxSpeedLat(double maxSpeedLat=1.0)
set max speed lat
bool setLaneChangeModel(std::string laneChangeModel="LC2013")
set lane change model
double myBoardingDuration
The time required by a person to board the vehicle.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
bool setCarFollowModel(std::string carFollowModel="Krauss")
set car follow model
bool setMinGap(double minGap=2.5)
set min gap
bool setSpeedFactor(double speedFactor=1.0)
set speed factor
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
double myLoadingDuration
The time required to load a container onto the vehicle.
std::string myColor
This vehicle type's color.
double myMinGapLat
The minimum lateral gap at a speed difference of 100km/h when using the sublane-model.
bool setVClass(SUMOVehicleClass vClass=SVC_PRIVATE)
set VClass
int getContainerCapacity() const
get container capacity
bool setColor(std::string color="1,1,0")
set color
double getAccel() const
get accel
bool setLoadingDuration(double loadingDuration=90.0)
set loading duration
SumoXMLTag getTag() const
get tag
bool setContainerCapacity(int containerCapacity=0)
set container capacity
double myMaxSpeed
The vehicle's maximum velocity (in m/s)
double mySpeedFactor
The vehicles expected multiplicator for lane speed limits.
std::string myLaneChangeModel
The model used for changing lanes.
int myContainerCapacity
The number of containers the vehicle can transport.
bool setVehicleTypeID(std::string vehicleTypeID)
set vehicleType ID
bool setLatAlignment(std::string latAlignment="center")
set lateral lat
double getMaxSpeedLat() const
get max speed lat