![]() |
SUMO - Simulation of Urban MObility
|
#include <GNECalibratorRoute.h>
Public Member Functions | |
std::string | checkEdgeRoute (const std::vector< std::string > &edge) const |
check if a list of edges is valid to set a route More... | |
GNECalibrator * | getCalibratorParent () const |
get pointer to calibrator parent More... | |
const std::string & | getColor () const |
get color of route More... | |
const std::vector< GNEEdge * > & | getEdges () const |
get edges More... | |
std::vector< std::string > | getEdgesIDs () const |
get IDs of Edges More... | |
const std::string & | getRouteID () const |
get route ID More... | |
SumoXMLTag | getTag () const |
get tag More... | |
GNECalibratorRoute (GNECalibrator *calibratorParent) | |
default constructor More... | |
GNECalibratorRoute (GNECalibrator *calibratorParent, std::string routeID, std::vector< std::string > edges, std::string color) | |
parameter constructor 1 (Using edges IDs) More... | |
GNECalibratorRoute (GNECalibrator *calibratorParent, std::string routeID, std::vector< GNEEdge *> edges, std::string color) | |
parameter constructor 2 (Using GNEEdges) More... | |
bool | operator== (const GNECalibratorRoute &calibratorRoute) const |
overload operator == More... | |
bool | setColor (std::string color="") |
set color of route More... | |
bool | setEdges (const std::vector< std::string > &edgeIDs) |
set edges of route using IDs More... | |
bool | setEdges (const std::vector< GNEEdge *> &edges) |
set edges of route using pointers More... | |
bool | setEdges (const std::string &edgeIDs) |
set edges of route using a single string More... | |
bool | setRouteID (std::string routeID) |
set route ID More... | |
~GNECalibratorRoute () | |
destructor More... | |
Private Attributes | |
GNECalibrator * | myCalibratorParent |
pointer to calibrator parent More... | |
std::string | myColor |
color of flow More... | |
std::vector< GNEEdge * > | myEdges |
edges of route More... | |
std::string | myRouteID |
route in which this flow is used More... | |
vehicle route used by GNECalibrators
Definition at line 50 of file GNECalibratorRoute.h.
GNECalibratorRoute::GNECalibratorRoute | ( | GNECalibrator * | calibratorParent | ) |
default constructor
Definition at line 62 of file GNECalibratorRoute.cpp.
GNECalibratorRoute::GNECalibratorRoute | ( | GNECalibrator * | calibratorParent, |
std::string | routeID, | ||
std::vector< std::string > | edges, | ||
std::string | color | ||
) |
parameter constructor 1 (Using edges IDs)
Definition at line 67 of file GNECalibratorRoute.cpp.
References setColor(), setEdges(), and setRouteID().
GNECalibratorRoute::GNECalibratorRoute | ( | GNECalibrator * | calibratorParent, |
std::string | routeID, | ||
std::vector< GNEEdge *> | edges, | ||
std::string | color | ||
) |
parameter constructor 2 (Using GNEEdges)
Definition at line 76 of file GNECalibratorRoute.cpp.
References setColor(), setEdges(), and setRouteID().
GNECalibratorRoute::~GNECalibratorRoute | ( | ) |
destructor
Definition at line 84 of file GNECalibratorRoute.cpp.
std::string GNECalibratorRoute::checkEdgeRoute | ( | const std::vector< std::string > & | edge | ) | const |
check if a list of edges is valid to set a route
Definition at line 182 of file GNECalibratorRoute.cpp.
References GNEEdge::getGNEJunctionDestiny(), GNEJunction::getGNEOutgoingEdges(), GNEViewNet::getNet(), GNEAdditional::getViewNet(), myCalibratorParent, GNENet::retrieveEdge(), SUMO_TAG_EDGE, and toString().
GNECalibrator * GNECalibratorRoute::getCalibratorParent | ( | ) | const |
get pointer to calibrator parent
Definition at line 88 of file GNECalibratorRoute.cpp.
References myCalibratorParent.
Referenced by GNECalibratorRouteDialog::onCmdAccept().
const std::string & GNECalibratorRoute::getColor | ( | ) | const |
get color of route
Definition at line 122 of file GNECalibratorRoute.cpp.
References myColor.
Referenced by GNECalibratorRouteDialog::onCmdSetVariable(), and GNECalibratorRouteDialog::updateCalibratorRouteValues().
const std::vector< GNEEdge * > & GNECalibratorRoute::getEdges | ( | ) | const |
get edges
Definition at line 116 of file GNECalibratorRoute.cpp.
References myEdges.
Referenced by GNECalibratorRouteDialog::onCmdSetVariable(), and GNECalibratorRouteDialog::updateCalibratorRouteValues().
std::vector< std::string > GNECalibratorRoute::getEdgesIDs | ( | ) | const |
get IDs of Edges
Definition at line 106 of file GNECalibratorRoute.cpp.
References myEdges.
Referenced by GNECalibratorRouteDialog::updateCalibratorRouteValues().
const std::string & GNECalibratorRoute::getRouteID | ( | ) | const |
get route ID
Definition at line 100 of file GNECalibratorRoute.cpp.
References myRouteID.
Referenced by GNECalibratorRouteDialog::onCmdSetVariable(), operator==(), and GNECalibratorRouteDialog::updateCalibratorRouteValues().
SumoXMLTag GNECalibratorRoute::getTag | ( | ) | const |
get tag
Definition at line 94 of file GNECalibratorRoute.cpp.
References SUMO_TAG_ROUTE.
Referenced by GNECalibratorRouteDialog::onCmdAccept().
bool GNECalibratorRoute::operator== | ( | const GNECalibratorRoute & | calibratorRoute | ) | const |
overload operator ==
Definition at line 212 of file GNECalibratorRoute.cpp.
References getRouteID(), and myRouteID.
bool GNECalibratorRoute::setColor | ( | std::string | color = "" | ) |
set color of route
Definition at line 175 of file GNECalibratorRoute.cpp.
References myColor.
Referenced by GNECalibratorRoute(), and GNECalibratorRouteDialog::onCmdSetVariable().
bool GNECalibratorRoute::setEdges | ( | const std::vector< std::string > & | edgeIDs | ) |
set edges of route using IDs
Definition at line 141 of file GNECalibratorRoute.cpp.
References GNEViewNet::getNet(), GNEAdditional::getViewNet(), myCalibratorParent, and GNENet::retrieveEdge().
Referenced by GNECalibratorRoute(), GNECalibratorRouteDialog::onCmdSetVariable(), and setEdges().
bool GNECalibratorRoute::setEdges | ( | const std::vector< GNEEdge *> & | edges | ) |
set edges of route using pointers
Definition at line 158 of file GNECalibratorRoute.cpp.
References myEdges.
bool GNECalibratorRoute::setEdges | ( | const std::string & | edgeIDs | ) |
set edges of route using a single string
Definition at line 165 of file GNECalibratorRoute.cpp.
References GNEAttributeCarrier::canParse(), GNEAttributeCarrier::parse(), and setEdges().
bool GNECalibratorRoute::setRouteID | ( | std::string | routeID | ) |
set route ID
Definition at line 128 of file GNECalibratorRoute.cpp.
References GNEViewNet::getNet(), GNEAdditional::getViewNet(), myCalibratorParent, myRouteID, and GNENet::routeExists().
Referenced by GNECalibratorRoute(), and GNECalibratorRouteDialog::onCmdSetVariable().
|
private |
pointer to calibrator parent
Definition at line 118 of file GNECalibratorRoute.h.
Referenced by checkEdgeRoute(), getCalibratorParent(), setEdges(), and setRouteID().
|
private |
color of flow
Definition at line 127 of file GNECalibratorRoute.h.
Referenced by getColor(), and setColor().
|
private |
edges of route
Definition at line 124 of file GNECalibratorRoute.h.
Referenced by getEdges(), getEdgesIDs(), and setEdges().
|
private |
route in which this flow is used
Definition at line 121 of file GNECalibratorRoute.h.
Referenced by getRouteID(), operator==(), and setRouteID().