 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
36 {}, {}, {}, {rerouterIntervalDialog->getEditedAdditional()}, {}, {}, {}, {}, {}, {}) {
38 if (rerouterIntervalDialog->getEditedAdditional()->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(
SUMO_TAG_ROUTE).size() > 0) {
48 {}, {}, {}, {rerouterIntervalParent}, {}, {}, {}, {}, {}, {}),
49 myNewRouteId(newRouteId),
50 myProbability(probability) {
156 return canParse<double>(value);
const AttributeCarriers & getAttributeCarriers() const
retrieve all attribute carriers of Net
An Element which don't belongs to GNENet but has influency in the simulation.
std::string getParametersStr() const
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
const std::string & getAdditionalID() const
std::string getParentName() const
Returns the name of the parent object.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
std::string getAttribute(SumoXMLAttr key) const
~GNERouteProbReroute()
destructor
void changeAdditionalID(const std::string &newID)
change ID of additional
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
double getAttributeDouble(SumoXMLAttr key) const
void updateGeometry()
update pre-computed geometry information
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
friend class GNEChange_Attribute
declare friend class
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
GNENet * getNet() const
get the net object
const std::vector< GNEAdditional * > & getParentAdditionals() const
get parent additionals
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNERouteProbReroute(GNERerouterIntervalDialog *rerouterIntervalDialog)
constructor (Used in GNERerouterIntervalDialog)
A class that stores a 2D geometrical boundary.
bool isAttributeEnabled(SumoXMLAttr key) const
parameters "key1=value1|key2=value2|...|keyN=valueN"
A point in 2D or 3D with translation and scaling methods.
probability of route of a reroute
std::map< SumoXMLTag, std::map< std::string, GNEDemandElement * > > demandElements
map with the name and pointer to demand elements of net
void setParametersStr(const std::string ¶msString)
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static bool areParametersValid(const std::string &value, bool report=false)
check if given string can be parsed to a parameters map "key1=value1|key2=value2|....
static bool isValidVehicleID(const std::string &value)
whether the given string is a valid id for a vehicle or flow
Position getPositionInView() const
Returns position of additional in view.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
double myProbability
probability with which a vehicle will use the given edge as destination
begin/end of the description of a route
const std::string & getTagStr() const
get tag assigned to this object in string format
Stores the information about how to visualize structures.
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
std::string myNewRouteId
id of new route
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
Dialog for edit rerouter intervals.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
parent of an additional element