Eclipse SUMO - Simulation of Urban MObility
MSJunctionLogic.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
17
// kinds of logic-implementations.
18
/****************************************************************************/
19
20
// ===========================================================================
21
// included modules
22
// ===========================================================================
23
#include <
config.h
>
24
25
#include "
MSJunctionLogic.h
"
26
27
28
29
// ===========================================================================
30
// static variable definitions
31
// ===========================================================================
32
MSLogicJunction::LinkBits
MSJunctionLogic::myDummyFoes
;
33
34
35
// ===========================================================================
36
// member method definitions
37
// ===========================================================================
38
int
39
MSJunctionLogic::nLinks
() {
40
return
myNLinks
;
41
}
42
43
44
MSJunctionLogic::MSJunctionLogic
(
int
nLinks
) :
45
myNLinks
(nLinks) {}
46
47
48
MSJunctionLogic::~MSJunctionLogic
() {}
49
50
51
52
/****************************************************************************/
53
config.h
MSJunctionLogic::nLinks
int nLinks()
Returns the logic's number of links.
Definition:
MSJunctionLogic.cpp:39
MSJunctionLogic::myNLinks
int myNLinks
The logic's number of links.
Definition:
MSJunctionLogic.h:80
MSJunctionLogic::MSJunctionLogic
MSJunctionLogic()
Default constructor.
MSJunctionLogic.h
MSJunctionLogic::myDummyFoes
static MSLogicJunction::LinkBits myDummyFoes
A dummy foe container.
Definition:
MSJunctionLogic.h:83
MSJunctionLogic::~MSJunctionLogic
virtual ~MSJunctionLogic()
Destructor.
Definition:
MSJunctionLogic.cpp:48
MSLogicJunction::LinkBits
std::bitset< SUMO_MAX_CONNECTIONS > LinkBits
Container for link response and foes.
Definition:
MSLogicJunction.h:59
src
microsim
MSJunctionLogic.cpp
Generated on Sat Nov 23 2019 19:02:54 for Eclipse SUMO - Simulation of Urban MObility by
1.8.13