Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split dispenser state from dispenser UI controller #161

Merged
merged 8 commits into from
Oct 18, 2023
Merged

Conversation

glopesdev
Copy link
Contributor

@glopesdev glopesdev commented Oct 17, 2023

This update to the dispenser classes splits state management from the controller UI used for delivery, refilling and resetting dispensers. Functionality is now split across two main operators: DispenserController which provides the UI for displaying the current state and generating manual commands, and DispenserAccumulate which integrates a sequence of dispenser event notifications into the current dispenser state estimate.

The dispenser state can be made persistent across runs using a StateRecoverySubject to seed the state of the accumulator.

@glopesdev glopesdev added the feature New planned feature label Oct 17, 2023
@glopesdev glopesdev merged commit 05db9b0 into main Oct 18, 2023
1 check passed
@glopesdev glopesdev deleted the aeon-foraging branch October 18, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New planned feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant