![]() |
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 28 of file GNECandidateElement.cpp.
| GNECandidateElement::~GNECandidateElement | ( | ) |
Destructor.
Definition at line 31 of file GNECandidateElement.cpp.
|
privatedelete |
Invalidated copy constructor.
| double GNECandidateElement::getReachability | ( | ) | const |
get current reachability (traveltime)
Definition at line 119 of file GNECandidateElement.cpp.
References myReachability.
| bool GNECandidateElement::isConflictedCandidate | ( | ) | const |
check if this element is a conflicted candidate
Definition at line 71 of file GNECandidateElement.cpp.
References myConflictedCandidate.
Referenced by GNEPathCreator::addEdge(), and GNEConsecutiveSelector::addLane().
| bool GNECandidateElement::isInvalidCandidate | ( | ) | const |
check if this element is a invalid candidate
Definition at line 77 of file GNECandidateElement.cpp.
References myInvalidCandidate.
Referenced by GNECrossingFrame::addCrossing().
| bool GNECandidateElement::isPossibleCandidate | ( | ) | const |
check if this element is a possible candidate
Definition at line 46 of file GNECandidateElement.cpp.
References myPossibleCandidate.
Referenced by GNEPathCreator::addEdge(), and GNEConsecutiveSelector::addLane().
| bool GNECandidateElement::isSourceCandidate | ( | ) | const |
check if this element is a source candidate
Definition at line 53 of file GNECandidateElement.cpp.
References mySourceCandidate.
| bool GNECandidateElement::isSpecialCandidate | ( | ) | const |
check if this element is a special candidate
Definition at line 65 of file GNECandidateElement.cpp.
References mySpecialCandidate.
Referenced by GNEPathCreator::addEdge(), and GNEConsecutiveSelector::addLane().
| bool GNECandidateElement::isTargetCandidate | ( | ) | const |
check if this element is a target candidate
Definition at line 59 of file GNECandidateElement.cpp.
References myTargetCandidate.
|
privatedelete |
Invalidated assignment operator.
| void GNECandidateElement::resetCandidateFlags | ( | ) |
reset candidate flags
Definition at line 35 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 131 of file GNECandidateElement.cpp.
References myReachability.
| void GNECandidateElement::setConflictedCandidate | ( | const bool | value | ) |
set element as conflicted candidate
Definition at line 107 of file GNECandidateElement.cpp.
References myConflictedCandidate.
Referenced by GNEConsecutiveSelector::updateLaneColors().
| void GNECandidateElement::setInvalidCandidate | ( | const bool | value | ) |
set element as invalid candidate
Definition at line 113 of file GNECandidateElement.cpp.
References myInvalidCandidate.
| void GNECandidateElement::setPossibleCandidate | ( | const bool | value | ) |
set element as possible candidate
Definition at line 83 of file GNECandidateElement.cpp.
References myPossibleCandidate.
| void GNECandidateElement::setReachability | ( | const double | reachability | ) |
set current reachability (traveltime)
Definition at line 125 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 89 of file GNECandidateElement.cpp.
References mySourceCandidate.
| void GNECandidateElement::setSpecialCandidate | ( | const bool | value | ) |
set element as special candidate
Definition at line 101 of file GNECandidateElement.cpp.
References mySpecialCandidate.
| void GNECandidateElement::setTargetCandidate | ( | const bool | value | ) |
set element as target candidate
Definition at line 95 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().