|
C++ YASMIN (Yet Another State MachINe)
|
Represents the "Bar" state in the state machine. More...


Public Member Functions | |
| BarState () | |
| Represents the "Bar" state in the state machine. | |
| std::string | execute (std::shared_ptr< blackboard::Blackboard > blackboard) override |
| Executes the Bar state logic. | |
| BarState () | |
| std::string | execute (std::shared_ptr< blackboard::Blackboard > blackboard) override |
| Executes the state's specific logic. | |
| BarState () | |
| std::string | execute (std::shared_ptr< blackboard::Blackboard > blackboard) override |
| Executes the state's specific logic. | |
| BarState () | |
| Constructs a BarState object. | |
| std::string | execute (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard) override |
| Executes the Bar state logic. | |
| BarState () | |
| Constructs a BarState object. | |
| std::string | execute (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard) override |
| Executes the Bar state logic. | |
| BarState () | |
| Constructs a BarState object. | |
| std::string | execute (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard) override |
| Executes the Bar state logic. | |
| BarState () | |
| Constructs a BarState object. | |
| std::string | execute (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard) override |
| Executes the Bar state logic. | |
Public Member Functions inherited from yasmin::State | |
| State (const std::set< std::string > &outcomes) | |
| Constructs a State with a set of possible outcomes. | |
| StateStatus | get_status () const |
| Gets the current status of the state. | |
| bool | is_idle () const |
| Checks if the state is idle. | |
| bool | is_running () const |
| Checks if the state is currently running. | |
| bool | is_canceled () const |
| Checks if the state has been canceled. | |
| bool | is_completed () const |
| Checks if the state has completed execution. | |
| std::string | operator() (std::shared_ptr< blackboard::Blackboard > blackboard) |
| Executes the state and returns the outcome. | |
| virtual void | cancel_state () |
| Cancels the current state execution. | |
| std::set< std::string > const & | get_outcomes () |
| Gets the set of possible outcomes for this state. | |
| virtual std::string | to_string () |
| Converts the state to a string representation. | |
Additional Inherited Members | |
Protected Attributes inherited from yasmin::State | |
| std::set< std::string > | outcomes |
| The possible outcomes of this state. | |
Represents the "Bar" state in the state machine.
This state logs the value from the blackboard and provides a single outcome to transition.
|
inline |
Represents the "Bar" state in the state machine.
This state logs the value from the blackboard and provides a single outcome to transition.
|
inline |
|
inline |
|
inline |
Constructs a BarState object.
|
inline |
Constructs a BarState object.
|
inline |
Constructs a BarState object.
|
inline |
Constructs a BarState object.
|
inlineoverridevirtual |
Executes the Bar state logic.
This method logs the execution, waits for 3 seconds, retrieves a string from the blackboard, and logs it.
| blackboard | Shared pointer to the blackboard for state communication. |
Reimplemented from yasmin::State.
|
inlineoverridevirtual |
Executes the state's specific logic.
| blackboard | A shared pointer to the Blackboard to use during execution. |
This method is intended to be overridden by derived classes to provide specific execution logic.
Reimplemented from yasmin::State.
|
inlineoverridevirtual |
Executes the state's specific logic.
| blackboard | A shared pointer to the Blackboard to use during execution. |
This method is intended to be overridden by derived classes to provide specific execution logic.
Reimplemented from yasmin::State.
|
inlineoverridevirtual |
Executes the Bar state logic.
This method logs the execution, waits for 3 seconds, retrieves a string from the blackboard, and logs it.
| blackboard | Shared pointer to the blackboard for state communication. |
Reimplemented from yasmin::State.
|
inlineoverridevirtual |
Executes the Bar state logic.
This method logs the execution, waits for 3 seconds, retrieves a string from the blackboard, and logs it.
| blackboard | Shared pointer to the blackboard for state communication. |
Reimplemented from yasmin::State.
|
inlineoverridevirtual |
Executes the Bar state logic.
Executes the logic for the Bar state.
| blackboard | Shared pointer to the blackboard for state communication. |
Reimplemented from yasmin::State.
|
inlineoverridevirtual |
Executes the Bar state logic.
This method logs the execution, waits for 3 seconds, retrieves a string from the blackboard, and logs it.
| blackboard | Shared pointer to the blackboard for state communication. |
Reimplemented from yasmin::State.