62 myCalibratorParent(calibratorDialog->getEditedCalibrator()),
63 myVehicleTypeID(calibratorDialog->getEditedCalibrator()->getViewNet()->getNet()->generateCalibratorVehicleTypeID()),
93 double accel,
double decel,
double sigma,
double tau,
double length,
double minGap,
double maxSpeed,
94 double speedFactor,
double speedDev,
const RGBColor& color,
SUMOVehicleClass vClass,
const std::string& emissionClass,
95 SUMOVehicleShape shape,
double width,
const std::string& filename,
double impatience,
const std::string& laneChangeModel,
96 const std::string& carFollowModel,
int personCapacity,
int containerCapacity,
double boardingDuration,
97 double loadingDuration,
const std::string& latAlignment,
double minGapLat,
double maxSpeedLat) :
306 return canParse<double>(value);
308 return canParse<double>(value);
310 return canParse<double>(value);
312 return canParse<double>(value);
314 return canParse<double>(value);
316 return canParse<double>(value);
318 return canParse<double>(value);
320 return canParse<double>(value);
322 return canParse<double>(value);
324 return canParse<RGBColor>(value);
332 return canParse<double>(value);
336 return canParse<double>(value);
338 return (value ==
"LC2013") || (value ==
"SL2015") || (value ==
"DK2008");
340 return (value ==
"Krauss") || (value ==
"KraussOrig1") || (value ==
"PWagner2009") ||
341 (value ==
"BKerner") || (value ==
"IDM") || (value ==
"IDMM") || (value ==
"KraussPS") ||
342 (value ==
"KraussAB") || (value ==
"SmartSK") || (value ==
"Wiedemann") || (value ==
"Daniel1");
344 return canParse<int>(value);
346 return canParse<int>(value);
348 return canParse<double>(value);
350 return canParse<double>(value);
352 if ((value ==
"") || (value ==
"left") || (value ==
"right") || (value ==
"center")) {
355 return canParse<double>(value);
358 return canParse<double>(value);
360 return canParse<double>(value);
377 myAccel = parse<double>(value);
380 myDecel = parse<double>(value);
383 mySigma = parse<double>(value);
386 myTau = parse<double>(value);
404 myColor = parse<RGBColor>(value);
416 myWidth = parse<double>(value);
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
double myTau
Car-following model parameter.
double myMinGap
Empty space after leader [m].
double myMaxSpeedLat
The maximum lateral speed when using the sublane-model.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
description of a vehicle type
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
void changeCalibratorVehicleTypeID(GNECalibratorVehicleType *vehicleType, const std::string &oldID)
change Calibrator Vehicle Type ID
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
double myImpatience
Willingess of drivers to impede vehicles with higher priority. See below for semantics.
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)
GNECalibrator * myCalibratorParent
pointer to calibrator parent
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myDecel
The deceleration ability of vehicles of this type (in m/s^2)
void writeVehicleType(OutputDevice &device)
write Flow values into a XML
static bool isValidFilename(const std::string &value)
true if value is a valid file value
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)
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
bool canParseVehicleShape(const std::string &shape)
Checks whether the given string contains only known vehicle shape.
double mySigma
Car-following model parameter.
~GNECalibratorVehicleType()
destructor
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
static bool isValidID(const std::string &value)
true if value is a valid sumo ID
std::string myCarFollowModel
The model used for car following.
std::string myVehicleTypeID
vehicleType ID
bool isValid(SumoXMLAttr key, const std::string &value)
RGBColor myColor
This vehicle type's color.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
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.
friend class GNEChange_Attribute
declare friend class
SUMOVehicleClass myVClass
An abstract vehicle class.
SUMOVehicleShape myShape
How this vehicle is rendered.
std::string myEmissionClass
An abstract emission class.
std::string myFilename
Image file for rendering vehicles of this type (should be grayscale to allow functional coloring) ...
bool canParseVehicleClasses(const std::string &classes)
Checks whether the given string contains only known vehicle classes.
Dialog for edit calibrators.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
double myBoardingDuration
The time required by a person to board the vehicle.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
GNECalibratorVehicleType * retrieveCalibratorVehicleType(const std::string &id, bool hardFail=true) const
Returns the named calibrator vehicle type.
GNENet * getNet() const
get the net object
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
double myLoadingDuration
The time required to load a container onto the vehicle.
SUMOVehicleShape getVehicleShapeID(const std::string &name)
Returns the class id of the shape class given by its name.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
double myMinGapLat
The minimum lateral gap at a speed difference of 100km/h when using the sublane-model.
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.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
int myContainerCapacity
The number of containers the vehicle can transport.
GNECalibratorVehicleType(GNECalibratorDialog *calibratorDialog)
constructor (Used only in GNECalibratorDialog)
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
SumoXMLTag getTag() const
get XML Tag assigned to this object