SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSChrgStn.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Chargin Station for Electric vehicles //REVISION NEEDED
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 MSChrgStn_h
23 #define MSChrgStn_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 #define DEFAULT_EFFICIENCY 0.95
43 
44 
45 class OptionsCont;
46 
47 // ===========================================================================
48 // class declarations
49 // ===========================================================================
50 class MSLane;
51 class MSBusStop;
52 
53 
54 // ===========================================================================
55 // class definitions
56 // ===========================================================================
61 class MSChrgStn : public MSStoppingPlace {
62 public:
63 
64  // CONSTRUCTORES
65 
66  MSChrgStn(const std::string& new_ChrgStnID, const std::vector<std::string>& new_lines, MSLane& new_Lane,
67  SUMOReal new_StartPos, SUMOReal new_EndPos, SUMOReal new_ChrgPower, SUMOReal new_Efficency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay);
68 
69  virtual ~MSChrgStn();
70 
71 
72  // GET FUNCTIONS
73 
74 
76  SUMOReal getChrgPower() const;
77 
79  SUMOReal getEfficency() const;
80 
83 
85  SUMOReal getChargeDelay() const;
86 
87 
88  // SET FUNCTIONS
89 
91  inline void setChrgPower(SUMOReal new_ChrgPower);
92 
94  inline void setEfficency(SUMOReal new_Efficency);
95 
96 
97  // OTHER FUNCTIONS
98 
103  bool vehicleIsInside(const SUMOReal position);
104 
105 
106 private:
107 
110 
113 
116 
119 
120 
125  std::string SUMOReal_str(const SUMOReal& var);
126 
127 
128 };
129 
130 #endif
131 
void setEfficency(SUMOReal new_Efficency)
Set parameter 06, efficiency of the charging station.
Definition: MSChrgStn.cpp:111
SUMOReal getEfficency() const
Get parameter 02, efficiency of the charging station.
Definition: MSChrgStn.cpp:85
void setChrgPower(SUMOReal new_ChrgPower)
Set parameter 05, charging station&#39;s charging power.
Definition: MSChrgStn.cpp:102
A lane area vehicles can halt at.
SUMOReal getChargeDelay() const
Get parameter 03, get Charge Delay.
Definition: MSChrgStn.cpp:95
SUMOReal ChargeInTransit
Parameter 03, Allow charge in transit.
Definition: MSChrgStn.h:115
SUMOReal getChrgPower() const
Get parameter 01, charging station&#39;s charging power.
Definition: MSChrgStn.cpp:80
SUMOReal ChargeDelay
Parameter 03, Charge Delay.
Definition: MSChrgStn.h:118
bool vehicleIsInside(const SUMOReal position)
Check if a vehicle is inside in the Charge Station.
Definition: MSChrgStn.cpp:119
MSChrgStn(const std::string &new_ChrgStnID, 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)
Definition: MSChrgStn.cpp:49
SUMOReal getChargeInTransit() const
Get parameter 03, get chargeInTransit.
Definition: MSChrgStn.cpp:90
SUMOReal Efficency
Parameter 02, efficiency of the charging station.
Definition: MSChrgStn.h:112
virtual ~MSChrgStn()
Definition: MSChrgStn.cpp:72
A storage for options typed value containers)
Definition: OptionsCont.h:108
std::string SUMOReal_str(const SUMOReal &var)
convert from SUMOReal to String
Definition: MSChrgStn.cpp:129
#define SUMOReal
Definition: config.h:215
SUMOReal ChrgPower
Parameter 01, charging station&#39;s charging power.
Definition: MSChrgStn.h:109
Representation of a lane in the micro simulation.
Definition: MSLane.h:77