OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
virtual bool isOnRoad() const =0
Returns the information whether the vehicle is on a road (is simulated)
virtual SUMOTime getDeparture() const =0
Returns this vehicle's real departure time.
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).
virtual double getAcceleration() const =0
Returns the vehicle's acceleration.
static std::string getAmitranVehicleClass(const SUMOEmissionClass c)
Returns the vehicle class described by the given emission class.
virtual double getSpeed() const =0
Returns the vehicle's current speed.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Representation of a vehicle.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.
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.
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.
static void writeVehicle(OutputDevice &of, const SUMOVehicle &veh, const SUMOTime timestep)
Writes the dump of the given vehicle into the given device.
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.
virtual const std::string & getID() const =0
Get the vehicle's ID.
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.
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.