SUMO - Simulation of Urban MObility
GNERerouter::closingReroute Class Reference

#include <GNERerouter.h>

Collaboration diagram for GNERerouter::closingReroute:
Collaboration graph

Public Member Functions

 closingReroute (std::string closedEdgeId, std::vector< std::string > allowVehicles, std::vector< std::string > disallowVehicles)
 constructor More...
 
std::vector< std::string > getAllowVehicles () const
 get allow vehicles More...
 
std::string getClosedEdgeId () const
 get closed edge Id More...
 
std::vector< std::string > getDisallowVehicles () const
 get disallow vehicles More...
 
void insertAllowVehicle (std::string vehicleid)
 insert an allow vehicle More...
 
void insertDisallowVehicle (std::string vehicleid)
 insert a disallow vehicle More...
 
void removeAllowVehicle (std::string vehicleid)
 remove a previously inserted allow vehicle More...
 
void removeDisallowVehicle (std::string vehicleid)
 remove a previously inserted disallow vehicle More...
 
 ~closingReroute ()
 destructor More...
 

Private Attributes

std::vector< std::string > myAllowVehicles
 vector of allow vehicles More...
 
std::string myClosedEdgeId
 edge ID More...
 
std::vector< std::string > myDisallowVehicles
 vector of disallow vehicles More...
 

Detailed Description

Definition at line 55 of file GNERerouter.h.

Constructor & Destructor Documentation

§ closingReroute()

GNERerouter::closingReroute::closingReroute ( std::string  closedEdgeId,
std::vector< std::string >  allowVehicles,
std::vector< std::string >  disallowVehicles 
)

constructor

Definition at line 73 of file GNERerouter.cpp.

§ ~closingReroute()

GNERerouter::closingReroute::~closingReroute ( )

destructor

Definition at line 80 of file GNERerouter.cpp.

Member Function Documentation

§ getAllowVehicles()

std::vector< std::string > GNERerouter::closingReroute::getAllowVehicles ( ) const

get allow vehicles

Definition at line 139 of file GNERerouter.cpp.

References myAllowVehicles.

§ getClosedEdgeId()

std::string GNERerouter::closingReroute::getClosedEdgeId ( ) const

§ getDisallowVehicles()

std::vector< std::string > GNERerouter::closingReroute::getDisallowVehicles ( ) const

get disallow vehicles

Definition at line 145 of file GNERerouter.cpp.

References myDisallowVehicles.

§ insertAllowVehicle()

void GNERerouter::closingReroute::insertAllowVehicle ( std::string  vehicleid)

insert an allow vehicle

Exceptions
ProcessErrorif allowed vehicle was already inserted

Definition at line 85 of file GNERerouter.cpp.

References myAllowVehicles.

§ insertDisallowVehicle()

void GNERerouter::closingReroute::insertDisallowVehicle ( std::string  vehicleid)

insert a disallow vehicle

Exceptions
ProcessErrorif disallowed vehicle was already inserted

Definition at line 112 of file GNERerouter.cpp.

References myDisallowVehicles.

§ removeAllowVehicle()

void GNERerouter::closingReroute::removeAllowVehicle ( std::string  vehicleid)

remove a previously inserted allow vehicle

Exceptions
ProcessErrorif allowed vehicle cannot be found in the container

Definition at line 98 of file GNERerouter.cpp.

References myAllowVehicles.

§ removeDisallowVehicle()

void GNERerouter::closingReroute::removeDisallowVehicle ( std::string  vehicleid)

remove a previously inserted disallow vehicle

Exceptions
ProcessErrorif disallowed vehicle cannot be found in the container

Definition at line 125 of file GNERerouter.cpp.

References myDisallowVehicles.

Field Documentation

§ myAllowVehicles

std::vector<std::string> GNERerouter::closingReroute::myAllowVehicles
private

vector of allow vehicles

Definition at line 93 of file GNERerouter.h.

Referenced by getAllowVehicles(), insertAllowVehicle(), and removeAllowVehicle().

§ myClosedEdgeId

std::string GNERerouter::closingReroute::myClosedEdgeId
private

edge ID

Definition at line 90 of file GNERerouter.h.

Referenced by getClosedEdgeId().

§ myDisallowVehicles

std::vector<std::string> GNERerouter::closingReroute::myDisallowVehicles
private

vector of disallow vehicles

Definition at line 96 of file GNERerouter.h.

Referenced by getDisallowVehicles(), insertDisallowVehicle(), and removeDisallowVehicle().


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