49 double accel,
double decel,
double sigma,
double tau,
double length,
double minGap,
double maxSpeed,
50 double speedFactor,
double speedDev,
const RGBColor& color,
SUMOVehicleClass vClass,
const std::string& emissionClass,
51 SUMOVehicleShape shape,
double width,
const std::string& filename,
double impatience,
const std::string& laneChangeModel,
52 const std::string& carFollowModel,
int personCapacity,
int containerCapacity,
double boardingDuration,
53 double loadingDuration,
const std::string& latAlignment,
double minGapLat,
double maxSpeedLat) :
232 return canParse<double>(value);
234 return canParse<double>(value);
236 return canParse<double>(value) && (parse<double>(value) >= 0) && (parse<double>(value) <= 1);
238 return canParse<double>(value);
240 return canParse<double>(value) && (parse<double>(value) > 0);
242 return canParse<double>(value);
244 return canParse<double>(value);
246 return canParse<double>(value);
248 return canParse<double>(value);
250 return canParse<RGBColor>(value);
254 if ((value ==
"zero") || (value ==
"LDV") || (value ==
"LDV_G_EU0") || (value ==
"LDV_G_EU1") || (value ==
"LDV_G_EU2") || (value ==
"LDV_G_EU3") || (value ==
"LDV_G_EU4") || (value ==
"LDV_G_EU5") ||
255 (value ==
"LDV_G_EU6") || (value ==
"LDV_G_East") || (value ==
"LDV_D_EU0") || (value ==
"LDV_D_EU1") || (value ==
"LDV_D_EU2") || (value ==
"LDV_D_EU3") || (value ==
"LDV_D_EU4") || (value ==
"LDV_D_EU5") || (value ==
"LDV_D_EU6") ||
256 (value ==
"PC") || (value ==
"PC_Alternative") || (value ==
"PC_G_EU0") || (value ==
"PC_G_EU1") || (value ==
"PC_G_EU2") || (value ==
"PC_G_EU3") || (value ==
"PC_G_EU4") || (value ==
"PC_G_EU5") || (value ==
"PC_G_EU6") || (value ==
"PC_G_East") ||
257 (value ==
"PC_D_EU0") || (value ==
"PC_D_EU1") || (value ==
"PC_D_EU2") || (value ==
"PC_D_EU3") || (value ==
"PC_D_EU4") || (value ==
"PC_D_EU5") || (value ==
"PC_D_EU6") || (value ==
"Bus") || (value ==
"Coach") || (value ==
"HDV") || (value ==
"HDV_G") ||
258 (value ==
"HDV_D_EU0") || (value ==
"HDV_D_EU1") || (value ==
"HDV_D_EU2") || (value ==
"HDV_D_EU3") || (value ==
"HDV_D_EU4") || (value ==
"HDV_D_EU5") || (value ==
"HDV_D_EU6") || (value ==
"HDV_D_East")) {
266 return canParse<double>(value);
270 return canParse<double>(value);
276 return canParse<int>(value);
278 return canParse<int>(value);
280 return canParse<double>(value);
282 return canParse<double>(value);
286 return canParse<double>(value);
288 return canParse<double>(value);
319 myAccel = parse<double>(value);
322 myDecel = parse<double>(value);
325 mySigma = parse<double>(value);
328 myTau = parse<double>(value);
346 myColor = parse<RGBColor>(value);
358 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.
static StringBijection< SumoXMLTag > CarFollowModels
car following models
description of a vehicle type
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
const std::string & getAdditionalID() const
returns Additional ID
void updateGeometry(bool updateGrid)
update pre-computed geometry information
Stores the information about how to visualize structures.
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)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
double myAccel
The acceleration ability of vehicles of this type (in m/s^2)
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
std::string getParentName() const
Returns the name of the parent object.
GNECalibratorVehicleType(GNEViewNet *viewNet)
constructor (Used only in GNECalibratorDialog)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myDecel
The deceleration ability of vehicles of this type (in m/s^2)
void setDefaultValues()
change all attributes of additional with their default values (note: this cannot be undo) ...
std::string myLatAlignment
The preferred lateral alignment when using the sublane-model. One of (left, right, center, compact, nice, arbitrary).
void changeAdditionalID(const std::string &newID)
change ID of additional
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.
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
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
Position getPositionInView() const
Returns position of additional in view.
std::string myCarFollowModel
The model used for car following.
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
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.
A point in 2D or 3D with translation and scaling methods.
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
friend class GNEChange_Attribute
declare friend class
SUMOVehicleClass myVClass
An abstract vehicle class.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
const std::string getID() const
function to support debugging
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.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
double myBoardingDuration
The time required by a person to board the vehicle.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string & getTagStr() const
get tag assigned to this object in string format
std::string getGenericParametersStr() const
return generic parameters in string format
GNENet * getNet() const
get the net object
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.
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
double myMinGapLat
The minimum lateral gap at a speed difference of 100km/h when using the sublane-model.
bool hasString(const std::string &str) const
static bool isValidFilename(const std::string &value)
whether the given string is a valid attribute for a filename (for example, a name) ...
double myMaxSpeed
The vehicle's maximum velocity (in m/s)
static StringBijection< LaneChangeModel > LaneChangeModels
lane change models
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.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...