55 for (; it != end; ++it) {
63 fclass = fclass.substr(0, fclass.find_first_of(
"@"));
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
Representation of a vehicle in the micro simulation.
double getMaximumBatteryCapacity() const
Get the total vehicle's Battery Capacity in kWh.
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
MSLane * getLane() const
Returns the lane the vehicle is on.
double getActualBatteryCapacity() const
Get the actual vehicle's Battery Capacity in kWh.
double y() const
Returns the y-position.
double getPositionOnLane() const
Get the vehicle's position along the lane.
std::string time2string(SUMOTime t)
double x() const
Returns the x-position.
void setPrecision(int precision=gPrecision)
Sets the precison or resets it to default.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
std::string getChargingStationID() const
Get current Charging Station ID.
const PositionVector & getShape() const
Returns this lane's shape.
Position getPosition(const double offset=0) const
Return current position (x/y, cartesian)
const std::string & getID() const
Returns the id.
int getVehicleStopped() const
Get number of timestep that vehicle is stopped.
bool isChargingStopped() const
Get true if Vehicle is charging, false if not.
bool isOnRoad() const
Returns the information whether the vehicle is on a road (is simulated)
A point in 2D or 3D with translation and scaling methods.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
Energy charged in transit.
double getEnergyCharged() const
Get charged energy.
trigger: the time of the step
Battery device for electric vehicles.
MSDevice * getDevice(const std::type_info &type) const
Returns a device of the given type if it exists or 0.
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.
double getAcceleration() const
Returns the vehicle's acceleration in m/s (this is computed as the last step's mean acceleration in c...
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.
bool isChargingInTransit() const
Get true if Vehicle it's charging, false if not.
double getConsum() const
Get consum.
The class responsible for building and deletion of vehicles.
double getSpeed() const
Returns the vehicle's current speed.
const std::string & getID() const
Returns the name of the vehicle.
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
constVehIt loadedVehEnd() const
Returns the end of the internal vehicle map.