|
SUMO - Simulation of Urban MObility
|
Structure representing possible vehicle parameter. More...
#include <SUMOVTypeParameter.h>
Public Types | |
| typedef std::map< SumoXMLAttr, SUMOReal > | CFParams |
| Car-following parameter. | |
Public Member Functions | |
| SUMOVTypeParameter () throw () | |
| Constructor. | |
| void | validateCFParameter () const throw () |
| Validates stored car-following parameter. | |
| bool | wasSet (int what) const throw () |
| Returns whether the given parameter was set. | |
| void | write (OutputDevice &dev) const throw (IOError) |
| Writes the vtype. | |
Data Fields | |
| SumoXMLTag | cfModel |
| The enum-representation of the car-following model to use. | |
| CFParams | cfParameter |
| RGBColor | color |
| The color. | |
| SUMOReal | defaultProbability |
| The probability when being added to a distribution without an explicit probability. | |
| SUMOEmissionClass | emissionClass |
| The emission class of this vehicle. | |
| std::string | id |
| The vehicle type's id. | |
| std::string | lcModel |
| The name of the lane-change model to use. | |
| SUMOReal | length |
| The physical vehicle length + the standing gap in m. | |
| SUMOReal | maxSpeed |
| The vehicle type's maximum speed [m/s]. | |
| SUMOReal | minGap |
| This class' free space in front of the vehicle itself. | |
| bool | onlyReferenced |
| Information whether this is a type-stub, being only referenced but not defined (needed by routers) | |
| bool | saved |
| Information whether this type was already saved (needed by routers) | |
| int | setParameter |
| Information for the router which parameter were set. | |
| SUMOReal | speedDev |
| The standard deviation for speed variations. | |
| SUMOReal | speedFactor |
| The factor by which the maximum speed may deviate from the allowed max speed on the street. | |
| SUMOVehicleClass | vehicleClass |
| The vehicle's class. | |
Values for drawing this class' vehicles | |
| SUMOReal | width |
| This class' width. | |
| SUMOVehicleShape | shape |
| This class' shape. | |
Structure representing possible vehicle parameter.
Definition at line 69 of file SUMOVTypeParameter.h.
| typedef std::map<SumoXMLAttr, SUMOReal> SUMOVTypeParameter::CFParams |
Car-following parameter.
Definition at line 137 of file SUMOVTypeParameter.h.
| SUMOVTypeParameter::SUMOVTypeParameter | ( | ) | throw () |
Constructor.
Initialises the structure with default values
Definition at line 47 of file SUMOVTypeParameter.cpp.
| void SUMOVTypeParameter::validateCFParameter | ( | ) | const throw () |
Validates stored car-following parameter.
| bool SUMOVTypeParameter::wasSet | ( | int | what | ) | const throw () [inline] |
Returns whether the given parameter was set.
| [in] | what | The parameter which one asks for |
Definition at line 82 of file SUMOVTypeParameter.h.
References setParameter.
| void SUMOVTypeParameter::write | ( | OutputDevice & | dev | ) | const throw (IOError) |
Writes the vtype.
| [in,out] | dev | The device to write into |
| IOError | not yet implemented |
Definition at line 61 of file SUMOVTypeParameter.cpp.
References getVehicleEmissionTypeName(), getVehicleShapeName(), SUMO_ATTR_COLOR, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_GUISHAPE, SUMO_ATTR_GUIWIDTH, SUMO_ATTR_ID, SUMO_ATTR_LENGTH, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MINGAP, SUMO_ATTR_PROB, SUMO_ATTR_SPEEDDEV, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_VCLASS, SUMO_TAG_VTYPE, toString(), VTYPEPARS_COLOR_SET, VTYPEPARS_EMISSIONCLASS_SET, VTYPEPARS_LENGTH_SET, VTYPEPARS_MAXSPEED_SET, VTYPEPARS_MINGAP_SET, VTYPEPARS_PROBABILITY_SET, VTYPEPARS_SHAPE_SET, VTYPEPARS_SPEEDDEVIATION_SET, VTYPEPARS_SPEEDFACTOR_SET, VTYPEPARS_VEHICLECLASS_SET, and VTYPEPARS_WIDTH_SET.
The enum-representation of the car-following model to use.
Definition at line 134 of file SUMOVTypeParameter.h.
Definition at line 138 of file SUMOVTypeParameter.h.
The color.
Definition at line 117 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
The probability when being added to a distribution without an explicit probability.
Definition at line 109 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
The emission class of this vehicle.
Definition at line 115 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
| std::string SUMOVTypeParameter::id |
The vehicle type's id.
Definition at line 100 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), and RONet::getVehicleTypeSecure().
| std::string SUMOVTypeParameter::lcModel |
The name of the lane-change model to use.
Definition at line 141 of file SUMOVTypeParameter.h.
| SUMOReal SUMOVTypeParameter::length |
The physical vehicle length + the standing gap in m.
Definition at line 103 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
| SUMOReal SUMOVTypeParameter::maxSpeed |
The vehicle type's maximum speed [m/s].
Definition at line 107 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
| SUMOReal SUMOVTypeParameter::minGap |
This class' free space in front of the vehicle itself.
Definition at line 105 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
bool SUMOVTypeParameter::onlyReferenced [mutable] |
Information whether this is a type-stub, being only referenced but not defined (needed by routers)
Definition at line 151 of file SUMOVTypeParameter.h.
Referenced by RONet::getVehicleTypeSecure().
bool SUMOVTypeParameter::saved [mutable] |
Information whether this type was already saved (needed by routers)
Definition at line 148 of file SUMOVTypeParameter.h.
Information for the router which parameter were set.
Definition at line 144 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), and wasSet().
This class' shape.
Definition at line 129 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
| SUMOReal SUMOVTypeParameter::speedDev |
The standard deviation for speed variations.
Definition at line 113 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
| SUMOReal SUMOVTypeParameter::speedFactor |
The factor by which the maximum speed may deviate from the allowed max speed on the street.
Definition at line 111 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
The vehicle's class.
Definition at line 119 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().
| SUMOReal SUMOVTypeParameter::width |
This class' width.
Definition at line 126 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing().