 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEChargingStation_h
17 #define GNEChargingStation_h
49 const std::string& name,
double chargingPower,
double efficiency,
bool chargeInTransit,
SUMOTime chargeDelay,
50 bool friendlyPosition,
bool blockMovement);
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
GNEChargingStation(const GNEChargingStation &)=delete
Invalidated copy constructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEChargingStation(const std::string &id, GNELane *lane, GNEViewNet *viewNet, const double startPos, const double endPos, const int parametersSet, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, SUMOTime chargeDelay, bool friendlyPosition, bool blockMovement)
Constructor of charging station.
double myEfficiency
efficiency of the charge
SUMOTime myChargeDelay
delay in the starting of charge
A class that stores a 2D geometrical boundary.
~GNEChargingStation()
Destructor.
bool myChargeInTransit
enable or disable charge in transit
void updateGeometry()
update pre-computed geometry information
double myChargingPower
Charging power pro timestep.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string getAttribute(SumoXMLAttr key) const
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEChargingStation & operator=(const GNEChargingStation &)=delete
Invalidated assignment operator.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.