Eclipse SUMO - Simulation of Urban MObility
MSJunctionLogic Class Reference

#include <MSJunctionLogic.h>

Inheritance diagram for MSJunctionLogic:
[legend]

Public Member Functions

virtual const MSLogicJunction::LinkBitsgetFoesFor (int linkIndex) const
 Returns the foes for the given link. More...
 
virtual bool getIsCont (int linkIndex) const
 
int getLogicSize () const
 
virtual const MSLogicJunction::LinkBitsgetResponseFor (int linkIndex) const
 Returns the response for the given link. More...
 
virtual bool hasFoes () const
 
virtual ~MSJunctionLogic ()
 Destructor. More...
 

Protected Member Functions

 MSJunctionLogic (int nLinks)
 Constructor. More...
 

Protected Attributes

int myNLinks
 The logic's number of links. More...
 

Static Protected Attributes

static MSLogicJunction::LinkBits myDummyFoes
 A dummy foe container. More...
 

Private Member Functions

 MSJunctionLogic (const MSJunctionLogic &)=delete
 Copy constructor. More...
 
MSJunctionLogicoperator= (const MSJunctionLogic &)=delete
 Assignment operator. More...
 

Detailed Description

Definition at line 36 of file MSJunctionLogic.h.

Constructor & Destructor Documentation

◆ ~MSJunctionLogic()

MSJunctionLogic::~MSJunctionLogic ( )
virtual

Destructor.

Definition at line 41 of file MSJunctionLogic.cpp.

◆ MSJunctionLogic() [1/2]

MSJunctionLogic::MSJunctionLogic ( int  nLinks)
protected

Constructor.

Definition at line 37 of file MSJunctionLogic.cpp.

◆ MSJunctionLogic() [2/2]

MSJunctionLogic::MSJunctionLogic ( const MSJunctionLogic )
privatedelete

Copy constructor.

Member Function Documentation

◆ getFoesFor()

virtual const MSLogicJunction::LinkBits& MSJunctionLogic::getFoesFor ( int  linkIndex) const
inlinevirtual

Returns the foes for the given link.

Reimplemented in MSBitSetLogic< N >.

Definition at line 48 of file MSJunctionLogic.h.

References myDummyFoes, and UNUSED_PARAMETER.

Referenced by MSRailSignal::DriveWay::checkCrossingFlanks(), MSRightOfWayJunction::postloadInit(), and MSActuatedTrafficLightLogic::weakConflict().

Here is the caller graph for this function:

◆ getIsCont()

virtual bool MSJunctionLogic::getIsCont ( int  linkIndex) const
inlinevirtual

Reimplemented in MSBitSetLogic< N >.

Definition at line 53 of file MSJunctionLogic.h.

References UNUSED_PARAMETER.

Referenced by MSRightOfWayJunction::postloadInit().

Here is the caller graph for this function:

◆ getLogicSize()

int MSJunctionLogic::getLogicSize ( ) const
inline

Definition at line 58 of file MSJunctionLogic.h.

References myNLinks.

Referenced by MSTrafficLightLogic::init(), and MSRightOfWayJunction::postloadInit().

Here is the caller graph for this function:

◆ getResponseFor()

virtual const MSLogicJunction::LinkBits& MSJunctionLogic::getResponseFor ( int  linkIndex) const
inlinevirtual

Returns the response for the given link.

Reimplemented in MSBitSetLogic< N >.

Definition at line 42 of file MSJunctionLogic.h.

References myDummyFoes, and UNUSED_PARAMETER.

Referenced by LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes(), MSTrafficLightLogic::init(), MSVehicle::isLeader(), MSInternalJunction::postloadInit(), and MSRightOfWayJunction::postloadInit().

Here is the caller graph for this function:

◆ hasFoes()

virtual bool MSJunctionLogic::hasFoes ( ) const
inlinevirtual

Reimplemented in MSBitSetLogic< N >.

Definition at line 62 of file MSJunctionLogic.h.

Referenced by MSRightOfWayJunction::postloadInit().

Here is the caller graph for this function:

◆ operator=()

MSJunctionLogic& MSJunctionLogic::operator= ( const MSJunctionLogic )
privatedelete

Assignment operator.

Field Documentation

◆ myDummyFoes

MSLogicJunction::LinkBits MSJunctionLogic::myDummyFoes
staticprotected

A dummy foe container.

Definition at line 74 of file MSJunctionLogic.h.

Referenced by getFoesFor(), and getResponseFor().

◆ myNLinks

int MSJunctionLogic::myNLinks
protected

The logic's number of links.

Definition at line 71 of file MSJunctionLogic.h.

Referenced by getLogicSize().


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