Eclipse SUMO - Simulation of Urban MObility
|
#include <GNECandidateElement.h>
Public Member Functions | |
GNECandidateElement () | |
Constructor. | |
bool | isConflictedCandidate () const |
check if this element is a conflicted candidate | |
bool | isInvalidCandidate () const |
check if this element is a invalid candidate | |
bool | isPossibleCandidate () const |
check if this element is a possible candidate | |
bool | isSourceCandidate () const |
check if this element is a source candidate | |
bool | isSpecialCandidate () const |
check if this element is a special candidate | |
bool | isTargetCandidate () const |
check if this element is a target candidate | |
void | resetCandidateFlags () |
reset candidate flags | |
void | setConflictedCandidate (const bool value) |
set element as conflicted candidate | |
void | setInvalidCandidate (const bool value) |
set element as invalid candidate | |
void | setPossibleCandidate (const bool value) |
set element as possible candidate | |
void | setSourceCandidate (const bool value) |
set element as source candidate | |
void | setSpecialCandidate (const bool value) |
set element as special candidate | |
void | setTargetCandidate (const bool value) |
set element as target candidate | |
~GNECandidateElement () | |
Destructor. | |
functions for reachability | |
double | getReachability () const |
get current reachability (traveltime) | |
void | setReachability (const double reachability) |
set current reachability (traveltime) | |
void | resetReachability () |
reset reachability (traveltime) | |
Protected Attributes | |
bool | myConflictedCandidate = false |
flag to mark this element as conflicted candidate | |
bool | myInvalidCandidate = false |
flag to mark this element as invalid candidate | |
bool | myPossibleCandidate = false |
flag to mark this element as possible candidate | |
double | myReachability = -1 |
value for reachability | |
bool | mySourceCandidate = false |
flag to mark this element as source candidate | |
bool | mySpecialCandidate = false |
flag to mark this element as special candidate | |
bool | myTargetCandidate = false |
flag to mark this element as target candidate | |
Private Member Functions | |
GNECandidateElement (const GNECandidateElement &)=delete | |
Invalidated copy constructor. | |
GNECandidateElement & | operator= (const GNECandidateElement &src)=delete |
Invalidated assignment operator. | |
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 36 of file GNECandidateElement.cpp.
|
privatedelete |
Invalidated copy constructor.
double GNECandidateElement::getReachability | ( | ) | const |
get current reachability (traveltime)
Definition at line 124 of file GNECandidateElement.cpp.
References myReachability.
bool GNECandidateElement::isConflictedCandidate | ( | ) | const |
check if this element is a conflicted candidate
Definition at line 76 of file GNECandidateElement.cpp.
References myConflictedCandidate.
Referenced by GNEPathCreator::addEdge(), GNEConsecutiveSelector::addLane(), and GNELane::setLaneColor().
bool GNECandidateElement::isInvalidCandidate | ( | ) | const |
check if this element is a invalid candidate
Definition at line 82 of file GNECandidateElement.cpp.
References myInvalidCandidate.
Referenced by GNECrossingFrame::addCrossing(), and GNELane::setLaneColor().
bool GNECandidateElement::isPossibleCandidate | ( | ) | const |
check if this element is a possible candidate
Definition at line 51 of file GNECandidateElement.cpp.
References myPossibleCandidate.
Referenced by GNEPathCreator::addEdge(), GNEConsecutiveSelector::addLane(), and GNELane::setLaneColor().
bool GNECandidateElement::isSourceCandidate | ( | ) | const |
check if this element is a source candidate
Definition at line 58 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 70 of file GNECandidateElement.cpp.
References mySpecialCandidate.
Referenced by GNEPathCreator::addEdge(), GNEConsecutiveSelector::addLane(), and GNELane::setLaneColor().
bool GNECandidateElement::isTargetCandidate | ( | ) | const |
check if this element is a target candidate
Definition at line 64 of file GNECandidateElement.cpp.
References myTargetCandidate.
Referenced by GNELane::setLaneColor().
|
privatedelete |
Invalidated assignment operator.
void GNECandidateElement::resetCandidateFlags | ( | ) |
reset candidate flags
Definition at line 40 of file GNECandidateElement.cpp.
References myConflictedCandidate, myInvalidCandidate, myPossibleCandidate, mySourceCandidate, mySpecialCandidate, and myTargetCandidate.
Referenced by GNECrossingFrame::EdgesSelector::restoreEdgeColors().
void GNECandidateElement::resetReachability | ( | ) |
reset reachability (traveltime)
Definition at line 136 of file GNECandidateElement.cpp.
References myReachability.
void GNECandidateElement::setConflictedCandidate | ( | const bool | value | ) |
set element as conflicted candidate
Definition at line 112 of file GNECandidateElement.cpp.
References myConflictedCandidate.
Referenced by GNEConsecutiveSelector::updateLaneColors().
void GNECandidateElement::setInvalidCandidate | ( | const bool | value | ) |
set element as invalid candidate
Definition at line 118 of file GNECandidateElement.cpp.
References myInvalidCandidate.
void GNECandidateElement::setPossibleCandidate | ( | const bool | value | ) |
set element as possible candidate
Definition at line 88 of file GNECandidateElement.cpp.
References myPossibleCandidate.
void GNECandidateElement::setReachability | ( | const double | reachability | ) |
set current reachability (traveltime)
Definition at line 130 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 94 of file GNECandidateElement.cpp.
References mySourceCandidate.
void GNECandidateElement::setSpecialCandidate | ( | const bool | value | ) |
set element as special candidate
Definition at line 106 of file GNECandidateElement.cpp.
References mySpecialCandidate.
void GNECandidateElement::setTargetCandidate | ( | const bool | value | ) |
set element as target candidate
Definition at line 100 of file GNECandidateElement.cpp.
References myTargetCandidate.
|
protected |
flag to mark this element as conflicted candidate
Definition at line 104 of file GNECandidateElement.h.
Referenced by GNEJunction::drawAsBubble(), isConflictedCandidate(), resetCandidateFlags(), GNEJunction::setColor(), setConflictedCandidate(), and GNELane::setLaneColor().
|
protected |
flag to mark this element as invalid candidate
Definition at line 107 of file GNECandidateElement.h.
Referenced by isInvalidCandidate(), resetCandidateFlags(), setInvalidCandidate(), and GNELane::setLaneColor().
|
protected |
flag to mark this element as possible candidate
Definition at line 92 of file GNECandidateElement.h.
Referenced by GNEJunction::drawAsBubble(), isPossibleCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setPossibleCandidate().
|
protected |
value for reachability
Definition at line 110 of file GNECandidateElement.h.
Referenced by getReachability(), resetReachability(), and setReachability().
|
protected |
flag to mark this element as source candidate
Definition at line 95 of file GNECandidateElement.h.
Referenced by GNEJunction::drawAsBubble(), isSourceCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setSourceCandidate().
|
protected |
flag to mark this element as special candidate
Definition at line 101 of file GNECandidateElement.h.
Referenced by GNEJunction::drawAsBubble(), isSpecialCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setSpecialCandidate().
|
protected |
flag to mark this element as target candidate
Definition at line 98 of file GNECandidateElement.h.
Referenced by GNEJunction::drawAsBubble(), isTargetCandidate(), resetCandidateFlags(), GNEJunction::setColor(), GNELane::setLaneColor(), and setTargetCandidate().