47 myRerouterIntervalParent(rerouterIntervalDialog->getEditedRerouterInterval()),
48 myNewEdgeDestination(rerouterIntervalDialog->getEditedRerouterInterval()->getRerouterParent()->getEdgeChilds().at(0)),
118 return canParse<double>(value) && parse<double>(value) >= 0 && parse<double>(value) <= 1;
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
GNERerouter * getRerouterParent() const
get rerouter parent
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true)
get edge by id
Dialog for edit rerouter intervals.
double myProbability
probability with which a vehicle will use the given edge as destination
GNEDestProbReroute(GNERerouterIntervalDialog *rerouterIntervalDialog)
constructor (Used in GNERerouterIntervalDialog)
GNEEdge * myNewEdgeDestination
id of new edge destination
bool isValid(SumoXMLAttr key, const std::string &value)
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
friend class GNEChange_Attribute
declare friend class
GNERerouterInterval * getRerouterIntervalParent() const
get rerouter interval parent
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
probability of route of a reroute
probability of destiny of a reroute
~GNEDestProbReroute()
destructor
const std::string getID() const
function to support debugging
A road/street connecting two junctions (netedit-version)
void writeDestProbReroute(OutputDevice &device) const
GNENet * getNet() const
get the net object
SumoXMLTag getTag() const
get XML Tag assigned to this object
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.