SUMO - Simulation of Urban MObility
SUMOVTypeParameter Class Reference

Structure representing possible vehicle parameter. More...

#include <SUMOVTypeParameter.h>

Public Types

typedef std::map< SumoXMLAttr,
SUMOReal
CFParams
 Car-following parameter.

Public Member Functions

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.
 SUMOVTypeParameter ()
 Constructor.
void validateCFParameter () const
 Validates stored car-following parameter.
bool wasSet (int what) const
 Returns whether the given parameter was set.
void write (OutputDevice &dev) const
 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.
SUMOReal height
 This class' height.
SUMOVehicleShape shape
 This class' shape.
std::string osgFile
 This class 3D model file.

Detailed Description

Structure representing possible vehicle parameter.

Definition at line 74 of file SUMOVTypeParameter.h.


Member Typedef Documentation

Car-following parameter.

Definition at line 156 of file SUMOVTypeParameter.h.


Constructor & Destructor Documentation


Member Function Documentation

SUMOReal SUMOVTypeParameter::get ( const SumoXMLAttr  attr,
const SUMOReal  defaultValue 
) const

Returns the named value from the map, or the default if it is ot contained there.

Parameters:
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns:
The named value from the map or the default if it does not exist there

Definition at line 130 of file SUMOVTypeParameter.cpp.

References cfParameter.

Referenced by MSVehicleType::build(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getNOxEffort(), and ROEdge::getPMxEffort().

Validates stored car-following parameter.

bool SUMOVTypeParameter::wasSet ( int  what) const [inline]

Returns whether the given parameter was set.

Parameters:
[in]whatThe parameter which one asks for
Returns:
Whether the given parameter was set

Definition at line 87 of file SUMOVTypeParameter.h.

References setParameter.

Referenced by write().


Field Documentation

The enum-representation of the car-following model to use.

Definition at line 153 of file SUMOVTypeParameter.h.

Referenced by MSVehicleType::build(), SUMOVehicleParserHelper::parseVTypeEmbedded(), and write().

The probability when being added to a distribution without an explicit probability.

Definition at line 122 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), and write().

The name of the lane-change model to use.

Definition at line 160 of file SUMOVTypeParameter.h.

Referenced by MSVehicleType::build().

The physical vehicle length + the standing gap in m.

Definition at line 116 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), and write().

This class' free space in front of the vehicle itself.

Definition at line 118 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), and write().

Information whether this is a type-stub, being only referenced but not defined (needed by routers)

Definition at line 170 of file SUMOVTypeParameter.h.

Referenced by RONet::getVehicleTypeSecure(), RONet::RONet(), and write().

This class 3D model file.

Definition at line 148 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), and write().

Information whether this type was already saved (needed by routers)

Definition at line 167 of file SUMOVTypeParameter.h.

Referenced by ROVehicle::saveAllAsXML().

Information for the router which parameter were set.

Definition at line 163 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), and wasSet().

The standard deviation for speed variations.

Definition at line 126 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), and write().

The factor by which the maximum speed may deviate from the allowed max speed on the street.

Definition at line 124 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), and write().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines