42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
51 SUMOReal chargingPower,
SUMOReal efficency,
bool chargeInTransit,
int chargeDelay) :
52 MSStoppingPlace(chargingStationID, std::vector<std::string>(), lane, startPos, endPos),
55 myChargeInTransit(chargeInTransit),
57 myChargingVehicle(false) {
58 if (chargingPower < 0)
64 if (efficency < 0 || efficency > 1)
112 if (chargingPower < 0)
122 if (efficency < 0 || efficency > 1)
SUMOReal myChargingPower
Charging station's charging power.
bool isCharging() const
Return true if in the current time step charging station is charging a vehicle.
A lane area vehicles can halt at.
~MSChargingStation()
destructor
void setChargeDelay(int chargeDelay)
Set charge delay of the charging station.
SUMOReal getChargingPower() const
Get charging station's charging power.
SUMOReal getEndLanePosition() const
Returns the end position of this stop.
SUMOReal myEfficiency
Efficiency of the charging station.
#define WRITE_WARNING(msg)
bool myChargingVehicle
Check if in the current TimeStep chargingStation is charging a vehicle.
const std::string & getID() const
Returns the id.
MSChargingStation(const std::string &chargingStationID, MSLane &lane, SUMOReal startPos, SUMOReal endPos, SUMOReal chargingPower, SUMOReal efficency, bool chargeInTransit, int chargeDelay)
constructor
void setChargingPower(SUMOReal chargingPower)
Set charging station's charging power.
bool getChargeInTransit() const
Get chargeInTransit.
void setChargingVehicle(bool value)
enable or disable charging vehicle
SUMOReal getEfficency() const
Get efficiency of the charging station.
SUMOReal getChargeDelay() const
Get Charge Delay.
void setChargeInTransit(bool chargeInTransit)
Set charge in transit of the charging station.
bool vehicleIsInside(const SUMOReal position) const
Check if a vehicle is inside in the Charge Station.
int myChargeDelay
Charge Delay.
bool myChargeInTransit
Allow charge in transit.
SUMOReal getBeginLanePosition() const
Returns the begin position of this stop.
void setEfficency(SUMOReal efficency)
Set efficiency of the charging station.
Representation of a lane in the micro simulation.
static std::string _2str(const int var)
convert int to string