Eclipse SUMO - Simulation of Urban MObility
|
#include <MSBitSetLogic.h>
Public Types | |
typedef std::vector< std::bitset< N > > | Foes |
Container holding the information which internal lanes prohibt which links Build the same way as Logic. | |
typedef std::vector< std::bitset< N > > | Logic |
Container that holds the right of way bitsets. Each link has its own bitset. The bits in the bitsets correspond to the links. To create a bitset for a particular link, set the bits to true that correspond to links that have the right of way. All others set to false, including the link's "own" link-bit. | |
Public Member Functions | |
const MSLogicJunction::LinkBits & | getFoesFor (int linkIndex) const |
Returns the foes for the given link. | |
bool | getIsCont (int linkIndex) const |
int | getLogicSize () const |
const MSLogicJunction::LinkBits & | getResponseFor (int linkIndex) const |
Returns the response for the given link. | |
bool | hasFoes () const |
MSBitSetLogic (int nLinks, const Logic &logic, const Foes &foes, std::bitset< SUMO_MAX_CONNECTIONS > conts) | |
Use this constructor only. | |
Protected Attributes | |
int | myNLinks |
The logic's number of links. | |
Static Protected Attributes | |
static MSLogicJunction::LinkBits | myDummyFoes |
A dummy foe container. | |
Private Member Functions | |
MSBitSetLogic (const MSBitSetLogic &)=delete | |
Invalidated copy constructor. | |
MSBitSetLogic & | operator= (const MSBitSetLogic &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
const std::bitset< SUMO_MAX_CONNECTIONS > | myConts |
const Foes | myInternalLinksFoes |
internal lanes logic | |
const Logic | myLogic |
junctions logic based on std::bitset | |
N is sum of the number of links of the junction's inLanes.
Definition at line 41 of file MSBitSetLogic.h.
typedef std::vector< std::bitset< N > > MSBitSetLogic< N >::Foes |
Container holding the information which internal lanes prohibt which links Build the same way as Logic.
Definition at line 53 of file MSBitSetLogic.h.
typedef std::vector< std::bitset< N > > MSBitSetLogic< N >::Logic |
Container that holds the right of way bitsets. Each link has its own bitset. The bits in the bitsets correspond to the links. To create a bitset for a particular link, set the bits to true that correspond to links that have the right of way. All others set to false, including the link's "own" link-bit.
Definition at line 49 of file MSBitSetLogic.h.
|
inline |
Use this constructor only.
Definition at line 58 of file MSBitSetLogic.h.
|
privatedelete |
Invalidated copy constructor.
|
inlinevirtual |
Returns the foes for the given link.
Reimplemented from MSJunctionLogic.
Definition at line 69 of file MSBitSetLogic.h.
References MSBitSetLogic< N >::myInternalLinksFoes.
|
inlinevirtual |
Reimplemented from MSJunctionLogic.
Definition at line 73 of file MSBitSetLogic.h.
References MSBitSetLogic< N >::myConts.
|
inlineinherited |
Definition at line 58 of file MSJunctionLogic.h.
References MSJunctionLogic::myNLinks.
Referenced by MSTrafficLightLogic::init(), and MSRightOfWayJunction::postloadInit().
|
inlinevirtual |
Returns the response for the given link.
Reimplemented from MSJunctionLogic.
Definition at line 64 of file MSBitSetLogic.h.
References MSBitSetLogic< N >::myLogic.
|
inlinevirtual |
Reimplemented from MSJunctionLogic.
Definition at line 77 of file MSBitSetLogic.h.
References MSBitSetLogic< N >::myLogic.
|
privatedelete |
Invalidated assignment operator.
|
private |
Definition at line 93 of file MSBitSetLogic.h.
Referenced by MSBitSetLogic< N >::getIsCont().
|
staticprotectedinherited |
A dummy foe container.
Definition at line 74 of file MSJunctionLogic.h.
Referenced by MSJunctionLogic::getFoesFor(), and MSJunctionLogic::getResponseFor().
|
private |
internal lanes logic
Definition at line 91 of file MSBitSetLogic.h.
Referenced by MSBitSetLogic< N >::getFoesFor().
|
private |
junctions logic based on std::bitset
Definition at line 88 of file MSBitSetLogic.h.
Referenced by MSBitSetLogic< N >::getResponseFor(), and MSBitSetLogic< N >::hasFoes().
|
protectedinherited |
The logic's number of links.
Definition at line 71 of file MSJunctionLogic.h.
Referenced by MSJunctionLogic::getLogicSize().