SUMO - Simulation of Urban MObility
MSChargingStation.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Chargin Station for Electric vehicles
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef MSChargingStation_h
23 #define MSChargingStation_h
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <list>
35 #include <string>
36 #include <iostream>
37 #include <fstream>
38 #include <sstream>
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
45 class MSLane;
46 class MSBusStop;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
58 public:
59 
60  // CONSTRUCTORES
61 
62  MSChargingStation(const std::string& new_ChargingStationID, const std::vector<std::string>& new_lines, MSLane& new_Lane,
63  SUMOReal new_StartPos, SUMOReal new_EndPos, SUMOReal new_ChrgPower, SUMOReal new_Efficency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay);
64 
65  virtual ~MSChargingStation();
66 
68  SUMOReal getChrgPower() const;
69 
71  SUMOReal getEfficency() const;
72 
75 
77  SUMOReal getChargeDelay() const;
78 
80  inline void setChrgPower(SUMOReal new_ChrgPower);
81 
83  inline void setEfficency(SUMOReal new_Efficency);
84 
85 
86  // OTHER FUNCTIONS
87 
92  bool vehicleIsInside(const SUMOReal position);
93 
94 
95 private:
96 
99 
102 
105 
108 
109 
114  std::string SUMOReal_str(const SUMOReal& var);
115 };
116 
117 #endif
118 
SUMOReal ChargeInTransit
Parameter 03, Allow charge in transit.
A lane area vehicles can halt at.
void setEfficency(SUMOReal new_Efficency)
Set parameter 06, efficiency of the charging station.
std::string SUMOReal_str(const SUMOReal &var)
convert from SUMOReal to String
SUMOReal ChrgPower
Parameter 01, charging station&#39;s charging power.
SUMOReal ChargeDelay
Parameter 03, Charge Delay.
SUMOReal getChrgPower() const
Get parameter 01, charging station&#39;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.
A storage for options typed value containers)
Definition: OptionsCont.h:108
#define SUMOReal
Definition: config.h:214
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.
Definition: MSLane.h:77
SUMOReal Efficency
Parameter 02, efficiency of the charging station.
void setChrgPower(SUMOReal new_ChrgPower)
Set parameter 05, charging station&#39;s charging power.