SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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-2016 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 
61  MSChargingStation(const std::string& chargingStationID, MSLane& lane, SUMOReal startPos, SUMOReal endPos,
62  SUMOReal chargingPower, SUMOReal efficency, bool chargeInTransit, int chargeDelay);
63 
66 
68  SUMOReal getChargingPower() const;
69 
71  SUMOReal getEfficency() const;
72 
74  bool getChargeInTransit() const;
75 
77  SUMOReal getChargeDelay() const;
78 
80  void setChargingPower(SUMOReal chargingPower);
81 
83  void setEfficency(SUMOReal efficency);
84 
86  void setChargeInTransit(bool chargeInTransit);
87 
89  void setChargeDelay(int chargeDelay);
90 
92  void setChargingVehicle(bool value);
93 
98  bool vehicleIsInside(const SUMOReal position) const;
99 
101  bool isCharging() const;
102 
103 protected:
104 
107 
110 
113 
116 
119 
120 private:
121 
124 
127 };
128 
129 #endif
SUMOReal myChargingPower
Charging station's charging power.
bool isCharging() const
Return true if in the current time step charging station is charging a vehicle.
MSChargingStation & operator=(const MSChargingStation &)
Invalidated assignment operator.
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 myEfficiency
Efficiency of the charging station.
bool myChargingVehicle
Check if in the current TimeStep chargingStation is charging a vehicle.
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.
A storage for options typed value containers)
Definition: OptionsCont.h:99
void setEfficency(SUMOReal efficency)
Set efficiency of the charging station.
#define SUMOReal
Definition: config.h:214
Representation of a lane in the micro simulation.
Definition: MSLane.h:79