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);
Stores the information about how to visualize structures.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
SUMOTime myChargeDelay
delay in the starting of charge
A class that stores a 2D geometrical boundary.
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
void updateGeometry()
update pre-computed geometry information
~GNEChargingStation()
Destructor.
bool myChargeInTransit
enable or disable charge in transit
double myChargingPower
Charging power pro timestep.
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.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string getAttribute(SumoXMLAttr key) const
GNEChargingStation & operator=(const GNEChargingStation &)=delete
Invalidated assignment operator.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...