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.
SUMOReal getEfficency() const
Get efficiency of the charging station.
A lane area vehicles can halt at.
~MSChargingStation()
destructor
void setChargeDelay(int chargeDelay)
Set charge delay of the charging station.
SUMOReal getEndLanePosition() const
Returns the end position of this stop.
SUMOReal myEfficiency
Efficiency of the charging station.
const std::string & getID() const
Returns the id.
bool isCharging() const
Return true if in the current time step charging station is charging a vehicle.
#define WRITE_WARNING(msg)
SUMOReal getChargeDelay() const
Get Charge Delay.
bool getChargeInTransit() const
Get chargeInTransit.
bool myChargingVehicle
Check if in the current TimeStep chargingStation is charging a vehicle.
SUMOReal getBeginLanePosition() const
Returns the begin position of this stop.
bool vehicleIsInside(const SUMOReal position) const
Check if a vehicle is inside in the Charge Station.
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.
void setChargingVehicle(bool value)
enable or disable charging vehicle
void setChargeInTransit(bool chargeInTransit)
Set charge in transit of the charging station.
SUMOReal getChargingPower() const
Get charging station's charging power.
int myChargeDelay
Charge Delay.
bool myChargeInTransit
Allow charge in transit.
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