 |
Eclipse SUMO - Simulation of Urban MObility
|
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
double getAttributeDouble(SumoXMLAttr key) const
GNEPerson(SumoXMLTag tag, GNEViewNet *viewNet, GNEDemandElement *pType, const SUMOVehicleParameter &personparameters)
constructor for persons
std::string getGenericParametersStr() const
return generic parameters in string format
std::vector< std::pair< std::string, std::string > > getGenericParameters() const
return generic parameters as vector of pairs format
void compute()
compute demand element
Static storage of an output device and its base (abstract) implementation.
void calculateSmoothPersonPlanConnection(const GNEDemandElement *personPlanElement, const GNEEdge *edgeFrom, const GNEEdge *edgeTo)
calculate smooth shape between personPlans
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
std::string getBegin() const
get begin time of demand element
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
const RGBColor & getColor() const
get color
double arrivalPos
arrival position
Structure representing possible vehicle parameter.
void writeDemandElement(OutputDevice &device) const
writte demand element element into a xml file
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool isDemandElementValid() const
check if current demand element is valid to be writed into XML (by default true, can be reimplemented...
SumoXMLTag tag
The vehicle tag.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A road/street connecting two junctions (netedit-version)
std::string getDemandElementProblem() const
return a string with the current demand element problem (by default empty, can be reimplemented in ch...
std::pair< PositionVector, PositionVector > calculatePersonPlanConnectionStop(GNELane *previousLane, GNEDemandElement *stop, GNELane *nextLane)
return two shapes used for calculate person plan conections between stops
std::pair< PositionVector, PositionVector > calculatePersonPlanConnectionBusStop(GNELane *previousLane, GNEAdditional *busStop, GNELane *nextLane)
return two shapes used for calculate person plan conections between busStops
void selectAttributeCarrier(bool changeFlag=true)
inherited from GNEAttributeCarrier
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
GNEEdge * getFromEdge() const
A class that stores a 2D geometrical boundary.
std::pair< PositionVector, PositionVector > calculatePersonPlanConnectionArrivalPos(GNELane *previousLane, double arrivalPosPersonPlan, GNELane *nextLane)
return two shapes used for calculate person plan conections between arrival position
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
A point in 2D or 3D with translation and scaling methods.
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
bool setFunctionalColor(int activeScheme) const
sets the color according to the current scheme index and some vehicle function
SUMOVehicleClass getVClass() const
obtain VClass related with this demand element
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform demand element changes
GNEEdge * getToEdge() const
obtain to edge of this demand element
void fixDemandElementProblem()
fix demand element problem (by default throw an exception, has to be reimplemented in children)
std::vector< GNEDemandElement * > stops
stops placed in this segment
personPlanSegment()
constructor
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
std::vector< GNEAdditional * > busStops
busStops placed in this segment
void endGeometryMoving()
end geometry movement
Stores the information about how to visualize structures.
GNEPerson & operator=(const GNEPerson &)=delete
Invalidated assignment operator.
void updateGeometry()
update pre-computed geometry information
std::string getParentName() const
Returns the name of the parent object.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string getAttribute(SumoXMLAttr key) const
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool isAttributeEnabled(SumoXMLAttr key) const
const GNEDemandElement * personPlan
person plan
void startGeometryMoving()
Position getPositionInView() const
Returns position of demand element in view.