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

#include <init_actions.hpp>

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

Public Member Functions

 InitActions (const pugi::xml_node &, Scope &)
 
auto evaluate () -> Object override
 
auto accomplished () const -> bool override
 
auto endsImmediately () const -> bool
 
auto run () -> void override
 
auto runInstantaneousActions () -> void
 
auto runNonInstantaneousActions () -> void
 
auto start () -> void override
 
auto startInstantaneousActions () -> void
 
auto startNonInstantaneousActions () -> void
 
- 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

Elements global_actions
 
Elements user_defined_actions
 
Elements privates
 

Friends

auto operator<< (nlohmann::json &, const InitActions &) -> nlohmann::json &
 

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

◆ InitActions()

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

Member Function Documentation

◆ accomplished()

auto openscenario_interpreter::syntax::InitActions::accomplished ( ) const -> bool
overridevirtual

◆ endsImmediately()

auto openscenario_interpreter::syntax::InitActions::endsImmediately ( ) const -> bool

◆ evaluate()

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

◆ run()

auto openscenario_interpreter::syntax::InitActions::run ( ) -> void
overridevirtual

◆ runInstantaneousActions()

auto openscenario_interpreter::syntax::InitActions::runInstantaneousActions ( ) -> void

◆ runNonInstantaneousActions()

auto openscenario_interpreter::syntax::InitActions::runNonInstantaneousActions ( ) -> void

◆ start()

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

◆ startInstantaneousActions()

auto openscenario_interpreter::syntax::InitActions::startInstantaneousActions ( ) -> void

◆ startNonInstantaneousActions()

auto openscenario_interpreter::syntax::InitActions::startNonInstantaneousActions ( ) -> void

Friends And Related Function Documentation

◆ operator<<

auto operator<< ( nlohmann::json &  json,
const InitActions init_actions 
) -> nlohmann::json &
friend

Member Data Documentation

◆ global_actions

Elements openscenario_interpreter::syntax::InitActions::global_actions

◆ privates

Elements openscenario_interpreter::syntax::InitActions::privates

◆ user_defined_actions

Elements openscenario_interpreter::syntax::InitActions::user_defined_actions

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