42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
61 setParameter(0), saved(false), onlyReferenced(false) {
127 std::vector<SumoXMLAttr> attrs;
129 attrs.push_back(i->first);
131 std::sort(attrs.begin(), attrs.end());
132 for (std::vector<SumoXMLAttr>::const_iterator i = attrs.begin(); i != attrs.end(); ++i) {
const int VTYPEPARS_MAXSPEED_SET
const LaneChangeModel DEFAULT_VEH_LANE_CHANGE_MODEL
const int VTYPEPARS_MINGAP_SET
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
SumoXMLTag cfModel
The enum-representation of the car-following model to use.
SUMOReal get(const SumoXMLAttr attr, const SUMOReal defaultValue) const
Returns the named value from the map, or the default if it is ot contained there. ...
std::string getVehicleEmissionTypeName(SUMOEmissionClass id)
Returns the class name of the emission class given by its id.
SUMOVehicleShape shape
This class' shape.
SUMOReal speedDev
The standard deviation for speed variations.
SUMOReal length
The physical vehicle length.
const SUMOVehicleShape DEFAULT_VEH_SHAPE
SUMOVehicleClass vehicleClass
The vehicle's class.
const SUMOReal DEFAULT_VEH_PROB
const SumoXMLTag DEFAULT_VEH_FOLLOW_MODEL
const SUMOReal DEFAULT_VEH_LENGTH
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
SUMOReal width
This class' width.
const int VTYPEPARS_OSGFILE_SET
const int VTYPEPARS_PROBABILITY_SET
const std::string DEFAULT_VTYPE_ID
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
SUMOReal speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street...
std::string osgFile
3D model file for this class
std::string imgFile
Image file for this class.
const SUMOReal DEFAULT_VEH_MAXSPEED
SUMOVTypeParameter()
Constructor.
const int VTYPEPARS_SPEEDDEVIATION_SET
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
const SUMOReal DEFAULT_VEH_SPEEDDEV
bool onlyReferenced
Information whether this is a type-stub, being only referenced but not defined (needed by routers) ...
const int VTYPEPARS_SPEEDFACTOR_SET
void write(OutputDevice &dev) const
Writes the vtype.
SUMOReal maxSpeed
The vehicle type's maximum speed [m/s].
const SUMOReal DEFAULT_VEH_MINGAP
SUMOReal impatience
The vehicle's impatience (willingness to obstruct others)
bool wasSet(int what) const
Returns whether the given parameter was set.
SUMOReal defaultProbability
The probability when being added to a distribution without an explicit probability.
const int VTYPEPARS_IMGFILE_SET
const SUMOReal DEFAULT_VEH_WIDTH
const int VTYPEPARS_LCM_SET
const SUMOReal DEFAULT_VEH_HEIGHT
const int VTYPEPARS_HEIGHT_SET
const SUMOReal DEFAULT_VEH_SPEEDFACTOR
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
const int VTYPEPARS_WIDTH_SET
LaneChangeModel lcModel
The lane-change model to use.
SUMOReal height
This class' height.
const int VTYPEPARS_LENGTH_SET
const int VTYPEPARS_VEHICLECLASS_SET
const int VTYPEPARS_EMISSIONCLASS_SET
const int VTYPEPARS_COLOR_SET
const int VTYPEPARS_SHAPE_SET
SUMOEmissionClass emissionClass
The emission class of this vehicle.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
const int VTYPEPARS_IMPATIENCE_SET
SUMOReal minGap
This class' free space in front of the vehicle itself.