#include <MSJunctionLogic.h>

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. | |
| MSJunctionLogic & | operator= (const MSJunctionLogic &) |
| Assignment operator. | |
| MSJunctionLogic::~MSJunctionLogic | ( | ) | [virtual] |
| 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.
| 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().
| 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().
| 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().
MSLogicJunction::LinkFoes MSJunctionLogic::myDummyFoes [static, protected] |
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().
1.5.6