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

#include <stochastic.hpp>

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

Public Member Functions

 Stochastic (const pugi::xml_node &, Scope &scope)
 
- Public Member Functions inherited from openscenario_interpreter::Pointer< Expression >
decltype(auto) rebind (Ts &&... xs)
 
decltype(auto) binding () const
 
auto type () const -> const std::type_info &
 
auto is () const -> bool
 
auto is_also () const
 
auto as () const -> U &
 
decltype(auto) evaluate (Ts &&... xs) const
 
decltype(auto) accomplished (Ts &&... xs) const
 
decltype(auto) description (Ts &&... xs) const
 

Public Attributes

const UnsignedInt number_of_test_runs
 
const Double random_seed
 
const StochasticDistribution stochastic_distribution
 

Additional Inherited Members

- Static Public Member Functions inherited from openscenario_interpreter::Pointer< Expression >
static Pointer bind (Ts &&... xs)
 

Constructor & Destructor Documentation

◆ Stochastic()

openscenario_interpreter::syntax::Stochastic::Stochastic ( const pugi::xml_node &  node,
Scope scope 
)
explicit

Note: Stochastic.randomSeed is initialized with 0, if it is not specified in scenario. The behavior related to this implementation is not specified in the OpenSCENARIO standard, so it may change in the future.

Member Data Documentation

◆ number_of_test_runs

const UnsignedInt openscenario_interpreter::syntax::Stochastic::number_of_test_runs

◆ random_seed

const Double openscenario_interpreter::syntax::Stochastic::random_seed

◆ stochastic_distribution

const StochasticDistribution openscenario_interpreter::syntax::Stochastic::stochastic_distribution

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