scenario_simulator_v2 C++ API
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
openscenario_interpreter::syntax::SpeedCondition Struct Reference

#include <speed_condition.hpp>

Inheritance diagram for openscenario_interpreter::syntax::SpeedCondition:
Inheritance graph
[legend]
Collaboration diagram for openscenario_interpreter::syntax::SpeedCondition:
Collaboration graph
[legend]

Public Member Functions

 SpeedCondition (const pugi::xml_node &, Scope &, const TriggeringEntities &)
 
auto description () const -> String
 
auto evaluate () -> Object
 

Static Public Member Functions

static auto evaluate (const Entities *, const Entity &) -> Eigen::Vector3d
 
static auto evaluate (const Entities *, const Entity &, const std::optional< DirectionalDimension > &, const Compatibility=Compatibility::legacy) -> double
 

Public Attributes

const Rule rule
 
const Double value
 
const std::optional< DirectionalDimensiondirection
 
const TriggeringEntities triggering_entities
 
std::vector< std::valarray< double > > results
 

Static Public Attributes

static auto compatibility = Compatibility::legacy
 

Constructor & Destructor Documentation

◆ SpeedCondition()

openscenario_interpreter::syntax::SpeedCondition::SpeedCondition ( const pugi::xml_node &  node,
Scope scope,
const TriggeringEntities triggering_entities 
)
explicit

Member Function Documentation

◆ description()

auto openscenario_interpreter::syntax::SpeedCondition::description ( ) const -> String

◆ evaluate() [1/3]

auto openscenario_interpreter::syntax::SpeedCondition::evaluate ( ) -> Object

◆ evaluate() [2/3]

auto openscenario_interpreter::syntax::SpeedCondition::evaluate ( const Entities entities,
const Entity triggering_entity 
) -> Eigen::Vector3d
static

◆ evaluate() [3/3]

auto openscenario_interpreter::syntax::SpeedCondition::evaluate ( const Entities entities,
const Entity triggering_entity,
const std::optional< DirectionalDimension > &  direction,
const Compatibility  compatibility = Compatibility::legacy 
) -> double
static

Member Data Documentation

◆ compatibility

auto openscenario_interpreter::syntax::SpeedCondition::compatibility = Compatibility::legacy
inlinestatic

◆ direction

const std::optional<DirectionalDimension> openscenario_interpreter::syntax::SpeedCondition::direction

◆ results

std::vector<std::valarray<double> > openscenario_interpreter::syntax::SpeedCondition::results

◆ rule

const Rule openscenario_interpreter::syntax::SpeedCondition::rule

◆ triggering_entities

const TriggeringEntities openscenario_interpreter::syntax::SpeedCondition::triggering_entities

◆ value

const Double openscenario_interpreter::syntax::SpeedCondition::value

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