46 myRerouterIntervalParent(rerouterIntervalDialog->getEditedRerouterInterval()),
47 myNewRouteId(rerouterIntervalDialog->getEditedRerouterInterval()->getRerouterParent()->getViewNet()->getNet()->generateCalibratorRouteID()),
117 return canParse<double>(value);
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
Dialog for edit rerouter intervals.
std::string myNewRouteId
id of new route
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myProbability
probability with which a vehicle will use the given edge as destination
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
static bool isValidID(const std::string &value)
true if value is a valid sumo ID
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
~GNERouteProbReroute()
destructor
GNERerouterInterval * getRerouterIntervalParent() const
get rerouter interval parent
friend class GNEChange_Attribute
declare friend class
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
probability of route of a reroute
GNERouteProbReroute(GNERerouterIntervalDialog *rerouterIntervalDialog)
constructor (Used in GNERerouterIntervalDialog)
bool isValid(SumoXMLAttr key, const std::string &value)
void writeRouteProbReroute(OutputDevice &device) const
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.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.