 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
49 for (; it != end; ++it) {
50 const MSVehicle* veh = static_cast<const MSVehicle*>((*it).second);
57 fclass = fclass.substr(0, fclass.find_first_of(
"@"));
double getMaximumBatteryCapacity() const
Get the total vehicle's Battery Capacity in kWh.
const std::string & getID() const
Returns the name of the vehicle type.
std::string getChargingStationID() const
Get current Charging Station ID.
Energy charged in transit.
bool isOnRoad() const
Returns the information whether the vehicle is on a road (is simulated)
Static storage of an output device and its base (abstract) implementation.
double getEnergyCharged() const
Get charged energy.
double getActualBatteryCapacity() const
Get the actual vehicle's Battery Capacity in kWh.
void setPrecision(int precision=gPrecision)
Sets the precison or resets it to default.
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.
const MSEdge * getEdge() const
Returns the edge the vehicle is currently at.
Position getPosition(const double offset=0) const
Return current position (x/y, cartesian)
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
double getPositionOnLane() const
Get the vehicle's position along the lane.
constVehIt loadedVehEnd() const
Returns the end of the internal vehicle map.
A point in 2D or 3D with translation and scaling methods.
double x() const
Returns the x-position.
std::string time2string(SUMOTime t)
Battery device for electric vehicles.
const MSVehicleType & getVehicleType() const
Returns the vehicle's type definition.
static void write(OutputDevice &of, SUMOTime timestep, int precision)
Writes the complete network state of the given edges into the given device.
trigger: the time of the step
double getConsum() const
Get consum.
MSLane * getLane() const
Returns the lane the vehicle is on.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
double y() const
Returns the y-position.
const std::string & getID() const
Returns the name of the vehicle.
double getAcceleration() const
Returns the vehicle's acceleration in m/s (this is computed as the last step's mean acceleration in c...
bool isChargingInTransit() const
Get true if Vehicle it's charging, false if not.
The class responsible for building and deletion of vehicles.
double getSpeed() const
Returns the vehicle's current speed.
bool isChargingStopped() const
Get true if Vehicle is charging, false if not.
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
MSVehicleDevice * getDevice(const std::type_info &type) const
Returns a device of the given type if it exists or 0.
const std::string & getID() const
Returns the id.
int getVehicleStopped() const
Get number of timestep that vehicle is stopped.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
Representation of a vehicle in the micro simulation.