 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GNEChargingStation_h
18 #define GNEChargingStation_h
49 GNEChargingStation(
const std::string&
id,
GNELane* lane,
GNEViewNet* viewNet,
const std::string& startPos,
const std::string& endPos,
const std::string& name,
double chargingPower,
double efficiency,
bool chargeInTransit,
SUMOTime chargeDelay,
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
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
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.
GNEChargingStation(const std::string &id, GNELane *lane, GNEViewNet *viewNet, const std::string &startPos, const std::string &endPos, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, SUMOTime chargeDelay, bool friendlyPosition, bool blockMovement)
Constructor of charging station.
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.