SUMO - Simulation of Urban MObility
GNERerouterInterval Class Reference

#include <GNERerouterInterval.h>

Collaboration diagram for GNERerouterInterval:
Collaboration graph

Public Member Functions

SUMOReal 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...
 
SUMOReal 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, SUMOReal begin, SUMOReal 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...
 
GNERerouterInterval & operator= (const GNERerouterInterval &rerouterInterval)
 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 (SUMOReal 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 (SUMOReal end)
 set end time More...
 
void setRouteProbReroutes (const std::vector< GNERouteProbReroute > &rerouteProbabilityReroutes)
 set reoute probability reroutes More...
 
 ~GNERerouterInterval ()
 destructor More...
 

Protected Attributes

SUMOReal 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...
 
SUMOReal 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...
 

Detailed Description

class used to represent a interval used in rerouters

Definition at line 50 of file GNERerouterInterval.h.

Constructor & Destructor Documentation

GNERerouterInterval::GNERerouterInterval ( GNERerouter *  rerouterParent,
SUMOReal  begin,
SUMOReal  end 
)

constructor

Definition at line 45 of file GNERerouterInterval.cpp.

GNERerouterInterval::~GNERerouterInterval ( )

destructor

Definition at line 54 of file GNERerouterInterval.cpp.

Member Function Documentation

SUMOReal GNERerouterInterval::getBegin ( ) const

get begin time

Definition at line 187 of file GNERerouterInterval.cpp.

References myBegin, and SUMOReal.

Referenced by GNERerouterIntervalDialog::onCmdChangeEnd().

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

get closing reroutes

Definition at line 211 of file GNERerouterInterval.cpp.

References myClosingLaneReroutes.

Referenced by GNERerouterIntervalDialog::onCmdReset().

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

get closing reroutes

Definition at line 217 of file GNERerouterInterval.cpp.

References myClosingReroutes.

Referenced by GNERerouterIntervalDialog::onCmdReset().

const std::vector< GNEDestProbReroute > & GNERerouterInterval::getDestProbReroutes ( ) const

get destiny probability reroutes

Definition at line 223 of file GNERerouterInterval.cpp.

References myDestProbReroutes.

Referenced by GNERerouterIntervalDialog::onCmdReset().

SUMOReal GNERerouterInterval::getEnd ( ) const

get end time

Definition at line 193 of file GNERerouterInterval.cpp.

References myEnd.

Referenced by GNERerouterIntervalDialog::onCmdChangeBegin().

const std::vector< GNERouteProbReroute > & GNERerouterInterval::getRouteProbReroutes ( ) const

get reoute probability reroutes

Definition at line 229 of file GNERerouterInterval.cpp.

References myRouteProbReroutes.

Referenced by GNERerouterIntervalDialog::onCmdReset().

SumoXMLTag GNERerouterInterval::getTag ( ) const

get tag

Definition at line 181 of file GNERerouterInterval.cpp.

References myTag, and SUMOReal.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

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 88 of file GNERerouterInterval.cpp.

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

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 59 of file GNERerouterInterval.cpp.

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

bool GNERerouterInterval::insertDestProbReroutes ( const GNEDestProbReroute &  dpr)

insert destiny probability reroute

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

Definition at line 117 of file GNERerouterInterval.cpp.

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

bool GNERerouterInterval::insertRouteProbReroute ( const GNERouteProbReroute &  rpr)

insert route probability reroute

Returns
true if insertion was sucesfully, false if is duplicated

Definition at line 146 of file GNERerouterInterval.cpp.

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

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

overload operator =

Definition at line 259 of file GNERerouterInterval.cpp.

References myBegin, myEnd, and myRerouterParent.

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 73 of file GNERerouterInterval.cpp.

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

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 102 of file GNERerouterInterval.cpp.

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

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 131 of file GNERerouterInterval.cpp.

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

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 160 of file GNERerouterInterval.cpp.

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

void GNERerouterInterval::setBegin ( SUMOReal  begin)

set begin time

Definition at line 199 of file GNERerouterInterval.cpp.

References myBegin.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

void GNERerouterInterval::setClosingLaneReroutes ( const std::vector< GNEClosingLaneReroute > &  closingLaneReroutes)

set closing reroutes

Definition at line 235 of file GNERerouterInterval.cpp.

References myClosingLaneReroutes.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

void GNERerouterInterval::setClosingReroutes ( const std::vector< GNEClosingReroute > &  closingReroutes)

set closing reroutes

Definition at line 241 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 247 of file GNERerouterInterval.cpp.

References myDestProbReroutes.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

void GNERerouterInterval::setEnd ( SUMOReal  end)

set end time

Definition at line 205 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 253 of file GNERerouterInterval.cpp.

References myRouteProbReroutes.

Referenced by GNERerouterIntervalDialog::onCmdAccept().

Field Documentation

SUMOReal GNERerouterInterval::myBegin
protected

begin timeStep

Definition at line 148 of file GNERerouterInterval.h.

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

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

vector with the closingLaneReroutes

Definition at line 157 of file GNERerouterInterval.h.

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

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

vector with the closingReroutes

Definition at line 160 of file GNERerouterInterval.h.

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

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

vector with the destProbReroutes

Definition at line 163 of file GNERerouterInterval.h.

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

SUMOReal GNERerouterInterval::myEnd
protected

end timeStep

Definition at line 151 of file GNERerouterInterval.h.

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

GNERerouter* GNERerouterInterval::myRerouterParent
protected

pointer to rerouter parent

Definition at line 145 of file GNERerouterInterval.h.

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

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

vector with the routeProbReroutes

Definition at line 166 of file GNERerouterInterval.h.

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

SumoXMLTag GNERerouterInterval::myTag
protected

XML Tag of a rerouter interval.

Definition at line 154 of file GNERerouterInterval.h.

Referenced by getTag().


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