54 const std::string& name,
55 double chargingPower,
double efficency,
bool chargeInTransit,
double chargeDelay);
111 charge(
SUMOTime _timeStep, std::string _vehicleID, std::string _vehicleType, std::string _status,
112 double _WCharged,
double _actualBatteryCapacity,
double _maxBatteryCapacity,
double _chargingPower,
113 double _chargingEfficiency,
double _totalEnergyCharged) :
double myChargingPower
Charging station's charging power.
MSChargingStation & operator=(const MSChargingStation &)
Invalidated assignment operator.
void writeChargingStationOutput(OutputDevice &output)
write charging station values
double myTotalCharge
total energy charged by this charging station
double getChargingPower() const
Get charging station's charging power.
bool getChargeInTransit() const
Get chargeInTransit.
void setChargingVehicle(bool value)
enable or disable charging vehicle
void setEfficency(double efficency)
Set efficiency of the charging station.
double getChargeDelay() const
Get Charge Delay.
double myEfficiency
Efficiency of the charging station.
void setChargingPower(double chargingPower)
Set charging station's charging power.
void setChargeDelay(double chargeDelay)
Set charge delay of the charging station.
double myChargeDelay
Charge Delay.
bool myChargeInTransit
Allow charge in transit.
std::vector< charge > myChargeValues
vector with the charges of this charging station
bool vehicleIsInside(const double position) const
Check if a vehicle is inside in the Charge Station.
MSChargingStation(const std::string &chargingStationID, MSLane &lane, double startPos, double endPos, const std::string &name, double chargingPower, double efficency, bool chargeInTransit, double chargeDelay)
constructor
double getTotalCharged() const
void addChargeValueForOutput(double WCharged, MSDevice_Battery *battery)
add charge value for output
double getEfficency() const
Get efficiency of the charging station.
MSChargingStation(const MSChargingStation &)
Invalidated copy constructor.
~MSChargingStation()
destructor
bool myChargingVehicle
Check if in the current TimeStep chargingStation is charging a vehicle.
bool isCharging() const
Return true if in the current time step charging station is charging a vehicle.
void setChargeInTransit(bool chargeInTransit)
Set charge in transit of the charging station.
Battery device for electric vehicles.
Representation of a lane in the micro simulation.
A lane area vehicles can halt at.
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
struct to save information for the cahrgingStation output
double totalEnergyCharged
double chargingEfficiency
double maxBatteryCapacity
charge(SUMOTime _timeStep, std::string _vehicleID, std::string _vehicleType, std::string _status, double _WCharged, double _actualBatteryCapacity, double _maxBatteryCapacity, double _chargingPower, double _chargingEfficiency, double _totalEnergyCharged)
constructor
double actualBatteryCapacity