Eclipse SUMO - Simulation of Urban MObility
PushButtonLogic Class Reference

#include <MSSOTLPolicy.h>

Inheritance diagram for PushButtonLogic:
[legend]

Protected Member Functions

void init (std::string prefix, const Parameterised *parameterised)
 
bool pushButtonLogic (SUMOTime elapsed, bool pushButtonPressed, const MSPhaseDefinition *stage)
 

Protected Attributes

std::string m_prefix
 
double m_pushButtonScaleFactor
 

Detailed Description

Definition at line 35 of file MSSOTLPolicy.h.

Member Function Documentation

◆ init()

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

Definition at line 33 of file MSSOTLPolicy.cpp.

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

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

Here is the caller graph for this function:

◆ pushButtonLogic()

bool PushButtonLogic::pushButtonLogic ( SUMOTime  elapsed,
bool  pushButtonPressed,
const MSPhaseDefinition stage 
)
protected

Definition at line 39 of file MSSOTLPolicy.cpp.

References MSPhaseDefinition::duration, m_prefix, m_pushButtonScaleFactor, and WRITE_MESSAGE.

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

Here is the caller graph for this function:

Field Documentation

◆ m_prefix

std::string PushButtonLogic::m_prefix
protected

Definition at line 42 of file MSSOTLPolicy.h.

Referenced by init(), and pushButtonLogic().

◆ m_pushButtonScaleFactor

double PushButtonLogic::m_pushButtonScaleFactor
protected

Definition at line 41 of file MSSOTLPolicy.h.

Referenced by init(), and pushButtonLogic().


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