SUMO - Simulation of Urban MObility
GNERerouterInterval Class Reference

#include <GNERerouterInterval.h>

Collaboration diagram for GNERerouterInterval:
Collaboration graph

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...
 
GNEReroutergetRerouterParent () 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...
 
GNERerouterIntervaloperator= (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< GNEClosingLaneReroutemyClosingLaneReroutes
 vector with the closingLaneReroutes More...
 
std::vector< GNEClosingReroutemyClosingReroutes
 vector with the closingReroutes More...
 
std::vector< GNEDestProbReroutemyDestProbReroutes
 vector with the destProbReroutes More...
 
double myEnd
 end timeStep More...
 
GNEReroutermyRerouterParent
 pointer to rerouter parent More...
 
std::vector< GNERouteProbReroutemyRouteProbReroutes
 vector with the routeProbReroutes More...
 
SumoXMLTag myTag
 XML Tag of a rerouter interval. More...
 

Detailed Description

class used to represent a interval used in rerouters

Definition at line 50 of file GNERerouterInterval.h.

Constructor & Destructor Documentation

◆ GNERerouterInterval()

GNERerouterInterval::GNERerouterInterval ( GNERerouter rerouterParent,
double  begin,
double  end 
)

constructor

Definition at line 42 of file GNERerouterInterval.cpp.

◆ ~GNERerouterInterval()

GNERerouterInterval::~GNERerouterInterval ( )

destructor

Definition at line 51 of file GNERerouterInterval.cpp.

Member Function Documentation

◆ getBegin()

double GNERerouterInterval::getBegin ( ) const

get begin time

Definition at line 168 of file GNERerouterInterval.cpp.

References myBegin.

◆ getClosingLaneReroutes()

const std::vector< GNEClosingLaneReroute > & GNERerouterInterval::getClosingLaneReroutes ( ) const

get closing reroutes

Definition at line 192 of file GNERerouterInterval.cpp.

References myClosingLaneReroutes.

Referenced by GNERerouterIntervalDialog::onCmdReset().

◆ getClosingReroutes()

const std::vector< GNEClosingReroute > & GNERerouterInterval::getClosingReroutes ( ) const

get closing reroutes

Definition at line 198 of file GNERerouterInterval.cpp.

References myClosingReroutes.

Referenced by GNERerouterIntervalDialog::onCmdReset().

◆ getDestProbReroutes()

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().

◆ getEnd()

double GNERerouterInterval::getEnd ( ) const

get end time

Definition at line 174 of file GNERerouterInterval.cpp.

References myEnd.

◆ getRerouterParent()

◆ getRouteProbReroutes()

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().

◆ getTag()

SumoXMLTag GNERerouterInterval::getTag ( ) const

get tag

Definition at line 162 of file GNERerouterInterval.cpp.

References myTag.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

◆ insertClosingReroutes()

bool GNERerouterInterval::insertClosingReroutes ( const GNEClosingReroute cr)

insert a new closing lane reroute

Returns
true if insertion was sucesfully, false if is duplicated

Definition at line 81 of file GNERerouterInterval.cpp.

References GNEClosingReroute::getClosedEdge(), GNEAttributeCarrier::getID(), GNEClosingReroute::getTag(), myClosingReroutes, toString(), and WRITE_WARNING.

◆ insertClosinLanegReroutes()

bool GNERerouterInterval::insertClosinLanegReroutes ( const GNEClosingLaneReroute clr)

insert a new closing lane reroute

Returns
true if insertion was sucesfully, false if is duplicated

Definition at line 56 of file GNERerouterInterval.cpp.

References GNEClosingLaneReroute::getClosedLane(), GNEAttributeCarrier::getID(), GNEClosingLaneReroute::getTag(), myClosingLaneReroutes, toString(), and WRITE_WARNING.

◆ insertDestProbReroutes()

bool GNERerouterInterval::insertDestProbReroutes ( const GNEDestProbReroute dpr)

insert destiny probability reroute

Returns
true if deletetion was sucesfully, false if wasn't found

Definition at line 106 of file GNERerouterInterval.cpp.

References GNEAttributeCarrier::getID(), GNEDestProbReroute::getNewDestination(), GNEDestProbReroute::getTag(), myDestProbReroutes, toString(), and WRITE_WARNING.

◆ insertRouteProbReroute()

bool GNERerouterInterval::insertRouteProbReroute ( const GNERouteProbReroute rpr)

insert route probability reroute

Returns
true if insertion was sucesfully, false if is duplicated

Definition at line 131 of file GNERerouterInterval.cpp.

References GNERouteProbReroute::getNewRouteId(), GNERouteProbReroute::getTag(), myRouteProbReroutes, toString(), and WRITE_WARNING.

◆ operator<()

bool GNERerouterInterval::operator< ( const GNERerouterInterval rerouterInterval) const

overload operator <

Definition at line 281 of file GNERerouterInterval.cpp.

References myBegin, and myEnd.

◆ operator<=()

bool GNERerouterInterval::operator<= ( const GNERerouterInterval rerouterInterval) const

overload operator <=

Definition at line 293 of file GNERerouterInterval.cpp.

References myBegin, and myEnd.

◆ operator=()

GNERerouterInterval & GNERerouterInterval::operator= ( const GNERerouterInterval rerouterInterval)

overload operator =

Definition at line 240 of file GNERerouterInterval.cpp.

References myBegin, myEnd, and myRerouterParent.

◆ operator==()

bool GNERerouterInterval::operator== ( const GNERerouterInterval rerouterInterval) const

overload operator =

Definition at line 251 of file GNERerouterInterval.cpp.

References myBegin, and myEnd.

◆ operator>()

bool GNERerouterInterval::operator> ( const GNERerouterInterval rerouterInterval) const

overload operator >

Definition at line 257 of file GNERerouterInterval.cpp.

References myBegin, and myEnd.

◆ operator>=()

bool GNERerouterInterval::operator>= ( const GNERerouterInterval rerouterInterval) const

overload operator >=

Definition at line 269 of file GNERerouterInterval.cpp.

References myBegin, and myEnd.

◆ removeClosingLaneReroutes()

bool GNERerouterInterval::removeClosingLaneReroutes ( const GNEClosingLaneReroute clr)

remove a previously inserted closing reroute

Returns
true if deletetion was sucesfully, false if wasn't found

Definition at line 68 of file GNERerouterInterval.cpp.

References GNEClosingLaneReroute::getClosedLane(), GNEAttributeCarrier::getID(), GNEClosingLaneReroute::getTag(), myClosingLaneReroutes, toString(), and WRITE_WARNING.

◆ removeClosingReroutes()

bool GNERerouterInterval::removeClosingReroutes ( const GNEClosingReroute cr)

remove a previously inserted closing reroute

Returns
true if deletetion was sucesfully, false if wasn't found

Definition at line 93 of file GNERerouterInterval.cpp.

References GNEClosingReroute::getClosedEdge(), GNEAttributeCarrier::getID(), GNEClosingReroute::getTag(), myClosingReroutes, toString(), and WRITE_WARNING.

◆ removeDestProbReroutes()

bool GNERerouterInterval::removeDestProbReroutes ( const GNEDestProbReroute dpr)

remove a previously inserted destiny probability reroute

Returns
true if deletetion was sucesfully, false if wasn't found

Definition at line 118 of file GNERerouterInterval.cpp.

References GNEAttributeCarrier::getID(), GNEDestProbReroute::getNewDestination(), GNEDestProbReroute::getTag(), myDestProbReroutes, toString(), and WRITE_WARNING.

◆ removeRouteProbReroute()

bool GNERerouterInterval::removeRouteProbReroute ( const GNERouteProbReroute rpr)

remove a previously inserted route probability reroute

Returns
true if deletetion was sucesfully, false if wasn't found

Definition at line 143 of file GNERerouterInterval.cpp.

References GNERouteProbReroute::getNewRouteId(), GNERouteProbReroute::getTag(), myRouteProbReroutes, toString(), and WRITE_WARNING.

◆ setBegin()

void GNERerouterInterval::setBegin ( double  begin)

set begin time

Definition at line 180 of file GNERerouterInterval.cpp.

References myBegin.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

◆ setClosingLaneReroutes()

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().

◆ setClosingReroutes()

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().

◆ setDestProbReroutes()

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().

◆ setEnd()

void GNERerouterInterval::setEnd ( double  end)

set end time

Definition at line 186 of file GNERerouterInterval.cpp.

References myEnd.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

◆ setRouteProbReroutes()

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().

Field Documentation

◆ myBegin

double GNERerouterInterval::myBegin
protected

begin timeStep

Definition at line 163 of file GNERerouterInterval.h.

Referenced by getBegin(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and setBegin().

◆ myClosingLaneReroutes

std::vector<GNEClosingLaneReroute> GNERerouterInterval::myClosingLaneReroutes
protected

vector with the closingLaneReroutes

Definition at line 172 of file GNERerouterInterval.h.

Referenced by getClosingLaneReroutes(), insertClosinLanegReroutes(), removeClosingLaneReroutes(), and setClosingLaneReroutes().

◆ myClosingReroutes

std::vector<GNEClosingReroute> GNERerouterInterval::myClosingReroutes
protected

vector with the closingReroutes

Definition at line 175 of file GNERerouterInterval.h.

Referenced by getClosingReroutes(), insertClosingReroutes(), removeClosingReroutes(), and setClosingReroutes().

◆ myDestProbReroutes

std::vector<GNEDestProbReroute> GNERerouterInterval::myDestProbReroutes
protected

vector with the destProbReroutes

Definition at line 178 of file GNERerouterInterval.h.

Referenced by getDestProbReroutes(), insertDestProbReroutes(), removeDestProbReroutes(), and setDestProbReroutes().

◆ myEnd

double GNERerouterInterval::myEnd
protected

end timeStep

Definition at line 166 of file GNERerouterInterval.h.

Referenced by getEnd(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and setEnd().

◆ myRerouterParent

GNERerouter* GNERerouterInterval::myRerouterParent
protected

pointer to rerouter parent

Definition at line 160 of file GNERerouterInterval.h.

Referenced by getRerouterParent(), and operator=().

◆ myRouteProbReroutes

std::vector<GNERouteProbReroute> GNERerouterInterval::myRouteProbReroutes
protected

vector with the routeProbReroutes

Definition at line 181 of file GNERerouterInterval.h.

Referenced by getRouteProbReroutes(), insertRouteProbReroute(), removeRouteProbReroute(), and setRouteProbReroutes().

◆ myTag

SumoXMLTag GNERerouterInterval::myTag
protected

XML Tag of a rerouter interval.

Definition at line 169 of file GNERerouterInterval.h.

Referenced by getTag().


The documentation for this class was generated from the following files: