Eclipse SUMO - Simulation of Urban MObility
MSSOTLPhasePolicy.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2010-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
/****************************************************************************/
16
// The class for SOTL Phase logics
17
/****************************************************************************/
18
#ifndef MSTLPhasePolicy_h
19
#define MSTLPhasePolicy_h
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include "
MSSOTLPolicy.h
"
27
#define SWARM_DEBUG
28
#include <
utils/common/SwarmDebug.h
>
34
class
MSSOTLPhasePolicy
:
public
MSSOTLPolicy
,
public
PushButtonLogic
,
public
SigmoidLogic
{
35
36
public
:
37
MSSOTLPhasePolicy
(
const
std::map<std::string, std::string>& parameters);
38
MSSOTLPhasePolicy
(
MSSOTLPolicyDesirability
* desirabilityAlgorithm);
39
40
MSSOTLPhasePolicy
(
MSSOTLPolicyDesirability
* desirabilityAlgorithm,
41
const
std::map<std::string, std::string>& parameters);
42
43
bool
canRelease
(
SUMOTime
elapsed,
bool
thresholdPassed,
bool
pushButtonPressed,
44
const
MSPhaseDefinition
* stage,
int
vehicleCount);
45
protected
:
46
void
init
();
47
bool
m_useVehicleTypesWeights
;
48
};
49
50
#endif
51
/****************************************************************************/
MSSOTLPolicy
Class for a low-level policy.
Definition:
MSSOTLPolicy.h:65
SUMOTime
long long int SUMOTime
Definition:
SUMOTime.h:35
MSSOTLPhasePolicy::MSSOTLPhasePolicy
MSSOTLPhasePolicy(const std::map< std::string, std::string > ¶meters)
Definition:
MSSOTLPhasePolicy.cpp:24
MSSOTLPolicy.h
SigmoidLogic
Definition:
MSSOTLPolicy.h:49
MSSOTLPhasePolicy::init
void init()
Definition:
MSSOTLPhasePolicy.cpp:64
MSSOTLPhasePolicy
Class for low-level phase policy.
Definition:
MSSOTLPhasePolicy.h:34
PushButtonLogic
Definition:
MSSOTLPolicy.h:39
config.h
SwarmDebug.h
MSPhaseDefinition
The definition of a single phase of a tls logic.
Definition:
MSPhaseDefinition.h:52
MSSOTLPhasePolicy::canRelease
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
Definition:
MSSOTLPhasePolicy.cpp:42
MSSOTLPolicyDesirability
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Definition:
MSSOTLPolicyDesirability.h:36
MSSOTLPhasePolicy::m_useVehicleTypesWeights
bool m_useVehicleTypesWeights
Definition:
MSSOTLPhasePolicy.h:47
src
microsim
traffic_lights
MSSOTLPhasePolicy.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16