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 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 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 reability (traveltime) More...
 
void setReachability (const double reachability)
 set current reachability (traveltime) More...
 
void resetReachability ()
 reset reachability (traveltime) More...
 

Protected Attributes

bool myConflictedCandidate
 flag to mark this element as conflicted candidate More...
 
bool myPossibleCandidate
 flag to mark this element as possible candidate More...
 
double myReachability
 value for reachability More...
 
bool mySourceCandidate
 flag to mark this element as source candidate More...
 
bool mySpecialCandidate
 flag to mark this element as special candidate More...
 
bool myTargetCandidate
 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 42 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 reability (traveltime)

Definition at line 117 of file GNECandidateElement.cpp.

References myReachability.

◆ isConflictedCandidate()

bool GNECandidateElement::isConflictedCandidate ( ) const

check if this element is a conflicted candidate

Definition at line 81 of file GNECandidateElement.cpp.

References myConflictedCandidate.

Referenced by GNEFrameModuls::PathCreator::addEdge(), GNEAdditionalFrame::E2MultilaneLaneSelector::addLane(), 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 56 of file GNECandidateElement.cpp.

References myPossibleCandidate.

Referenced by GNEFrameModuls::PathCreator::addEdge(), GNEAdditionalFrame::E2MultilaneLaneSelector::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 63 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 75 of file GNECandidateElement.cpp.

References mySpecialCandidate.

Referenced by GNEFrameModuls::PathCreator::addEdge(), GNEAdditionalFrame::E2MultilaneLaneSelector::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 69 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 46 of file GNECandidateElement.cpp.

References myConflictedCandidate, myPossibleCandidate, mySourceCandidate, mySpecialCandidate, and myTargetCandidate.

◆ resetReachability()

void GNECandidateElement::resetReachability ( )

reset reachability (traveltime)

Definition at line 129 of file GNECandidateElement.cpp.

References myReachability.

◆ setConflictedCandidate()

void GNECandidateElement::setConflictedCandidate ( const bool  value)

set element as conflicted candidate

Definition at line 111 of file GNECandidateElement.cpp.

References myConflictedCandidate.

Referenced by GNEAdditionalFrame::E2MultilaneLaneSelector::updateLaneColors().

Here is the caller graph for this function:

◆ setPossibleCandidate()

void GNECandidateElement::setPossibleCandidate ( const bool  value)

set element as possible candidate

Definition at line 87 of file GNECandidateElement.cpp.

References myPossibleCandidate.

◆ setReachability()

void GNECandidateElement::setReachability ( const double  reachability)

set current reachability (traveltime)

Definition at line 123 of file GNECandidateElement.cpp.

References myReachability.

Referenced by GNENetHelper::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 93 of file GNECandidateElement.cpp.

References mySourceCandidate.

◆ setSpecialCandidate()

void GNECandidateElement::setSpecialCandidate ( const bool  value)

set element as special candidate

Definition at line 105 of file GNECandidateElement.cpp.

References mySpecialCandidate.

◆ setTargetCandidate()

void GNECandidateElement::setTargetCandidate ( const bool  value)

set element as target candidate

Definition at line 99 of file GNECandidateElement.cpp.

References myTargetCandidate.

Referenced by GNEAdditionalFrame::SelectorParentLanes::addSelectedLane().

Here is the caller graph for this function:

Field Documentation

◆ myConflictedCandidate

bool GNECandidateElement::myConflictedCandidate
protected

flag to mark this element as conflicted candidate

Definition at line 98 of file GNECandidateElement.h.

Referenced by isConflictedCandidate(), resetCandidateFlags(), setConflictedCandidate(), and GNELane::setLaneColor().

◆ myPossibleCandidate

bool GNECandidateElement::myPossibleCandidate
protected

flag to mark this element as possible candidate

Definition at line 86 of file GNECandidateElement.h.

Referenced by isPossibleCandidate(), resetCandidateFlags(), GNELane::setLaneColor(), and setPossibleCandidate().

◆ myReachability

double GNECandidateElement::myReachability
protected

value for reachability

Definition at line 101 of file GNECandidateElement.h.

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

◆ mySourceCandidate

bool GNECandidateElement::mySourceCandidate
protected

flag to mark this element as source candidate

Definition at line 89 of file GNECandidateElement.h.

Referenced by isSourceCandidate(), resetCandidateFlags(), GNELane::setLaneColor(), and setSourceCandidate().

◆ mySpecialCandidate

bool GNECandidateElement::mySpecialCandidate
protected

flag to mark this element as special candidate

Definition at line 95 of file GNECandidateElement.h.

Referenced by isSpecialCandidate(), resetCandidateFlags(), GNELane::setLaneColor(), and setSpecialCandidate().

◆ myTargetCandidate

bool GNECandidateElement::myTargetCandidate
protected

flag to mark this element as target candidate

Definition at line 92 of file GNECandidateElement.h.

Referenced by isTargetCandidate(), resetCandidateFlags(), GNELane::setLaneColor(), and setTargetCandidate().


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