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

Implement countdowns #34

Open
Yoric opened this issue Mar 1, 2016 · 1 comment
Open

Implement countdowns #34

Yoric opened this issue Mar 1, 2016 · 1 comment

Comments

@Yoric
Copy link
Collaborator

Yoric commented Mar 1, 2016

Implementing a countdown as a device looks tricky, as this means:

  • instantiating a new Channel<Getter> for each consumer, to avoid collisions on the same countdown;
  • deciding when to release this channel.

Moreover, the effort looks unnecessary, as we do not have other kinds of devices that support such situation yet.

One way to implement this would be to make countdowns specific to Thinkerbell, e.g. by adding an optional field since to conditions. With this argument, a trigger is executed only if the conditions remain true for the entire duration.

Side-benefit: this may be useful for sensors that are a bit too sensitive.

Blocks

@Yoric
Copy link
Collaborator Author

Yoric commented Mar 6, 2016

Note that, to make this compatible with the simulator, we will need to add a timer to the ExecutionEnv.

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