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