![]() |
SUMO - Simulation of Urban MObility
|
#include <GNERerouterInterval.h>
Public Member Functions | |
double | getBegin () const |
get begin time More... | |
const std::vector< GNEClosingLaneReroute > & | getClosingLaneReroutes () const |
get closing reroutes More... | |
const std::vector< GNEClosingReroute > & | getClosingReroutes () const |
get closing reroutes More... | |
const std::vector< GNEDestProbReroute > & | getDestProbReroutes () const |
get destiny probability reroutes More... | |
double | getEnd () const |
get end time More... | |
GNERerouter * | getRerouterParent () const |
get rerouter parent More... | |
const std::vector< GNERouteProbReroute > & | getRouteProbReroutes () const |
get reoute probability reroutes More... | |
SumoXMLTag | getTag () const |
get tag More... | |
GNERerouterInterval (GNERerouter *rerouterParent, double begin, double end) | |
constructor More... | |
bool | insertClosingReroutes (const GNEClosingReroute &cr) |
insert a new closing lane reroute More... | |
bool | insertClosinLanegReroutes (const GNEClosingLaneReroute &clr) |
insert a new closing lane reroute More... | |
bool | insertDestProbReroutes (const GNEDestProbReroute &dpr) |
insert destiny probability reroute More... | |
bool | insertRouteProbReroute (const GNERouteProbReroute &rpr) |
insert route probability reroute More... | |
bool | operator< (const GNERerouterInterval &rerouterInterval) const |
overload operator < More... | |
bool | operator<= (const GNERerouterInterval &rerouterInterval) const |
overload operator <= More... | |
GNERerouterInterval & | operator= (const GNERerouterInterval &rerouterInterval) |
overload operator = More... | |
bool | operator== (const GNERerouterInterval &rerouterInterval) const |
overload operator = More... | |
bool | operator> (const GNERerouterInterval &rerouterInterval) const |
overload operator > More... | |
bool | operator>= (const GNERerouterInterval &rerouterInterval) const |
overload operator >= More... | |
bool | removeClosingLaneReroutes (const GNEClosingLaneReroute &clr) |
remove a previously inserted closing reroute More... | |
bool | removeClosingReroutes (const GNEClosingReroute &cr) |
remove a previously inserted closing reroute More... | |
bool | removeDestProbReroutes (const GNEDestProbReroute &dpr) |
remove a previously inserted destiny probability reroute More... | |
bool | removeRouteProbReroute (const GNERouteProbReroute &rpr) |
remove a previously inserted route probability reroute More... | |
void | setBegin (double begin) |
set begin time More... | |
void | setClosingLaneReroutes (const std::vector< GNEClosingLaneReroute > &closingLaneReroutes) |
set closing reroutes More... | |
void | setClosingReroutes (const std::vector< GNEClosingReroute > &closingReroutes) |
set closing reroutes More... | |
void | setDestProbReroutes (const std::vector< GNEDestProbReroute > &destProbReroutes) |
set destiny probability reroutes More... | |
void | setEnd (double end) |
set end time More... | |
void | setRouteProbReroutes (const std::vector< GNERouteProbReroute > &rerouteProbabilityReroutes) |
set reoute probability reroutes More... | |
~GNERerouterInterval () | |
destructor More... | |
Protected Attributes | |
double | myBegin |
begin timeStep More... | |
std::vector< GNEClosingLaneReroute > | myClosingLaneReroutes |
vector with the closingLaneReroutes More... | |
std::vector< GNEClosingReroute > | myClosingReroutes |
vector with the closingReroutes More... | |
std::vector< GNEDestProbReroute > | myDestProbReroutes |
vector with the destProbReroutes More... | |
double | myEnd |
end timeStep More... | |
GNERerouter * | myRerouterParent |
pointer to rerouter parent More... | |
std::vector< GNERouteProbReroute > | myRouteProbReroutes |
vector with the routeProbReroutes More... | |
SumoXMLTag | myTag |
XML Tag of a rerouter interval. More... | |
class used to represent a interval used in rerouters
Definition at line 50 of file GNERerouterInterval.h.
GNERerouterInterval::GNERerouterInterval | ( | GNERerouter * | rerouterParent, |
double | begin, | ||
double | end | ||
) |
constructor
Definition at line 42 of file GNERerouterInterval.cpp.
GNERerouterInterval::~GNERerouterInterval | ( | ) |
destructor
Definition at line 51 of file GNERerouterInterval.cpp.
double GNERerouterInterval::getBegin | ( | ) | const |
const std::vector< GNEClosingLaneReroute > & GNERerouterInterval::getClosingLaneReroutes | ( | ) | const |
get closing reroutes
Definition at line 192 of file GNERerouterInterval.cpp.
References myClosingLaneReroutes.
Referenced by GNERerouterIntervalDialog::onCmdReset().
const std::vector< GNEClosingReroute > & GNERerouterInterval::getClosingReroutes | ( | ) | const |
get closing reroutes
Definition at line 198 of file GNERerouterInterval.cpp.
References myClosingReroutes.
Referenced by GNERerouterIntervalDialog::onCmdReset().
const std::vector< GNEDestProbReroute > & GNERerouterInterval::getDestProbReroutes | ( | ) | const |
get destiny probability reroutes
Definition at line 204 of file GNERerouterInterval.cpp.
References myDestProbReroutes.
Referenced by GNERerouterIntervalDialog::onCmdReset().
double GNERerouterInterval::getEnd | ( | ) | const |
GNERerouter * GNERerouterInterval::getRerouterParent | ( | ) | const |
get rerouter parent
Definition at line 156 of file GNERerouterInterval.cpp.
References myRerouterParent.
Referenced by GNERerouterDialog::checkModifyInterval(), GNERerouterIntervalDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), and GNERerouterIntervalDialog::onCmdEditDestProbReroute().
const std::vector< GNERouteProbReroute > & GNERerouterInterval::getRouteProbReroutes | ( | ) | const |
get reoute probability reroutes
Definition at line 210 of file GNERerouterInterval.cpp.
References myRouteProbReroutes.
Referenced by GNERerouterIntervalDialog::onCmdReset().
SumoXMLTag GNERerouterInterval::getTag | ( | ) | const |
get tag
Definition at line 162 of file GNERerouterInterval.cpp.
References myTag.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
bool GNERerouterInterval::insertClosingReroutes | ( | const GNEClosingReroute & | cr | ) |
insert a new closing lane reroute
Definition at line 81 of file GNERerouterInterval.cpp.
References GNEClosingReroute::getClosedEdge(), GNEAttributeCarrier::getID(), GNEClosingReroute::getTag(), myClosingReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::insertClosinLanegReroutes | ( | const GNEClosingLaneReroute & | clr | ) |
insert a new closing lane reroute
Definition at line 56 of file GNERerouterInterval.cpp.
References GNEClosingLaneReroute::getClosedLane(), GNEAttributeCarrier::getID(), GNEClosingLaneReroute::getTag(), myClosingLaneReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::insertDestProbReroutes | ( | const GNEDestProbReroute & | dpr | ) |
insert destiny probability reroute
Definition at line 106 of file GNERerouterInterval.cpp.
References GNEAttributeCarrier::getID(), GNEDestProbReroute::getNewDestination(), GNEDestProbReroute::getTag(), myDestProbReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::insertRouteProbReroute | ( | const GNERouteProbReroute & | rpr | ) |
insert route probability reroute
Definition at line 131 of file GNERerouterInterval.cpp.
References GNERouteProbReroute::getNewRouteId(), GNERouteProbReroute::getTag(), myRouteProbReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::operator< | ( | const GNERerouterInterval & | rerouterInterval | ) | const |
overload operator <
Definition at line 281 of file GNERerouterInterval.cpp.
bool GNERerouterInterval::operator<= | ( | const GNERerouterInterval & | rerouterInterval | ) | const |
overload operator <=
Definition at line 293 of file GNERerouterInterval.cpp.
GNERerouterInterval & GNERerouterInterval::operator= | ( | const GNERerouterInterval & | rerouterInterval | ) |
overload operator =
Definition at line 240 of file GNERerouterInterval.cpp.
References myBegin, myEnd, and myRerouterParent.
bool GNERerouterInterval::operator== | ( | const GNERerouterInterval & | rerouterInterval | ) | const |
overload operator =
Definition at line 251 of file GNERerouterInterval.cpp.
bool GNERerouterInterval::operator> | ( | const GNERerouterInterval & | rerouterInterval | ) | const |
overload operator >
Definition at line 257 of file GNERerouterInterval.cpp.
bool GNERerouterInterval::operator>= | ( | const GNERerouterInterval & | rerouterInterval | ) | const |
overload operator >=
Definition at line 269 of file GNERerouterInterval.cpp.
bool GNERerouterInterval::removeClosingLaneReroutes | ( | const GNEClosingLaneReroute & | clr | ) |
remove a previously inserted closing reroute
Definition at line 68 of file GNERerouterInterval.cpp.
References GNEClosingLaneReroute::getClosedLane(), GNEAttributeCarrier::getID(), GNEClosingLaneReroute::getTag(), myClosingLaneReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::removeClosingReroutes | ( | const GNEClosingReroute & | cr | ) |
remove a previously inserted closing reroute
Definition at line 93 of file GNERerouterInterval.cpp.
References GNEClosingReroute::getClosedEdge(), GNEAttributeCarrier::getID(), GNEClosingReroute::getTag(), myClosingReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::removeDestProbReroutes | ( | const GNEDestProbReroute & | dpr | ) |
remove a previously inserted destiny probability reroute
Definition at line 118 of file GNERerouterInterval.cpp.
References GNEAttributeCarrier::getID(), GNEDestProbReroute::getNewDestination(), GNEDestProbReroute::getTag(), myDestProbReroutes, toString(), and WRITE_WARNING.
bool GNERerouterInterval::removeRouteProbReroute | ( | const GNERouteProbReroute & | rpr | ) |
remove a previously inserted route probability reroute
Definition at line 143 of file GNERerouterInterval.cpp.
References GNERouteProbReroute::getNewRouteId(), GNERouteProbReroute::getTag(), myRouteProbReroutes, toString(), and WRITE_WARNING.
void GNERerouterInterval::setBegin | ( | double | begin | ) |
set begin time
Definition at line 180 of file GNERerouterInterval.cpp.
References myBegin.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
void GNERerouterInterval::setClosingLaneReroutes | ( | const std::vector< GNEClosingLaneReroute > & | closingLaneReroutes | ) |
set closing reroutes
Definition at line 216 of file GNERerouterInterval.cpp.
References myClosingLaneReroutes.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
void GNERerouterInterval::setClosingReroutes | ( | const std::vector< GNEClosingReroute > & | closingReroutes | ) |
set closing reroutes
Definition at line 222 of file GNERerouterInterval.cpp.
References myClosingReroutes.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
void GNERerouterInterval::setDestProbReroutes | ( | const std::vector< GNEDestProbReroute > & | destProbReroutes | ) |
set destiny probability reroutes
Definition at line 228 of file GNERerouterInterval.cpp.
References myDestProbReroutes.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
void GNERerouterInterval::setEnd | ( | double | end | ) |
set end time
Definition at line 186 of file GNERerouterInterval.cpp.
References myEnd.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
void GNERerouterInterval::setRouteProbReroutes | ( | const std::vector< GNERouteProbReroute > & | rerouteProbabilityReroutes | ) |
set reoute probability reroutes
Definition at line 234 of file GNERerouterInterval.cpp.
References myRouteProbReroutes.
Referenced by GNERerouterIntervalDialog::onCmdAccept().
|
protected |
begin timeStep
Definition at line 163 of file GNERerouterInterval.h.
Referenced by getBegin(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and setBegin().
|
protected |
vector with the closingLaneReroutes
Definition at line 172 of file GNERerouterInterval.h.
Referenced by getClosingLaneReroutes(), insertClosinLanegReroutes(), removeClosingLaneReroutes(), and setClosingLaneReroutes().
|
protected |
vector with the closingReroutes
Definition at line 175 of file GNERerouterInterval.h.
Referenced by getClosingReroutes(), insertClosingReroutes(), removeClosingReroutes(), and setClosingReroutes().
|
protected |
vector with the destProbReroutes
Definition at line 178 of file GNERerouterInterval.h.
Referenced by getDestProbReroutes(), insertDestProbReroutes(), removeDestProbReroutes(), and setDestProbReroutes().
|
protected |
end timeStep
Definition at line 166 of file GNERerouterInterval.h.
Referenced by getEnd(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and setEnd().
|
protected |
pointer to rerouter parent
Definition at line 160 of file GNERerouterInterval.h.
Referenced by getRerouterParent(), and operator=().
|
protected |
vector with the routeProbReroutes
Definition at line 181 of file GNERerouterInterval.h.
Referenced by getRouteProbReroutes(), insertRouteProbReroute(), removeRouteProbReroute(), and setRouteProbReroutes().
|
protected |
XML Tag of a rerouter interval.
Definition at line 169 of file GNERerouterInterval.h.
Referenced by getTag().