52 myRerouterParent(rerouterDialog->getEditedRerouter()),
79 i->writeClosingReroute(device);
83 i->writeClosingLaneReroute(device);
87 i->writeDestProbReroute(device);
91 i->writeRouteProbReroute(device);
151 return canParse<double>(value) && (parse<double>(value) >= 0) && (parse<double>(value) <
myEnd);
153 return canParse<double>(value) && (parse<double>(value) >= 0) && (parse<double>(value) >
myBegin);
160 const std::vector<GNEClosingLaneReroute*>&
166 const std::vector<GNEClosingReroute*>&
172 const std::vector<GNEDestProbReroute*>&
178 const std::vector<GNERouteProbReroute*>&
190 throw ProcessError(
"Closing lane Reroute already exist");
201 throw ProcessError(
"Closing lane Reroute doesn't exist");
234 throw ProcessError(
"Destiny Probability Reroute already exist");
245 throw ProcessError(
"Destiny Probability Reroute doesn't exist");
256 throw ProcessError(
"Route Probability Reroute already exist");
267 throw ProcessError(
"Route Probability Reroute doesn't exist");
279 myBegin = parse<double>(value);
283 myEnd = parse<double>(value);
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
const std::vector< GNEDestProbReroute * > & getDestProbReroutes() const
get destiny probability reroutes
const std::vector< GNEClosingLaneReroute * > & getClosingLaneReroutes() const
get closing reroutes
std::vector< GNEClosingReroute * > myClosingReroutes
vector with the closingReroutes
GNERerouterInterval(GNERerouterDialog *rerouterDialog)
constructor (Used in GNERerouterDialog)
void addDestProbReroute(GNEDestProbReroute *destProbReroute)
add destiny probability reroute
double getBegin() const
get begin
std::vector< GNEDestProbReroute * > myDestProbReroutes
vector with the destProbReroutes
weights: time range begin
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
const std::vector< GNERouteProbReroute * > & getRouteProbReroutes() const
get reoute probability reroutes
void removeDestProbReroute(GNEDestProbReroute *destProbReroute)
add destiny probability reroute
void addClosingReroute(GNEClosingReroute *closingReroute)
add closing reroute
void writeRerouterInterval(OutputDevice &device) const
write Interval and all of their values
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
Dialog for edit rerouters.
void removeClosingReroute(GNEClosingReroute *closingReroute)
add closing reroute
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
friend class GNEChange_Attribute
declare friend class
double myBegin
begin timeStep
GNERerouter * getRerouterParent() const
get rerouter parent
void removeClosingLaneReroute(GNEClosingLaneReroute *closingLaneReroute)
add closing reroute
const std::string getID() const
function to support debugging
void addRouteProbReroute(GNERouteProbReroute *routeProbabilityReroute)
add reoute probability reroute
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
GNERerouter * myRerouterParent
pointer to rerouter parent
const std::vector< GNEClosingReroute * > & getClosingReroutes() const
get closing reroutes
bool isValid(SumoXMLAttr key, const std::string &value)
an aggreagated-output interval
std::vector< GNEClosingLaneReroute * > myClosingLaneReroutes
vector with the closingLaneReroutes
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)
double getEnd() const
get end
void addClosingLaneReroute(GNEClosingLaneReroute *closingLaneReroute)
add closing reroute
std::vector< GNERouteProbReroute * > myRouteProbReroutes
vector with the routeProbReroutes
~GNERerouterInterval()
destructor
void removeRouteProbReroute(GNERouteProbReroute *routeProbabilityReroute)
add reoute probability reroute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
SumoXMLTag getTag() const
get XML Tag assigned to this object