scenario_simulator_v2 C++ API
Public Types | Public Member Functions | Public Attributes | List of all members
traffic_simulator::speed_change::RelativeTargetSpeed Struct Reference

#include <speed_change.hpp>

Public Types

enum class  Type { DELTA , FACTOR }
 

Public Member Functions

 RelativeTargetSpeed (const std::string &reference_entity_name, const RelativeTargetSpeed::Type type, const double value)
 
double getAbsoluteValue (const CanonicalizedEntityStatus &status, const std::unordered_map< std::string, CanonicalizedEntityStatus > &other_status) const
 

Public Attributes

std::string reference_entity_name
 
Type type
 
double value
 

Member Enumeration Documentation

◆ Type

Enumerator
DELTA 
FACTOR 

Constructor & Destructor Documentation

◆ RelativeTargetSpeed()

traffic_simulator::speed_change::RelativeTargetSpeed::RelativeTargetSpeed ( const std::string &  reference_entity_name,
const RelativeTargetSpeed::Type  type,
const double  value 
)
inlineexplicit

Member Function Documentation

◆ getAbsoluteValue()

double traffic_simulator::speed_change::RelativeTargetSpeed::getAbsoluteValue ( const CanonicalizedEntityStatus status,
const std::unordered_map< std::string, CanonicalizedEntityStatus > &  other_status 
) const

Member Data Documentation

◆ reference_entity_name

std::string traffic_simulator::speed_change::RelativeTargetSpeed::reference_entity_name

◆ type

Type traffic_simulator::speed_change::RelativeTargetSpeed::type

◆ value

double traffic_simulator::speed_change::RelativeTargetSpeed::value

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