BoolFiniteStateMachine< T > Class Template Reference

#include <ArmarXCore/core/util/FiniteStateMachine.h>

+ Inheritance diagram for BoolFiniteStateMachine< T >:

Public Member Functions

BoolFiniteStateMachineon_success ()
 
- Public Member Functions inherited from FiniteStateMachine< T, BoolFiniteStateMachine< T >, bool, false >
 FiniteStateMachine (std::shared_ptr< T > context)
 
 FiniteStateMachine (T &context)
 
 FiniteStateMachine (T *context)
 
BoolFiniteStateMachine< T > & from (state from_state)
 
BoolFiniteStateMachine< T > & on (bool status)
 
BoolFiniteStateMachine< T > & on_any_failure ()
 
BoolFiniteStateMachine< T > & on_failure ()
 
virtual bool run () const
 
BoolFiniteStateMachine< T > & start_from (state start_state)
 
BoolFiniteStateMachine< T > & to (state to_state)
 

Additional Inherited Members

- Public Types inherited from FiniteStateMachine< T, BoolFiniteStateMachine< T >, bool, false >
using state = std::function< bool(T *)>
 
- Static Public Attributes inherited from FiniteStateMachine< T, BoolFiniteStateMachine< T >, bool, false >
static const bool failure_status_value
 
- Protected Member Functions inherited from FiniteStateMachine< T, BoolFiniteStateMachine< T >, bool, false >
long get_id (const state &fn) const
 
long get_id (std::optional< state > fn) const
 
std::optional< stateget_next_state (const long state_id, const bool status) const
 
- Protected Attributes inherited from FiniteStateMachine< T, BoolFiniteStateMachine< T >, bool, false >
Tm_context
 
std::optional< statem_default_fail_state
 
std::optional< statem_init_from_state
 
std::optional< statem_init_to_state
 
std::optional< statem_start_state
 
std::map< long, std::optional< state > > m_states
 
std::map< std::tuple< long, bool >, long > m_transitions
 

Detailed Description

template<typename T>
class armarx::BoolFiniteStateMachine< T >

Definition at line 241 of file FiniteStateMachine.h.

Member Function Documentation

◆ on_success()

BoolFiniteStateMachine& on_success ( )
inline

Definition at line 250 of file FiniteStateMachine.h.

+ Here is the call graph for this function:

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