The MAUVE Toolchain
|
Defines a Periodic State Machine. More...
#include <PeriodicStateMachine.hpp>
Public Attributes | |
runtime::Property< runtime::time_ns_t > & | period |
Property to set the PSM period. More... | |
Protected Member Functions | |
virtual bool | configure_hook () override |
Configure the PSM. More... | |
![]() | |
CORE & | core () const |
ExecState< CORE > & | mk_execution (std::string const &name, Update_t fun) |
SynchroState< CORE > & | mk_synchronization (std::string const &name, time_ns_t clock) |
void | mk_transition (ExecState< CORE > &state, Guard_t guard, State< CORE > &next) |
void | set_initial (State< CORE > &state) |
void | set_next (State< CORE > &state, State< CORE > &next) |
SHELL & | shell () const |
![]() | |
template<typename T > | |
Property< T > & | mk_property (std::string const &name, T init_value) |
Create a new property. More... | |
![]() | |
virtual void | cleanup_hook () |
Hook function called when cleaning the shell. More... | |
Additional Inherited Members | |
![]() | |
using | Guard_t = typename ExecState< CORE >::Guard_t |
using | Update_t = typename ExecState< CORE >::Update_t |
![]() | |
FiniteStateMachine (FiniteStateMachine const &other)=delete | |
bool | check_reachable () const |
void | cleanup () overridefinal |
Cleanup the object. | |
bool | configure () overridefinal |
Configure the object. | |
std::string | core_type_name () const override |
Get the type of the FSM core. More... | |
AbstractState * | get_state (std::string const &name) const override |
Get a state of the FSM by name. More... | |
AbstractState * | get_state (int index) const override |
Get a state of the FSM by state index. More... | |
int | get_state_index (const AbstractState *state) const override |
Get a index of state in the FSM. More... | |
std::size_t | get_states_size () const override |
bool | is_configured () const overridefinal |
Get the configuration status of the configurable object. More... | |
AbstractLogger & | logger () const override |
Get the logger. | |
FiniteStateMachine< SHELL, CORE > & | operator= (FiniteStateMachine< SHELL, CORE > const &other)=delete |
std::string | shell_type_name () const override |
Get the type of the FSM shell. More... | |
![]() | |
AbstractFiniteStateMachine () | |
Default constructor. More... | |
virtual | ~AbstractFiniteStateMachine () |
Default destructor. More... | |
std::string | type_name () const |
Get the type of this FSM. More... | |
![]() | |
const std::vector< AbstractProperty * > | get_properties () const |
Get the properties of the shell. More... | |
std::size_t | get_properties_size () const |
AbstractProperty * | get_property (std::string const &name) const |
AbstractProperty * | get_property (int index) const |
Defines a Periodic State Machine.
SHELL | Shell type |
CORE | Core type |
|
overrideprotectedvirtual |
Configure the PSM.
Set the sync_state clock according to period.
Reimplemented from mauve::runtime::WithHook.
runtime::Property<runtime::time_ns_t>& mauve::base::PeriodicStateMachine< SHELL, CORE >::period |
Property to set the PSM period.