yasmin_demos.foo_state module
- class yasmin_demos.foo_state.FooState(*args: Any, **kwargs: Any)
Bases:
State
Represents the Foo state in the state machine.
- Attributes:
counter (int): Counter to track the number of executions of this state.
- execute(blackboard: yasmin.Blackboard) str
Executes the logic for the Foo state.
- Args:
blackboard (Blackboard): The shared data structure for states.
- Returns:
str: The outcome of the execution, which can be “outcome1” or “outcome2”.
- Raises:
Exception: May raise exceptions related to state execution.