 |
Eclipse SUMO - Simulation of Urban MObility
|
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
const std::string & getID() const
Returns the name of the vehicle type.
int getNumericalID() const
Returns the running index of the vehicle type.
static std::map< std::string, int > myWrittenVehicles
virtual double getAcceleration() const =0
Returns the vehicle's acceleration.
Static storage of an output device and its base (abstract) implementation.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.
virtual const std::string & getID() const =0
Get the vehicle's ID.
static int getEuroClass(const SUMOEmissionClass c)
Returns the Euro norm described by the given emission class.
Representation of a vehicle.
virtual bool isOnRoad() const =0
Returns the information whether the vehicle is on a road (is simulated)
std::map< std::string, SUMOVehicle * >::const_iterator constVehIt
Definition of the internal vehicles map iterator.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
virtual SUMOTime getDeparture() const =0
Returns this vehicle's real departure time.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
static std::string getAmitranVehicleClass(const SUMOEmissionClass c)
Returns the vehicle class described by the given emission class.
constVehIt loadedVehEnd() const
Returns the end of the internal vehicle map.
@ SUMO_TAG_VEHICLE
description of a vehicle
@ SUMO_ATTR_TIME
trigger: the time of the step
static double getWeight(const SUMOEmissionClass c)
Returns a representative weight for the given emission class see http://colombo-fp7....
static std::string getFuel(const SUMOEmissionClass c)
Returns the fuel type of the given emission class.
static std::set< std::string > myWrittenTypes
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static void writeVehicle(OutputDevice &of, const SUMOVehicle &veh, const SUMOTime timestep)
Writes the dump of the given vehicle into the given device.
The class responsible for building and deletion of vehicles.
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
static void write(OutputDevice &of, const SUMOTime timestep)
Writes the complete network state into the given device.
@ SUMO_ATTR_EMISSIONCLASS
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual double getSpeed() const =0
Returns the vehicle's current speed.