41 #ifdef CHECK_MEMORY_LEAKS 43 #endif // CHECK_MEMORY_LEAKS 50 const std::vector<std::string>& new_lines,
53 MSStoppingPlace(new_ChargingStationID, new_lines, new_Lane, new_StartPos, new_EndPos),
54 ChrgPower(new_ChrgPower),
55 Efficency(new_Efficency),
56 ChargeInTransit(new_ChargeInTransit),
57 ChargeDelay(new_ChargeDelay) {
59 std::cout << std::string(
"Warning: Charging Station with ID = " +
getID() +
" doesn't have a valid charging power(" +
SUMOReal_str(
getChrgPower()) +
").");
63 std::cout << std::string(
"Warning: Charging Station with ID = " +
getID() +
" doesn't have a valid Efficency (" +
SUMOReal_str(
getEfficency()) +
").");
105 if (new_ChrgPower < 0) {
106 std::cout << std::string(
"Warning: Chargin Station with ID = " +
getID() +
" doesn't have a valid charging power(" +
SUMOReal_str(
getChrgPower()) +
").");
112 if (new_Efficency < 0 || new_Efficency > 1) {
113 std::cout << std::string(
"Warning: Chargin Station with ID = " +
getID() +
" doesn't have a valid Efficency (" +
SUMOReal_str(
getEfficency()) +
").");
130 std::ostringstream convert;
132 return convert.str();
SUMOReal ChargeInTransit
Parameter 03, Allow charge in transit.
A lane area vehicles can halt at.
virtual ~MSChargingStation()
void setEfficency(SUMOReal new_Efficency)
Set parameter 06, efficiency of the charging station.
SUMOReal getEndLanePosition() const
Returns the end position of this stop.
std::string SUMOReal_str(const SUMOReal &var)
convert from SUMOReal to String
SUMOReal ChrgPower
Parameter 01, charging station's charging power.
SUMOReal ChargeDelay
Parameter 03, Charge Delay.
const std::string & getID() const
Returns the id.
SUMOReal getChrgPower() const
Get parameter 01, charging station's charging power.
bool vehicleIsInside(const SUMOReal position)
Check if a vehicle is inside in the Charge Station.
SUMOReal getEfficency() const
Get parameter 02, efficiency of the charging station.
SUMOReal getChargeInTransit() const
Get parameter 03, get chargeInTransit.
SUMOReal getChargeDelay() const
Get parameter 03, get Charge Delay.
SUMOReal getBeginLanePosition() const
Returns the begin position of this stop.
MSChargingStation(const std::string &new_ChargingStationID, const std::vector< std::string > &new_lines, MSLane &new_Lane, SUMOReal new_StartPos, SUMOReal new_EndPos, SUMOReal new_ChrgPower, SUMOReal new_Efficency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay)
Representation of a lane in the micro simulation.
SUMOReal Efficency
Parameter 02, efficiency of the charging station.
void setChrgPower(SUMOReal new_ChrgPower)
Set parameter 05, charging station's charging power.