![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNECandidateElement.h>
Public Member Functions | |
GNECandidateElement () | |
Constructor. More... | |
bool | isConflictedCandidate () const |
check if this element is a conflicted candidate More... | |
bool | isPossibleCandidate () const |
check if this element is a possible candidate More... | |
bool | isSourceCandidate () const |
check if this element is a source candidate More... | |
bool | isSpecialCandidate () const |
check if this element is a special candidate More... | |
bool | isTargetCandidate () const |
check if this element is a target candidate More... | |
void | resetCandidateFlags () |
reset candidate flags More... | |
void | setConflictedCandidate (const bool value) |
set element as conflicted candidate More... | |
void | setPossibleCandidate (const bool value) |
set element as possible candidate More... | |
void | setSourceCandidate (const bool value) |
set element as source candidate More... | |
void | setSpecialCandidate (const bool value) |
set element as special candidate More... | |
void | setTargetCandidate (const bool value) |
set element as target candidate More... | |
~GNECandidateElement () | |
Destructor. More... | |
functions for reachability | |
double | getReachability () const |
get current reability (traveltime) More... | |
void | setReachability (const double reachability) |
set current reachability (traveltime) More... | |
void | resetReachability () |
reset reachability (traveltime) More... | |
Protected Attributes | |
bool | myConflictedCandidate |
flag to mark this element as conflicted candidate More... | |
bool | myPossibleCandidate |
flag to mark this element as possible candidate More... | |
double | myReachability |
value for reachability More... | |
bool | mySourceCandidate |
flag to mark this element as source candidate More... | |
bool | mySpecialCandidate |
flag to mark this element as special candidate More... | |
bool | myTargetCandidate |
flag to mark this element as target candidate More... | |
Private Member Functions | |
GNECandidateElement (const GNECandidateElement &)=delete | |
Invalidated copy constructor. More... | |
GNECandidateElement & | operator= (const GNECandidateElement &src)=delete |
Invalidated assignment operator. More... | |
Definition at line 28 of file GNECandidateElement.h.
GNECandidateElement::GNECandidateElement | ( | ) |
Constructor.
Definition at line 33 of file GNECandidateElement.cpp.
GNECandidateElement::~GNECandidateElement | ( | ) |
Destructor.
Definition at line 42 of file GNECandidateElement.cpp.
|
privatedelete |
Invalidated copy constructor.
double GNECandidateElement::getReachability | ( | ) | const |
get current reability (traveltime)
Definition at line 117 of file GNECandidateElement.cpp.
References myReachability.
bool GNECandidateElement::isConflictedCandidate | ( | ) | const |
check if this element is a conflicted candidate
Definition at line 81 of file GNECandidateElement.cpp.
References myConflictedCandidate.
Referenced by GNEFrameModules::PathCreator::addEdge(), GNEAdditionalFrame::E2MultilaneLaneSelector::addLane(), and GNELane::setLaneColor().
bool GNECandidateElement::isPossibleCandidate | ( | ) | const |
check if this element is a possible candidate
Definition at line 56 of file GNECandidateElement.cpp.
References myPossibleCandidate.
Referenced by GNEFrameModules::PathCreator::addEdge(), GNEAdditionalFrame::E2MultilaneLaneSelector::addLane(), and GNELane::setLaneColor().
bool GNECandidateElement::isSourceCandidate | ( | ) | const |
check if this element is a source candidate
Definition at line 63 of file GNECandidateElement.cpp.
References mySourceCandidate.
Referenced by GNELane::setLaneColor().
bool GNECandidateElement::isSpecialCandidate | ( | ) | const |
check if this element is a special candidate
Definition at line 75 of file GNECandidateElement.cpp.
References mySpecialCandidate.
Referenced by GNEFrameModules::PathCreator::addEdge(), GNEAdditionalFrame::E2MultilaneLaneSelector::addLane(), and GNELane::setLaneColor().
bool GNECandidateElement::isTargetCandidate | ( | ) | const |
check if this element is a target candidate
Definition at line 69 of file GNECandidateElement.cpp.
References myTargetCandidate.
Referenced by GNELane::setLaneColor().
|
privatedelete |
Invalidated assignment operator.
void GNECandidateElement::resetCandidateFlags | ( | ) |
reset candidate flags
Definition at line 46 of file GNECandidateElement.cpp.
References myConflictedCandidate, myPossibleCandidate, mySourceCandidate, mySpecialCandidate, and myTargetCandidate.
void GNECandidateElement::resetReachability | ( | ) |
reset reachability (traveltime)
Definition at line 129 of file GNECandidateElement.cpp.
References myReachability.
void GNECandidateElement::setConflictedCandidate | ( | const bool | value | ) |
set element as conflicted candidate
Definition at line 111 of file GNECandidateElement.cpp.
References myConflictedCandidate.
Referenced by GNEAdditionalFrame::E2MultilaneLaneSelector::updateLaneColors().
void GNECandidateElement::setPossibleCandidate | ( | const bool | value | ) |
set element as possible candidate
Definition at line 87 of file GNECandidateElement.cpp.
References myPossibleCandidate.
void GNECandidateElement::setReachability | ( | const double | reachability | ) |
set current reachability (traveltime)
Definition at line 123 of file GNECandidateElement.cpp.
References myReachability.
Referenced by GNEPathManager::PathCalculator::calculateReachability().
void GNECandidateElement::setSourceCandidate | ( | const bool | value | ) |
set element as source candidate
Definition at line 93 of file GNECandidateElement.cpp.
References mySourceCandidate.
void GNECandidateElement::setSpecialCandidate | ( | const bool | value | ) |
set element as special candidate
Definition at line 105 of file GNECandidateElement.cpp.
References mySpecialCandidate.
void GNECandidateElement::setTargetCandidate | ( | const bool | value | ) |
set element as target candidate
Definition at line 99 of file GNECandidateElement.cpp.
References myTargetCandidate.
Referenced by GNEAdditionalFrame::SelectorParentLanes::addSelectedLane().
|
protected |
flag to mark this element as conflicted candidate
Definition at line 98 of file GNECandidateElement.h.
Referenced by GNEJunction::drawGL(), isConflictedCandidate(), resetCandidateFlags(), GNEJunction::setColor(), setConflictedCandidate(), and GNELane::setLaneColor().
|
protected |
flag to mark this element as possible candidate
Definition at line 86 of file GNECandidateElement.h.
Referenced by GNEJunction::drawGL(), isPossibleCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setPossibleCandidate().
|
protected |
value for reachability
Definition at line 101 of file GNECandidateElement.h.
Referenced by getReachability(), resetReachability(), and setReachability().
|
protected |
flag to mark this element as source candidate
Definition at line 89 of file GNECandidateElement.h.
Referenced by GNEJunction::drawGL(), isSourceCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setSourceCandidate().
|
protected |
flag to mark this element as special candidate
Definition at line 95 of file GNECandidateElement.h.
Referenced by GNEJunction::drawGL(), isSpecialCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setSpecialCandidate().
|
protected |
flag to mark this element as target candidate
Definition at line 92 of file GNECandidateElement.h.
Referenced by GNEJunction::drawGL(), isTargetCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setTargetCandidate().