SUMO - Simulation of Urban MObility
GUIChargingStation.h
Go to the documentation of this file.
1 /****************************************************************************/
11 // A lane area vehicles can halt at (gui-version)
12 /****************************************************************************/
13 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
14 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
15 /****************************************************************************/
16 //
17 // This file is part of SUMO.
18 // SUMO is free software: you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation, either version 3 of the License, or
21 // (at your option) any later version.
22 //
23 /****************************************************************************/
24 #ifndef GUIChargingStation_h
25 #define GUIChargingStation_h
26 
27 
28 // ===========================================================================
29 // included modules
30 // ===========================================================================
31 #ifdef _MSC_VER
32 #include <windows_config.h>
33 #else
34 #include <config.h>
35 #endif
36 
37 #include <vector>
38 #include <string>
39 #include <utils/common/Command.h>
43 #include <guisim/GUIBusStop.h>
47 #include <utils/geom/Position.h>
48 #include <gui/GUIManipulator.h>
50 
51 
52 // ===========================================================================
53 // class declarations
54 // ===========================================================================
55 class MSNet;
56 class MSLane;
57 class GUIManipulator;
58 
59 
60 // ===========================================================================
61 // class definitions
62 // ===========================================================================
75 public:
84  GUIChargingStation(const std::string& id,
85  const std::vector<std::string>& lines, MSLane& lane,
86  SUMOReal frompos, SUMOReal topos,
87  SUMOReal new_chrgpower, SUMOReal new_efficiency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay);
88 
89 
92 
93 
95 
96 
105  GUISUMOAbstractView& parent);
106 
107 
118  GUISUMOAbstractView& parent);
119 
120 
127 
128 
133  void drawGL(const GUIVisualizationSettings& s) const;
135 
136 private:
139 
142 
145 
148 
149 private:
151  std::vector<SUMOReal> myFGShapeRotations;
152 
154  std::vector<SUMOReal> myFGShapeLengths;
155 
158 
161 
164 };
165 
166 
167 #endif
168 
PositionVector myFGShape
The shape.
SUMOReal chargeInTransit
allow charge in transit
~GUIChargingStation()
Destructor.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Stores the information about how to visualize structures.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
The simulated network and simulation perfomer.
Definition: MSNet.h:94
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
A list of positions.
SUMOReal myFGSignRot
The rotation of the sign.
std::vector< SUMOReal > myFGShapeLengths
The lengths of the shape parts.
GUIChargingStation(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal frompos, SUMOReal topos, SUMOReal new_chrgpower, SUMOReal new_efficiency, SUMOReal new_ChargeInTransit, SUMOReal new_ChargeDelay)
Constructor.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Position myFGSignPos
The position of the sign.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
SUMOReal chargeDelay
charge delay
The popup menu of a globject.
SUMOReal efficiency
efficiency of the Charging Station
A lane area vehicles can halt at (gui-version)
SUMOReal chrgpower
chrgpower of the Charging Station
#define SUMOReal
Definition: config.h:214
std::vector< SUMOReal > myFGShapeRotations
The rotations of the shape parts.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
A window containing a gl-object&#39;s parameter.