Class BarState

Inheritance Relationships

Base Type

  • public yasmin::State

Class Documentation

class BarState : public yasmin::State

Represents the “Bar” state in the state machine.

This state logs the value from the blackboard and provides a single outcome to transition.

Public Functions

BarState()

Constructs a BarState object.

~BarState()

Destructs the BarState object.

std::string execute(std::shared_ptr<yasmin::Blackboard> blackboard)

Executes the Bar state logic.

This method logs the execution, waits for 3 seconds, retrieves a string from the blackboard, and logs it.

Parameters:

blackboard – Shared pointer to the blackboard for state communication.

Returns:

std::string The outcome of the execution: “outcome3”.