 |
Eclipse SUMO - Simulation of Urban MObility
|
double getAttributeDouble(SumoXMLAttr key) const
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
An Element which don't belongs to GNENet but has influency in the simulation.
void startGeometryMoving()
void selectAttributeCarrier(bool changeFlag=true)
inherited from GNEAttributeCarrier
void updateGeometry()
update pre-computed geometry information
Static storage of an output device and its base (abstract) implementation.
void computePath()
compute path
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform demand element changes
GNEEdge * getFromEdge() const
bool isDemandElementValid() const
check if current demand element is valid to be writed into XML (by default true, can be reimplemented...
std::string getBegin() const
get begin time of demand element
Position getPositionInView() const
Returns position of demand element in view.
Structure representing possible vehicle parameter.
SUMOVehicleClass getVClass() const
obtain VClass related with this demand element
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
SumoXMLTag
Numbers representing SUMO-XML - element names.
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
SumoXMLTag tag
The vehicle tag.
A road/street connecting two junctions (netedit-version)
const RGBColor & getColor() const
get color
bool isAttributeEnabled(SumoXMLAttr key) const
void fixDemandElementProblem()
fix demand element problem (by default throw an exception, has to be reimplemented in children)
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
A class that stores a 2D geometrical boundary.
std::string getDemandElementProblem() const
return a string with the current demand element problem (by default empty, can be reimplemented in ch...
std::string getAttribute(SumoXMLAttr key) const
A point in 2D or 3D with translation and scaling methods.
void invalidatePath()
invalidate path
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
GNEEdge * getToEdge() const
obtain to edge of this demand element
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void updatePartialGeometry(const GNEEdge *edge)
partial update pre-computed geometry information
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
std::vector< std::string > via
List of the via-edges the vehicle must visit.
void writeDemandElement(OutputDevice &device) const
writte demand element element into a xml file
GNEVehicle(SumoXMLTag tag, GNEViewNet *viewNet, const std::string &vehicleID, GNEDemandElement *vehicleType, GNEDemandElement *route)
default constructor for vehicles and routeFlows without embedded routes
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
std::string getParentName() const
Returns the name of the parent object.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void endGeometryMoving()
end geometry movement
GNEVehicle & operator=(const GNEVehicle &)=delete
Invalidated assignment operator.
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection