36 #define EMPREFIX std::string("HBEFA3/") 51 speedFactor(
"normc", 1.0, 0.0, 0.2, 2.0),
54 osgFile(
"car-normal-citrus.obj"),
56 locomotiveLength(-1) {
105 osgFile =
"car-microcargo-citrus.obj";
117 osgFile =
"car-microcargo-citrus.obj";
129 osgFile =
"car-minibus-citrus.obj";
139 osgFile =
"car-minibus-citrus.obj";
268 if (oc.
exists(
"carfollow.model")) {
289 if (oc.
exists(
"default.speeddev")) {
290 const double defaultSpeedDev = oc.
getFloat(
"default.speeddev");
291 if (defaultSpeedDev >= 0) {
336 if (
impatience == -std::numeric_limits<double>::max()) {
572 return MAX2(decel, vcDecel);
577 return MAX2(decel, defaultOption);
602 return defaultParams;
std::string osgFile
3D model file for this class
const int VTYPEPARS_MAXSPEED_SET
const int VTYPEPARS_MINGAP_SET
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
const SubParams & getLCParams() const
Returns the LC parameter.
static StringBijection< SumoXMLTag > CarFollowModels
car following models
SumoXMLTag cfModel
The enum-representation of the car-following model to use.
const int VTYPEPARS_LATALIGNMENT_SET
double getJMParam(const SumoXMLAttr attr, const double defaultValue) const
Returns the named value from the map, or the default if it is not contained there.
description of a vehicle type
double impatience
The vehicle's impatience (willingness to obstruct others)
const int VTYPEPARS_HASDRIVERSTATE_SET
std::map< SumoXMLAttr, std::string > SubParams
sub-model parameters
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
double carriageLength
the length of train carriages and locomotive
vehicle is a not electrified rail
SUMOVehicleShape shape
This class' shape.
double maxSpeed
The vehicle type's maximum speed [m/s].
Structure representing possible vehicle parameter.
const int VTYPEPARS_MINGAP_LAT_SET
bool saved
Information whether this type was already saved (needed by routers)
SUMOVTypeParameter(const std::string &vtid, const SUMOVehicleClass vc=SVC_IGNORING)
Constructor.
render as a transport vehicle
double defaultProbability
The probability when being added to a distribution without an explicit probability.
vehicle is a small delivery vehicle
const int VTYPEPARS_DEFAULT_EMERGENCYDECEL_DECEL
int containerCapacity
The container capacity of the vehicle.
double width
This class' width.
const int VTYPEPARS_BOARDING_DURATION
SUMOVehicleClass vehicleClass
The vehicle's class.
automated car (with cruise controllers)
std::vector< double > & getParameter()
Returns the parameters of this distribution.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
const double DEFAULT_VEH_PROB
const int VTYPEPARS_CAR_FOLLOW_MODEL
const int VTYPEPARS_OSGFILE_SET
const int VTYPEPARS_MAXSPEED_LAT_SET
const int VTYPEPARS_PROBABILITY_SET
std::string getLCParamString(const SumoXMLAttr attr, const std::string &defaultValue) const
Returns the named value from the map, or the default if it is not contained there.
rail vehicle that requires electrified tracks
static double getDefaultAccel(const SUMOVehicleClass vc=SVC_IGNORING)
Returns the default acceleration for the given vehicle class This needs to be a function because the ...
static OptionsCont & getOptions()
Retrieves the options.
double height
This class' height.
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
const int VTYPEPARS_LANE_CHANGE_MODEL_SET
int personCapacity
The person capacity of the vehicle.
vehicle is a large transport vehicle
static double getDefaultImperfection(const SUMOVehicleClass vc=SVC_IGNORING)
Returns the default driver's imperfection (sigma or epsilon in Krauss' model) for the given vehicle c...
double getLCParam(const SumoXMLAttr attr, const double defaultValue) const
Returns the named value from the map, or the default if it is not contained there.
SUMOVehicleShape shape
This class' shape.
bool wasSet(int what) const
Returns whether the given parameter was set.
double maxSpeed
The vehicle type's maximum speed [m/s].
double width
This class' width.
SUMOTime boardingDuration
The time a person needs to board the vehicle.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const int VTYPEPARS_ACTIONSTEPLENGTH_SET
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter ...
std::string osgFile
3D model file for this class
double locomotiveLength
the length of train locomotive
T get(const std::string &str) const
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
struct for default values that depend of VClass
std::string imgFile
Image file for this class.
bool exists(const std::string &name) const
Returns the information whether the named option is known.
double length
The physical vehicle length.
render as a (city) rail without locomotive
static double getDefaultDecel(const SUMOVehicleClass vc=SVC_IGNORING)
Returns the default deceleration for the given vehicle class This needs to be a function because the ...
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
render as a passenger vehicle
const int VTYPEPARS_LOADING_DURATION
double carriageLength
the length of train carriages
const int VTYPEPARS_CONTAINER_CAPACITY
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
vehicle is a passenger car (a "normal" car)
bool onlyReferenced
Information whether this is a type-stub, being only referenced but not defined (needed by routers) ...
const int VTYPEPARS_SPEEDFACTOR_SET
void writeParams(OutputDevice &device) const
write Params in the given outputdevice
double maxSpeedLat
The vehicle type's maximum lateral speed [m/s].
double getCFParam(const SumoXMLAttr attr, const double defaultValue) const
Returns the named value from the map, or the default if it is not contained there.
int parametersSet
Information for the router which parameter were set.
double height
This class' height.
int personCapacity
The person capacity of the vehicle.
bool hasDriverState
Whether vehicles of this type are equipped with a driver (i.e. MSDriverState))
double minGapLat
The vehicle type's minimum lateral gap [m].
void write(OutputDevice &dev) const
Writes the vtype.
int containerCapacity
The container capacity of the vehicle.
std::string getCFParamString(const SumoXMLAttr attr, const std::string defaultValue) const
Returns the named value from the map, or the default if it is not contained there.
Distribution_Parameterized speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street...
const double DEFAULT_PEDESTRIAN_SPEED
render as a arbitrary ship
static SUMOEmissionClass getClassByName(const std::string &eClass, const SUMOVehicleClass vc=SVC_IGNORING)
Checks whether the string describes a known vehicle class.
VClassDefaultValues()
default constructor
SubParams jmParameter
Junction-model parameter.
const int VTYPEPARS_IMGFILE_SET
SubParams cfParameter
Car-following parameter.
SUMOTime loadingDuration
The time a container needs to get loaded on the vehicle.
A storage for options typed value containers)
vehicle is a large transport vehicle
std::string id
The vehicle type's id.
const int VTYPEPARS_DEFAULT_EMERGENCYDECEL_DEFAULT
SUMOEmissionClass emissionClass
The emission class of this vehicle.
const int VTYPEPARS_PERSON_CAPACITY
static double getDefaultEmergencyDecel(const SUMOVehicleClass vc, double decel, double defaultOption)
Returns the default emergency deceleration for the given vehicle class This needs to be a function be...
LateralAlignment latAlignment
The vehicles desired lateral alignment.
SUMOTime actionStepLength
The vehicle type's default actionStepLength [ms], i.e. the interval between two control actions...
double minGap
This class' free space in front of the vehicle itself.
render as a (futuristic) e-vehicle
const int VTYPEPARS_HEIGHT_SET
std::string getJMParamString(const SumoXMLAttr attr, const std::string defaultValue) const
Returns the named value from the map, or the default if it is not contained there.
Static storage of an output device and its base (abstract) implementation.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
const int VTYPEPARS_WIDTH_SET
LaneChangeModel lcModel
The lane-change model to use.
static const SUMOVTypeParameter & getDefault()
return the default parameters, this is a function due to the http://www.parashift.com/c++-faq/static-init-order.html
public emergency vehicles
render as a transport vehicle with one trailer
const int VTYPEPARS_LENGTH_SET
const int VTYPEPARS_VEHICLECLASS_SET
const int VTYPEPARS_EMISSIONCLASS_SET
const int VTYPEPARS_COLOR_SET
Distribution_Parameterized speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street...
const int VTYPEPARS_SHAPE_SET
double length
The physical vehicle length.
SubParams lcParameter
Lane-changing parameter.
vehicle that is allowed to drive on high-speed rail tracks
SUMOEmissionClass emissionClass
The emission class of this vehicle.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
double minGap
This class' free space in front of the vehicle itself.
const int VTYPEPARS_IMPATIENCE_SET
Helper methods for PHEMlight-based emission computation.