Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNECandidateElement Class Reference

#include <GNECandidateElement.h>

Inheritance diagram for GNECandidateElement:
[legend]

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.
 
GNECandidateElementoperator= (const GNECandidateElement &src)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 28 of file GNECandidateElement.h.

Constructor & Destructor Documentation

◆ GNECandidateElement() [1/2]

GNECandidateElement::GNECandidateElement ( )

Constructor.

Definition at line 33 of file GNECandidateElement.cpp.

◆ ~GNECandidateElement()

GNECandidateElement::~GNECandidateElement ( )

Destructor.

Definition at line 36 of file GNECandidateElement.cpp.

◆ GNECandidateElement() [2/2]

GNECandidateElement::GNECandidateElement ( const GNECandidateElement )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getReachability()

double GNECandidateElement::getReachability ( ) const

get current reachability (traveltime)

Definition at line 124 of file GNECandidateElement.cpp.

References myReachability.

◆ isConflictedCandidate()

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().

Here is the caller graph for this function:

◆ isInvalidCandidate()

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().

Here is the caller graph for this function:

◆ isPossibleCandidate()

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().

Here is the caller graph for this function:

◆ isSourceCandidate()

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().

Here is the caller graph for this function:

◆ isSpecialCandidate()

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().

Here is the caller graph for this function:

◆ isTargetCandidate()

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().

Here is the caller graph for this function:

◆ operator=()

GNECandidateElement & GNECandidateElement::operator= ( const GNECandidateElement src)
privatedelete

Invalidated assignment operator.

◆ resetCandidateFlags()

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().

Here is the caller graph for this function:

◆ resetReachability()

void GNECandidateElement::resetReachability ( )

reset reachability (traveltime)

Definition at line 136 of file GNECandidateElement.cpp.

References myReachability.

◆ setConflictedCandidate()

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().

Here is the caller graph for this function:

◆ setInvalidCandidate()

void GNECandidateElement::setInvalidCandidate ( const bool  value)

set element as invalid candidate

Definition at line 118 of file GNECandidateElement.cpp.

References myInvalidCandidate.

◆ setPossibleCandidate()

void GNECandidateElement::setPossibleCandidate ( const bool  value)

set element as possible candidate

Definition at line 88 of file GNECandidateElement.cpp.

References myPossibleCandidate.

◆ setReachability()

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().

Here is the caller graph for this function:

◆ setSourceCandidate()

void GNECandidateElement::setSourceCandidate ( const bool  value)

set element as source candidate

Definition at line 94 of file GNECandidateElement.cpp.

References mySourceCandidate.

◆ setSpecialCandidate()

void GNECandidateElement::setSpecialCandidate ( const bool  value)

set element as special candidate

Definition at line 106 of file GNECandidateElement.cpp.

References mySpecialCandidate.

◆ setTargetCandidate()

void GNECandidateElement::setTargetCandidate ( const bool  value)

set element as target candidate

Definition at line 100 of file GNECandidateElement.cpp.

References myTargetCandidate.

Field Documentation

◆ myConflictedCandidate

bool GNECandidateElement::myConflictedCandidate = false
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().

◆ myInvalidCandidate

bool GNECandidateElement::myInvalidCandidate = false
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().

◆ myPossibleCandidate

bool GNECandidateElement::myPossibleCandidate = false
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().

◆ myReachability

double GNECandidateElement::myReachability = -1
protected

value for reachability

Definition at line 110 of file GNECandidateElement.h.

Referenced by getReachability(), resetReachability(), and setReachability().

◆ mySourceCandidate

bool GNECandidateElement::mySourceCandidate = false
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().

◆ mySpecialCandidate

bool GNECandidateElement::mySpecialCandidate = false
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().

◆ myTargetCandidate

bool GNECandidateElement::myTargetCandidate = false
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().


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