Add bandwidth simulator
Termination condition for billing month calculation
Rework data snapshots. Add one more to user state
Start the real deal
Pruning stuff from user state
Make UID generators for simulations more flexible
Better implement one query on resource event store
Better names for mutable date calc methods
Enriching the test case
Augment and use resources map functionality
Add more simulation methods and enrich the test case
Cannot load the policy file from the test env though...
Add a simulations package
This will be handy when creating test cases for the new billing code.
Merge branch 'master' into 1852_billing_period_calc
Conflicts: src/main/scala/gr/grnet/aquarium/user/UserDataSnapshot.scala src/main/scala/gr/grnet/aquarium/user/UserStateComputations.scala src/main/scala/gr/grnet/aquarium/user/actor/UserActor.scala
Fix failing tests after merge
Some new billing stuff.
Also using doubles everywhere instead of floats
Gather billing computations in one file
Simplify resources snapshot to make our lives easier with the lift-json library.
After a few failed attempts with lift-json, I sacrifice the Map for a List.
Simple test to try serialization of the complex user state class
Store the last update timestamp per resource and instance id
This code has some errors with JSON serialization