Eclipse SUMO - Simulation of Urban MObility
GNECandidateElement Class Reference

#include <GNECandidateElement.h>

Inheritance diagram for GNECandidateElement:
[legend]

Public Member Functions

 GNECandidateElement ()
 Constructor. More...
 
bool isConflictedCandidate () const
 check if this element is a conflicted candidate More...
 
bool isInvalidCandidate () const
 check if this element is a invalid 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 setInvalidCandidate (const bool value)
 set element as invalid 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 reachability (traveltime) More...
 
void setReachability (const double reachability)
 set current reachability (traveltime) More...
 
void resetReachability ()
 reset reachability (traveltime) More...
 

Protected Attributes

bool myConflictedCandidate = false
 flag to mark this element as conflicted candidate More...
 
bool myInvalidCandidate = false
 flag to mark this element as invalid candidate More...
 
bool myPossibleCandidate = false
 flag to mark this element as possible candidate More...
 
double myReachability = -1
 value for reachability More...
 
bool mySourceCandidate = false
 flag to mark this element as source candidate More...
 
bool mySpecialCandidate = false
 flag to mark this element as special candidate More...
 
bool myTargetCandidate = false
 flag to mark this element as target candidate More...
 

Private Member Functions

 GNECandidateElement (const GNECandidateElement &)=delete
 Invalidated copy constructor. More...
 
GNECandidateElementoperator= (const GNECandidateElement &src)=delete
 Invalidated assignment operator. More...
 

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

◆ 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.

◆ 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: