44 #include <mesosim/MELoop.h> 45 #include <mesosim/MESegment.h> 48 #ifdef CHECK_MEMORY_LEAKS 50 #endif // CHECK_MEMORY_LEAKS 64 for (; it != end; ++it) {
72 fclass = fclass.substr(0, fclass.find_first_of(
"@"));
106 of.
writeAttr(
"energyChargedInTransit", 0.00);
113 of.
writeAttr(
"energyChargedStopped", 0.00);
bool isChargingStopped() const
Get parameter 15, true if Vehicle it's charging, false if not.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
MSDevice * getDevice(const std::type_info &type) const
Returns a device of the given type if it exists or 0.
Representation of a vehicle in the micro simulation.
SUMOReal getConsum() const
Get parameter 18, consum (Strange error with linker)
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
Position getPosition(const SUMOReal offset=0) const
Return current position (x/y, cartesian)
std::string time2string(SUMOTime t)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
int getVehicleStopped() const
Get parameter 20, charging energy.
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
SUMOReal x() const
Returns the x-position.
const std::string & getID() const
Returns the id.
void setPrecision(unsigned int precision=OUTPUT_ACCURACY)
Sets the precison or resets it to default.
A point in 2D or 3D with translation and scaling methods.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
Position positionAtOffset(SUMOReal pos, SUMOReal lateralOffset=0) const
Returns the position at the given length.
SUMOReal getActualBatteryCapacity() const
Get parameter 01, the actual vehicles' Battery Capacity in kWh.
bool isChargingInTransit() const
Get parameter 16, true if Vehicle it's charging, false if not.
SUMOReal getChrgEnergy() const
Get parameter 20, charging energy.
The battery parametereter.
static void write(OutputDevice &of, SUMOTime timestep, int precision)
Writes the complete network state of the given edges into the given device.
SUMOReal getAcceleration() const
Returns the vehicle's acceleration in m/s.
SUMOReal y() const
Returns the y-position.
const MSVehicleType & getVehicleType() const
Returns the vehicle's type definition.
const std::string & getID() const
Returns the name of the vehicle type.
SUMOReal getSpeed() const
Returns the vehicle's current speed.
std::map< std::string, SUMOVehicle * >::const_iterator constVehIt
Definition of the internal vehicles map iterator.
const PositionVector & getShape() const
Returns this lane's shape.
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.
SUMOReal getMaximumBatteryCapacity() const
Get parameter 02, the total vehicles' Battery Capacity in kWh.
bool isOnRoad() const
Returns the information whether the vehicle is on a road (is simulated)
MSLane * getLane() const
Returns the lane the vehicle is on.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
const std::string & getChargingStationID() const
Get parameter 19, Charging Station I.
const std::string & getID() const
Returns the name of the vehicle.