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