SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MSJunctionLogic Class Reference

#include <MSJunctionLogic.h>

Inheritance diagram for MSJunctionLogic:
Inheritance graph
Collaboration diagram for MSJunctionLogic:
Collaboration graph

Public Member Functions

virtual const
MSLogicJunction::LinkBits
getFoesFor (unsigned int linkIndex) const
 Returns the foes for the given link. More...
 
virtual bool getIsCont (unsigned int linkIndex) const
 
unsigned int getLogicSize () const
 
virtual const
MSLogicJunction::LinkBits
getResponseFor (unsigned int linkIndex) const
 Returns the response for the given link. More...
 
virtual bool hasFoes () const
 
unsigned int nLinks ()
 Returns the logic's number of links. More...
 
virtual ~MSJunctionLogic ()
 Destructor. More...
 

Protected Member Functions

 MSJunctionLogic (unsigned int nLinks)
 Constructor. More...
 

Protected Attributes

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

Constructor & Destructor Documentation

MSJunctionLogic::~MSJunctionLogic ( )
virtual

Destructor.

Definition at line 59 of file MSJunctionLogic.cpp.

MSJunctionLogic::MSJunctionLogic ( unsigned int  nLinks)
protected

Constructor.

Definition at line 55 of file MSJunctionLogic.cpp.

MSJunctionLogic::MSJunctionLogic ( )
private

Default constructor.

MSJunctionLogic::MSJunctionLogic ( const MSJunctionLogic )
private

Copy constructor.

Member Function Documentation

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

Returns the foes for the given link.

Reimplemented in MSBitSetLogic< N >.

Definition at line 61 of file MSJunctionLogic.h.

References myDummyFoes, and UNUSED_PARAMETER.

Referenced by MSRightOfWayJunction::postloadInit().

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

Reimplemented in MSBitSetLogic< N >.

Definition at line 65 of file MSJunctionLogic.h.

References UNUSED_PARAMETER.

Referenced by MSRightOfWayJunction::postloadInit().

unsigned int MSJunctionLogic::getLogicSize ( ) const
inline

Definition at line 71 of file MSJunctionLogic.h.

References myNLinks.

Referenced by MSRightOfWayJunction::postloadInit().

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

Returns the response for the given link.

Reimplemented in MSBitSetLogic< N >.

Definition at line 55 of file MSJunctionLogic.h.

References myDummyFoes, and UNUSED_PARAMETER.

Referenced by MSRightOfWayJunction::postloadInit().

virtual bool MSJunctionLogic::hasFoes ( ) const
inlinevirtual

Reimplemented in MSBitSetLogic< N >.

Definition at line 75 of file MSJunctionLogic.h.

Referenced by MSRightOfWayJunction::postloadInit().

unsigned int MSJunctionLogic::nLinks ( )

Returns the logic's number of links.

Definition at line 50 of file MSJunctionLogic.cpp.

References myNLinks.

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

Assignment operator.

Field Documentation

MSLogicJunction::LinkBits MSJunctionLogic::myDummyFoes
staticprotected

A dummy foe container.

Definition at line 90 of file MSJunctionLogic.h.

Referenced by getFoesFor(), and getResponseFor().

unsigned int MSJunctionLogic::myNLinks
protected

The logic's number of links.

Definition at line 87 of file MSJunctionLogic.h.

Referenced by getLogicSize(), and nLinks().


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