BinaryFiniteStateMachine< T > Class Template Reference

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

+ Inheritance diagram for BinaryFiniteStateMachine< T >:

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from FiniteStateMachine< T, BinaryFiniteStateMachine< T >, status, status::failure >
using state = std::function< status(T *)>
 
- Static Public Attributes inherited from FiniteStateMachine< T, BinaryFiniteStateMachine< T >, status, status::failure >
static const status failure_status_value
 
- Protected Member Functions inherited from FiniteStateMachine< T, BinaryFiniteStateMachine< T >, status, status::failure >
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 status status) const
 
- Protected Attributes inherited from FiniteStateMachine< T, BinaryFiniteStateMachine< T >, status, status::failure >
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, status >, long > m_transitions
 

Detailed Description

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

Definition at line 267 of file FiniteStateMachine.h.

Member Function Documentation

◆ on_success()

BinaryFiniteStateMachine& on_success ( )
inline

Definition at line 277 of file FiniteStateMachine.h.

+ Here is the call graph for this function:

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