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 28 of file GNECandidateElement.cpp.

Referenced by GNECandidateElement(), and operator=().

Here is the caller graph for this function:

◆ ~GNECandidateElement()

GNECandidateElement::~GNECandidateElement ( )

Destructor.

Definition at line 31 of file GNECandidateElement.cpp.

◆ GNECandidateElement() [2/2]

GNECandidateElement::GNECandidateElement ( const GNECandidateElement & )
privatedelete

Invalidated copy constructor.

References GNECandidateElement().

Member Function Documentation

◆ getReachability()

double GNECandidateElement::getReachability ( ) const

get current reachability (traveltime)

Definition at line 119 of file GNECandidateElement.cpp.

References myReachability.

◆ isConflictedCandidate()

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(), 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 77 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 46 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 53 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 65 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 59 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.

References GNECandidateElement().

◆ resetCandidateFlags()

void GNECandidateElement::resetCandidateFlags ( )

◆ resetReachability()

void GNECandidateElement::resetReachability ( )

reset reachability (traveltime)

Definition at line 131 of file GNECandidateElement.cpp.

References myReachability.

◆ setConflictedCandidate()

void GNECandidateElement::setConflictedCandidate ( const bool value)

set element as conflicted candidate

Definition at line 107 of file GNECandidateElement.cpp.

References invalid_return< std::string >::value, and myConflictedCandidate.

◆ setInvalidCandidate()

void GNECandidateElement::setInvalidCandidate ( const bool value)

set element as invalid candidate

Definition at line 113 of file GNECandidateElement.cpp.

References invalid_return< std::string >::value, and myInvalidCandidate.

◆ setPossibleCandidate()

void GNECandidateElement::setPossibleCandidate ( const bool value)

set element as possible candidate

Definition at line 83 of file GNECandidateElement.cpp.

References invalid_return< std::string >::value, and myPossibleCandidate.

◆ setReachability()

void GNECandidateElement::setReachability ( const double reachability)

set current reachability (traveltime)

Definition at line 125 of file GNECandidateElement.cpp.

References myReachability.

◆ setSourceCandidate()

void GNECandidateElement::setSourceCandidate ( const bool value)

set element as source candidate

Definition at line 89 of file GNECandidateElement.cpp.

References invalid_return< std::string >::value, and mySourceCandidate.

◆ setSpecialCandidate()

void GNECandidateElement::setSpecialCandidate ( const bool value)

set element as special candidate

Definition at line 101 of file GNECandidateElement.cpp.

References invalid_return< std::string >::value, and mySpecialCandidate.

◆ setTargetCandidate()

void GNECandidateElement::setTargetCandidate ( const bool value)

set element as target candidate

Definition at line 95 of file GNECandidateElement.cpp.

References invalid_return< std::string >::value, and 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: