Eclipse SUMO - Simulation of Urban MObility
MSJunctionLogic Class Reference

#include <MSJunctionLogic.h>

Inheritance diagram for MSJunctionLogic:
Collaboration diagram for MSJunctionLogic:

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
 
int nLinks ()
 Returns the logic's number of links. More...
 
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 ()
 Default constructor. More...
 
 MSJunctionLogic (const MSJunctionLogic &)
 Copy constructor. More...
 
MSJunctionLogicoperator= (const MSJunctionLogic &)
 Assignment operator. More...
 

Detailed Description

Definition at line 38 of file MSJunctionLogic.h.

Constructor & Destructor Documentation

◆ ~MSJunctionLogic()

MSJunctionLogic::~MSJunctionLogic ( )
virtual

Destructor.

Definition at line 47 of file MSJunctionLogic.cpp.

◆ MSJunctionLogic() [1/3]

MSJunctionLogic::MSJunctionLogic ( int  nLinks)
protected

Constructor.

Definition at line 43 of file MSJunctionLogic.cpp.

◆ MSJunctionLogic() [2/3]

MSJunctionLogic::MSJunctionLogic ( )
private

Default constructor.

◆ MSJunctionLogic() [3/3]

MSJunctionLogic::MSJunctionLogic ( const MSJunctionLogic )
private

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 53 of file MSJunctionLogic.h.

References myDummyFoes, and UNUSED_PARAMETER.

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

◆ getIsCont()

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

Reimplemented in MSBitSetLogic< N >.

Definition at line 57 of file MSJunctionLogic.h.

References UNUSED_PARAMETER.

Referenced by MSRightOfWayJunction::postloadInit().

◆ getLogicSize()

int MSJunctionLogic::getLogicSize ( ) const
inline

Definition at line 63 of file MSJunctionLogic.h.

References myNLinks.

Referenced by MSRightOfWayJunction::postloadInit().

◆ 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 47 of file MSJunctionLogic.h.

References myDummyFoes, and UNUSED_PARAMETER.

Referenced by MSVehicle::isLeader(), MSInternalJunction::postloadInit(), and MSRightOfWayJunction::postloadInit().

◆ hasFoes()

virtual bool MSJunctionLogic::hasFoes ( ) const
inlinevirtual

Reimplemented in MSBitSetLogic< N >.

Definition at line 67 of file MSJunctionLogic.h.

Referenced by MSRightOfWayJunction::postloadInit().

◆ nLinks()

int MSJunctionLogic::nLinks ( )

Returns the logic's number of links.

Definition at line 38 of file MSJunctionLogic.cpp.

References myNLinks.

◆ operator=()

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

Assignment operator.

Field Documentation

◆ myDummyFoes

MSLogicJunction::LinkBits MSJunctionLogic::myDummyFoes
staticprotected

A dummy foe container.

Definition at line 82 of file MSJunctionLogic.h.

Referenced by getFoesFor(), and getResponseFor().

◆ myNLinks

int MSJunctionLogic::myNLinks
protected

The logic's number of links.

Definition at line 79 of file MSJunctionLogic.h.

Referenced by getLogicSize(), and nLinks().


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