brownsys / pane

Participatory Networking
http://pane.cs.brown.edu
Other
5 stars 4 forks source link

Create a Pour command #36

Open adferguson opened 12 years ago

adferguson commented 12 years ago

The Pour command allows us to migrate tokens from a parent token bucket to a child token bucket, en mass. This is to permit users to immediately use a new token bucket which might have a very slow fill rate.

We currently have a pour function stubbed out in TokenGraph.hs, but it does not pour from a bucket, and it does not respect the capacity of the receiving bucket.

Test cases are also required.