Eclipse SUMO - Simulation of Urban MObility
MSElecHybridExport Class Reference

Realises dumping Battery Data. More...

#include <MSElecHybridExport.h>

Static Public Member Functions

static void write (OutputDevice &of, const SUMOVehicle *veh, SUMOTime timestep, int precision)
 Writes the complete network state of the given edges into the given device. More...
 
static void writeAggregated (OutputDevice &of, SUMOTime timestep, int precision)
 

Private Member Functions

 MSElecHybridExport (const MSElecHybridExport &)
 Invalidated copy constructor. More...
 
MSElecHybridExportoperator= (const MSElecHybridExport &)
 Invalidated assignment operator. More...
 

Detailed Description

Realises dumping Battery Data.

The class offers a static method, which writes all available Battery factors of each vehicles of the network into the given OutputDevice.

Todo:
consider error-handling on write (using IOError)

Definition at line 45 of file MSElecHybridExport.h.

Constructor & Destructor Documentation

◆ MSElecHybridExport()

MSElecHybridExport::MSElecHybridExport ( const MSElecHybridExport )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

MSElecHybridExport& MSElecHybridExport::operator= ( const MSElecHybridExport )
private

Invalidated assignment operator.

◆ write()

void MSElecHybridExport::write ( OutputDevice of,
const SUMOVehicle veh,
SUMOTime  timestep,
int  precision 
)
static

Writes the complete network state of the given edges into the given device.

Opens the current time step and export the Battery factors of all availabel vehicles

Parameters
[in]ofThe output device to use
[in]timestepThe current time step
[in]precisionThe output precision
Exceptions
IOErrorIf an error on writing occurs (!!! not yet implemented)

Definition at line 118 of file MSElecHybridExport.cpp.

References OutputDevice::closeTag(), SUMOTrafficObject::getAcceleration(), MSDevice_ElecHybrid::getActualBatteryCapacity(), MSDevice_ElecHybrid::getCircuitAlpha(), MSDevice_ElecHybrid::getConsum(), MSDevice_ElecHybrid::getCurrentFromOverheadWire(), SUMOTrafficObject::getDevice(), MSDevice_ElecHybrid::getEnergyCharged(), Named::getID(), MSVehicle::getLane(), SUMOVehicle::getOdometer(), MSDevice_ElecHybrid::getOverheadWireSegmentID(), SUMOTrafficObject::getPosition(), SUMOTrafficObject::getPositionOnLane(), MSDevice_ElecHybrid::getPowerWanted(), SUMOTrafficObject::getSlope(), SUMOTrafficObject::getSpeed(), MSDevice_ElecHybrid::getTractionSubstationID(), MSDevice_ElecHybrid::getVoltageOfOverheadWire(), SUMOVehicle::isOnRoad(), OutputDevice::openTag(), OutputDevice::setPrecision(), SUMO_ATTR_ACCELERATION, SUMO_ATTR_ACTUALBATTERYCAPACITY, SUMO_ATTR_ALPHACIRCUITSOLVER, SUMO_ATTR_CHARGINGPOWER, SUMO_ATTR_CURRENTFROMOVERHEADWIRE, SUMO_ATTR_DISTANCE, SUMO_ATTR_ENERGYCHARGED, SUMO_ATTR_ENERGYCONSUMED, SUMO_ATTR_LANE, SUMO_ATTR_OVERHEADWIREID, SUMO_ATTR_POSONLANE, SUMO_ATTR_SLOPE, SUMO_ATTR_SPEED, SUMO_ATTR_TIME, SUMO_ATTR_TRACTIONSUBSTATIONID, SUMO_ATTR_VOLTAGEOFOVERHEADWIRE, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, SUMO_TAG_TIMESTEP, time2string(), OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

◆ writeAggregated()

void MSElecHybridExport::writeAggregated ( OutputDevice of,
SUMOTime  timestep,
int  precision 
)
static

Definition at line 39 of file MSElecHybridExport.cpp.

References OutputDevice::closeTag(), SUMOTrafficObject::getAcceleration(), MSDevice_ElecHybrid::getActualBatteryCapacity(), MSDevice_ElecHybrid::getCircuitAlpha(), MSDevice_ElecHybrid::getConsum(), MSDevice_ElecHybrid::getCurrentFromOverheadWire(), SUMOTrafficObject::getDevice(), MSDevice_ElecHybrid::getEnergyCharged(), MSVehicleType::getID(), Named::getID(), MSNet::getInstance(), MSVehicle::getLane(), MSDevice_ElecHybrid::getMaximumBatteryCapacity(), SUMOVehicle::getOdometer(), MSDevice_ElecHybrid::getOverheadWireSegmentID(), SUMOTrafficObject::getPosition(), SUMOTrafficObject::getPositionOnLane(), MSDevice_ElecHybrid::getPowerWanted(), SUMOTrafficObject::getSlope(), SUMOTrafficObject::getSpeed(), MSDevice_ElecHybrid::getTractionSubstationID(), MSNet::getVehicleControl(), SUMOTrafficObject::getVehicleType(), MSDevice_ElecHybrid::getVoltageOfOverheadWire(), SUMOVehicle::isOnRoad(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), OutputDevice::openTag(), OutputDevice::setPrecision(), SUMO_ATTR_ACCELERATION, SUMO_ATTR_ACTUALBATTERYCAPACITY, SUMO_ATTR_ALPHACIRCUITSOLVER, SUMO_ATTR_CHARGINGPOWER, SUMO_ATTR_CURRENTFROMOVERHEADWIRE, SUMO_ATTR_DISTANCE, SUMO_ATTR_ENERGYCHARGED, SUMO_ATTR_ENERGYCONSUMED, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, SUMO_ATTR_OVERHEADWIREID, SUMO_ATTR_POSONLANE, SUMO_ATTR_SLOPE, SUMO_ATTR_SPEED, SUMO_ATTR_TIME, SUMO_ATTR_TRACTIONSUBSTATIONID, SUMO_ATTR_VOLTAGEOFOVERHEADWIRE, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, SUMO_TAG_TIMESTEP, SUMO_TAG_VEHICLE, time2string(), OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: