|
Python YASMIN (Yet Another State MachINe)
|


Public Member Functions | |
| None | __init__ (self) |
| str | execute (self, Blackboard blackboard) |
Public Attributes | |
| int | counter = 0 |
Represents the Foo state in the state machine.
Attributes:
counter (int): Counter to track the number of executions of this state.
| None yasmin_demos.concurrence_demo.FooState.__init__ | ( | self | ) |
Initializes the FooState instance, setting up the outcomes.
Outcomes:
outcome1: Indicates the state should continue.
outcome2: Indicates the state should cotninue.
outcome3: Indicates the state should finish execution and return.
| str yasmin_demos.concurrence_demo.FooState.execute | ( | self, | |
| Blackboard | blackboard ) |
Executes the logic for the Foo state.
Args:
blackboard (Blackboard): The shared data structure for states.
Returns:
str: The outcome of the execution.
Raises:
Exception: May raise exceptions related to state execution.
| int yasmin_demos.concurrence_demo.FooState.counter = 0 |