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