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

V2 idea for action classes #29

Open
yoelk opened this issue Dec 3, 2015 · 0 comments
Open

V2 idea for action classes #29

yoelk opened this issue Dec 3, 2015 · 0 comments

Comments

@yoelk
Copy link
Owner

yoelk commented Dec 3, 2015

The parent Action class should let sub-classes implement two methods:

  • on_start
  • on_stop

on_start will do the usual command and on_stop will contain code to finish the action, in case the user pressed STOP during its operation. The STOP will trigger an event that the parent Action class will listen to and stop the on_start operation. This can be also communicated with an interrupt instead, which might be a better choice.

@yoelk yoelk changed the title idea for action classes V2 idea for action classes Dec 29, 2015
@yoelk yoelk added this to the core functionality milestone Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant