 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
37 {}, {}, {}, {rerouterIntervalDialog->getEditedAdditional(), rerouterIntervalDialog->getEditedAdditional()->getViewNet()->getNet()->getAttributeCarriers().additionals.at(
SUMO_TAG_PARKING_AREA).begin()->second}, {}, {}, {}, {}, {}, {}) {
45 {}, {}, {}, {rerouterIntervalParent, newParkingArea}, {}, {}, {}, {}, {}, {}),
46 myProbability(probability),
144 return canParse<double>(value) && parse<double>(value) >= 0 && parse<double>(value) <= 1;
146 return canParse<bool>(value);
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
An Element which don't belongs to GNENet but has influency in the simulation.
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
const std::string & getAdditionalID() const
const std::string getID() const
function to support debugging
double myProbability
probability with which a vehicle will use the given edge as destination
void changeAdditionalParent(GNEShape *shapeTobeChanged, const std::string &newAdditionalParentID, int additionalParentIndex)
change additional parent of a shape
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
void changeAdditionalID(const std::string &newID)
change ID of additional
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
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
entry for an alternative parking zone
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
A class that stores a 2D geometrical boundary.
GNEParkingAreaReroute(GNERerouterIntervalDialog *rerouterIntervalDialog)
constructor (Used in GNERerouterIntervalDialog)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A point in 2D or 3D with translation and scaling methods.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Position getPositionInView() const
Returns position of additional in view.
const std::vector< GNEAdditional * > & getAdditionalParents() const
return vector of additionals that have as Parent this edge (For example, Calibrators)
std::string getGenericParametersStr() const
return generic parameters in string format
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
std::string getAttribute(SumoXMLAttr key) const
~GNEParkingAreaReroute()
destructor
const std::string & getTagStr() const
get tag assigned to this object in string format
Stores the information about how to visualize structures.
void updateGeometry()
update pre-computed geometry information
bool myVisible
enable or disable visibility of Parking Area Reroute
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
std::string getParentName() const
Returns the name of the parent object.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Dialog for edit rerouter intervals.
parent of an additional element