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

#include <relative_speed_condition.hpp>

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

Public Member Functions

 RelativeSpeedCondition (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 &, const Entity &) -> Eigen::Vector3d
 
static auto evaluate (const Entities *, const Entity &, const Entity &, const std::optional< DirectionalDimension > &) -> double
 

Public Attributes

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

Constructor & Destructor Documentation

◆ RelativeSpeedCondition()

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

Member Function Documentation

◆ description()

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

◆ evaluate() [1/3]

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

◆ evaluate() [2/3]

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

◆ evaluate() [3/3]

auto openscenario_interpreter::syntax::RelativeSpeedCondition::evaluate ( const Entities entities,
const Entity triggering_entity,
const Entity entity_ref,
const std::optional< DirectionalDimension > &  direction 
) -> double
static

Member Data Documentation

◆ direction

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

◆ entity_ref

const Entity openscenario_interpreter::syntax::RelativeSpeedCondition::entity_ref

◆ evaluations

std::vector<std::valarray<double> > openscenario_interpreter::syntax::RelativeSpeedCondition::evaluations

◆ rule

const Rule openscenario_interpreter::syntax::RelativeSpeedCondition::rule

◆ triggering_entities

const TriggeringEntities openscenario_interpreter::syntax::RelativeSpeedCondition::triggering_entities

◆ value

const Double openscenario_interpreter::syntax::RelativeSpeedCondition::value

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