Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
SigmoidLogic Class Reference

#include <MSSOTLPolicy.h>

Inheritance diagram for SigmoidLogic:
[legend]

Protected Member Functions

void init (std::string prefix, const Parameterised *parameterised)
 
bool sigmoidLogic (SUMOTime elapsed, const MSPhaseDefinition *stage, int vehicleCount)
 

Protected Attributes

double m_k
 
std::string m_prefix
 
bool m_useSigmoid
 

Detailed Description

Definition at line 45 of file MSSOTLPolicy.h.

Member Function Documentation

◆ init()

void SigmoidLogic::init ( std::string  prefix,
const Parameterised parameterised 
)
protected

Definition at line 53 of file MSSOTLPolicy.cpp.

References Parameterised::getParameter(), m_k, m_prefix, m_useSigmoid, StringUtils::toDouble(), and WRITE_MESSAGE.

Referenced by MSSOTLPhasePolicy::init(), and MSSOTLPlatoonPolicy::init().

Here is the caller graph for this function:

◆ sigmoidLogic()

bool SigmoidLogic::sigmoidLogic ( SUMOTime  elapsed,
const MSPhaseDefinition stage,
int  vehicleCount 
)
protected

Definition at line 69 of file MSSOTLPolicy.cpp.

References MSPhaseDefinition::duration, m_k, m_prefix, m_useSigmoid, RandHelper::rand(), STEPS2TIME, and WRITE_MESSAGE.

Referenced by MSSOTLPhasePolicy::canRelease(), and MSSOTLPlatoonPolicy::canRelease().

Here is the caller graph for this function:

Field Documentation

◆ m_k

double SigmoidLogic::m_k
protected

Definition at line 52 of file MSSOTLPolicy.h.

Referenced by init(), and sigmoidLogic().

◆ m_prefix

std::string SigmoidLogic::m_prefix
protected

Definition at line 53 of file MSSOTLPolicy.h.

Referenced by init(), and sigmoidLogic().

◆ m_useSigmoid

bool SigmoidLogic::m_useSigmoid
protected

Definition at line 51 of file MSSOTLPolicy.h.

Referenced by init(), and sigmoidLogic().


The documentation for this class was generated from the following files: