41 #ifdef CHECK_MEMORY_LEAKS 43 #endif // CHECK_MEMORY_LEAKS static SUMOReal getWeight(const SUMOEmissionClass c)
Returns a representative weight for the given emission class see http://colombo-fp7.eu/deliverables/COLOMBO_D4.2_ExtendedPHEMSUMO_v1.7.pdf.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
static std::map< std::string, int > myWrittenVehicles
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
the weight of a district's source or sink
static std::string getAmitranVehicleClass(const SUMOEmissionClass c)
Returns the vehicle class described by the given emission class.
Representation of a vehicle.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual bool isOnRoad() const =0
Returns the information whether the vehicle is on a road (is simulated)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
static std::set< std::string > myWrittenTypes
int getNumericalID() const
Returns the running index of the vehicle type.
static int getEuroClass(const SUMOEmissionClass c)
Returns the Euro norm described by the given emission class.
virtual SUMOReal getSpeed() const =0
Returns the vehicle's current speed.
virtual SUMOTime getDeparture() const =0
Returns this vehicle's real departure time.
static void writeVehicle(OutputDevice &of, const SUMOVehicle &veh, const SUMOTime timestep)
Writes the dump of the given vehicle into the given device.
virtual SUMOReal getAcceleration() const =0
Returns the vehicle's acceleration.
static void write(OutputDevice &of, const SUMOTime timestep)
Writes the complete network state into the given device.
const std::string & getID() const
Returns the name of the vehicle type.
std::map< std::string, SUMOVehicle * >::const_iterator constVehIt
Definition of the internal vehicles map iterator.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
constVehIt loadedVehEnd() const
Returns the end of the internal vehicle map.
The class responsible for building and deletion of vehicles.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
virtual const std::string & getID() const =0
Get the vehicle's ID.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
static std::string getFuel(const SUMOEmissionClass c)
Returns the fuel type of the given emission class.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.