SUMO - Simulation of Urban MObility
MSJunctionLogic.cpp
Go to the documentation of this file.
1 /****************************************************************************/
9 // kinds of logic-implementations.
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12 // Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include "MSJunctionLogic.h"
33 
34 #ifdef CHECK_MEMORY_LEAKS
35 #include <foreign/nvwa/debug_new.h>
36 #endif // CHECK_MEMORY_LEAKS
37 
38 
39 
40 // ===========================================================================
41 // static variable definitions
42 // ===========================================================================
44 
45 
46 // ===========================================================================
47 // member method definitions
48 // ===========================================================================
49 unsigned int
51  return myNLinks;
52 }
53 
54 
55 MSJunctionLogic::MSJunctionLogic(unsigned int nLinks) :
56  myNLinks(nLinks) {}
57 
58 
60 
61 
62 
63 /****************************************************************************/
64 
unsigned int nLinks()
Returns the logic's number of links.
unsigned int myNLinks
The logic's number of links.
static MSLogicJunction::LinkFoes myDummyFoes
A dummy foe container.
MSJunctionLogic()
Default constructor.
std::bitset< 64 > LinkFoes
Container for link foes.
virtual ~MSJunctionLogic()
Destructor.