MSJunctionLogic Class Reference

#include <MSJunctionLogic.h>

Inheritance diagram for MSJunctionLogic:

MSBitSetLogic< N >

Detailed Description

Definition at line 42 of file MSJunctionLogic.h.


Public Member Functions

virtual const
MSLogicJunction::LinkFoes
getFoesFor (unsigned int linkIndex) const throw ()
 Returns the foes of the given link.
virtual const std::bitset< 64 > & getInternalFoesFor (unsigned int linkIndex) const throw ()
virtual bool getIsCont (unsigned int linkIndex) const throw ()
unsigned int getLogicSize () const throw ()
virtual bool isCrossing () const throw ()
unsigned int nInLanes ()
 Returns the logic's number of inLanes.
unsigned int nLinks ()
 Returns the logic's number of links.
virtual void respond (const MSLogicJunction::Request &request, const MSLogicJunction::InnerState &innerState, MSLogicJunction::Respond &respond) const =0
 Modifies the passed respond according to the request.
virtual ~MSJunctionLogic ()
 Destructor.

Protected Member Functions

 MSJunctionLogic (unsigned int nLinks, unsigned int nInLanes)
 Constructor.

Protected Attributes

unsigned int myNInLanes
 The logic's number of inLanes.
unsigned int myNLinks
 The logic's number of links.

Static Protected Attributes

static MSLogicJunction::LinkFoes myDummyFoes
 A dummy foe container.

Private Member Functions

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

Constructor & Destructor Documentation

MSJunctionLogic::~MSJunctionLogic (  )  [virtual]

Destructor.

Definition at line 64 of file MSJunctionLogic.cpp.

00064 {}

MSJunctionLogic::MSJunctionLogic ( unsigned int  nLinks,
unsigned int  nInLanes 
) [protected]

Constructor.

Definition at line 58 of file MSJunctionLogic.cpp.

00059                                                         :
00060         myNLinks(nLinks),
00061         myNInLanes(nInLanes) {}

MSJunctionLogic::MSJunctionLogic (  )  [private]

Default constructor.

MSJunctionLogic::MSJunctionLogic ( const MSJunctionLogic  )  [private]

Copy constructor.


Member Function Documentation

virtual const MSLogicJunction::LinkFoes& MSJunctionLogic::getFoesFor ( unsigned int  linkIndex  )  const throw () [inline, virtual]

Returns the foes of the given link.

Reimplemented in MSBitSetLogic< N >.

Definition at line 59 of file MSJunctionLogic.h.

References myDummyFoes.

Referenced by MSRightOfWayJunction::postloadInit().

00059                                                                                             {
00060         return myDummyFoes;
00061     }

virtual const std::bitset<64>& MSJunctionLogic::getInternalFoesFor ( unsigned int  linkIndex  )  const throw () [inline, virtual]

Reimplemented in MSBitSetLogic< N >.

Definition at line 63 of file MSJunctionLogic.h.

References myDummyFoes.

Referenced by MSRightOfWayJunction::postloadInit().

00063                                                                                           {
00064         return myDummyFoes;
00065     }

virtual bool MSJunctionLogic::getIsCont ( unsigned int  linkIndex  )  const throw () [inline, virtual]

Reimplemented in MSBitSetLogic< N >.

Definition at line 66 of file MSJunctionLogic.h.

Referenced by MSRightOfWayJunction::postloadInit().

00066                                                                  {
00067         return false;
00068     }

unsigned int MSJunctionLogic::getLogicSize (  )  const throw () [inline]

Definition at line 71 of file MSJunctionLogic.h.

References myNLinks.

Referenced by MSRightOfWayJunction::postloadInit().

00071                                               {
00072         return myNLinks;
00073     }

virtual bool MSJunctionLogic::isCrossing (  )  const throw () [inline, virtual]

Reimplemented in MSBitSetLogic< N >.

Definition at line 75 of file MSJunctionLogic.h.

Referenced by MSRightOfWayJunction::postloadInit().

00075                                             {
00076         return false;
00077     }

unsigned int MSJunctionLogic::nInLanes (  ) 

Returns the logic's number of inLanes.

Definition at line 53 of file MSJunctionLogic.cpp.

References myNInLanes.

00053                           {
00054     return myNInLanes;
00055 }

unsigned int MSJunctionLogic::nLinks (  ) 

Returns the logic's number of links.

Definition at line 47 of file MSJunctionLogic.cpp.

References myNLinks.

00047                         {
00048     return myNLinks;
00049 }

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

Assignment operator.

virtual void MSJunctionLogic::respond ( const MSLogicJunction::Request request,
const MSLogicJunction::InnerState innerState,
MSLogicJunction::Respond respond 
) const [pure virtual]

Modifies the passed respond according to the request.

Implemented in MSBitSetLogic< N >.

Referenced by MSRightOfWayJunction::deadlockKiller(), and MSRightOfWayJunction::setAllowed().


Field Documentation

A dummy foe container.

Definition at line 93 of file MSJunctionLogic.h.

Referenced by getFoesFor(), and getInternalFoesFor().

unsigned int MSJunctionLogic::myNInLanes [protected]

The logic's number of inLanes.

Definition at line 90 of file MSJunctionLogic.h.

Referenced by nInLanes().

unsigned int MSJunctionLogic::myNLinks [protected]

The logic's number of links.

Definition at line 87 of file MSJunctionLogic.h.

Referenced by getLogicSize(), nLinks(), and MSBitSetLogic< N >::respond().


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

Generated on Wed May 5 00:06:48 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6