OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.
virtual const std::string & getID() const =0
Get the vehicle's ID.
virtual double getAcceleration() const =0
Returns the vehicle's acceleration.
static std::map< std::string, int > myWrittenVehicles
int getNumericalID() const
Returns the running index of the vehicle type.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static std::string getAmitranVehicleClass(const SUMOEmissionClass c)
Returns the vehicle class described by the given emission class.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
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)
static std::set< std::string > myWrittenTypes
static int getEuroClass(const SUMOEmissionClass c)
Returns the Euro norm described by the given emission class.
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.eu/deliverables/COLOMBO_D4.2_ExtendedPHEMSUMO_v1.7.pdf.
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.
const std::string & getID() const
Returns the name of the vehicle type.
static void write(OutputDevice &of, const SUMOTime timestep)
Writes the complete network state into the given device.
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(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
The class responsible for building and deletion of vehicles.
virtual double getSpeed() const =0
Returns the vehicle's current speed.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
constVehIt loadedVehEnd() const
Returns the end of the internal vehicle map.
static std::string getFuel(const SUMOEmissionClass c)
Returns the fuel type of the given emission class.