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

#include <event.hpp>

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

Public Member Functions

 Event (const pugi::xml_node &, Scope &, Maneuver &)
 
auto start () -> void override
 
auto evaluate () -> Object override
 
- Public Member Functions inherited from openscenario_interpreter::syntax::StoryboardElement
 StoryboardElement (const Trigger &stop_trigger)
 
 StoryboardElement (const Trigger &start_trigger, const Trigger &stop_trigger)
 
 StoryboardElement (const std::size_t maximum_execution_count, const Trigger &start_trigger)
 
 StoryboardElement (const std::size_t maximum_execution_count=1)
 
auto state () const -> const auto &
 
template<StoryboardElementState::value_type State>
auto is () const
 
auto override ()
 
void addTransitionCallback (StoryboardElementState::value_type transition, std::function< void(const StoryboardElement &)> callback)
 
auto transitionTo (const Object &state) -> bool
 

Public Attributes

const Priority priority
 
const std::string name
 

Friends

auto operator<< (boost::json::object &, const Event &) -> boost::json::object &
 

Additional Inherited Members

- Protected Member Functions inherited from openscenario_interpreter::syntax::StoryboardElement
auto rename (const std::string &name) const
 
auto unique (const std::string &name)
 
template<typename U , typename Node , typename... Ts>
auto readStoryboardElement (const Node &node, Scope &inner_scope, Ts &&... xs)
 
template<typename U , typename Node , typename... Ts>
auto readCatalogedStoryboardElement (const Node &node, Scope &inner_scope, Ts &&... xs)
 
- Protected Attributes inherited from openscenario_interpreter::syntax::StoryboardElement
Trigger stop_trigger
 
const std::size_t maximum_execution_count = 1
 
std::size_t current_execution_count = 0
 
Object current_state = standby_state
 
Elements elements
 
Trigger start_trigger {{ConditionGroup()}}
 
std::unordered_set< std::string > names
 

Constructor & Destructor Documentation

◆ Event()

openscenario_interpreter::syntax::Event::Event ( const pugi::xml_node &  ,
Scope ,
Maneuver  
)
explicit

Member Function Documentation

◆ evaluate()

auto openscenario_interpreter::syntax::Event::evaluate ( ) -> Object
overridevirtual

◆ start()

auto openscenario_interpreter::syntax::Event::start ( ) -> void
overridevirtual

Friends And Related Function Documentation

◆ operator<<

auto operator<< ( boost::json::object &  json,
const Event datum 
) -> boost::json::object &
friend

Member Data Documentation

◆ name

const std::string openscenario_interpreter::Scope::name

◆ priority

const Priority openscenario_interpreter::syntax::Event::priority

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