Class swarmauri_core.state.IState.IState
swarmauri_core.state.IState.IState
Bases: ABC
read
abstractmethod
read()
Reads and returns the current state as a dictionary.
Source code in swarmauri_core/state/IState.py
6 7 8 9 10 |
|
write
abstractmethod
write(data)
Replaces the current state with the given data.
Source code in swarmauri_core/state/IState.py
12 13 14 15 16 |
|
update
abstractmethod
update(data)
Updates the state with the given data.
Source code in swarmauri_core/state/IState.py
18 19 20 21 22 |
|
reset
abstractmethod
reset()
Resets the state to its initial state.
Source code in swarmauri_core/state/IState.py
24 25 26 27 28 |
|