All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.dystat.ResourceCounter

java.lang.Object
   |
   +----benno.dystat.ResourceCounter

public class ResourceCounter
extends Object
implements Serializable
Maybe will need to implement optional normalisation strategies to do, for example, counts per calendar month - maybe Calendrical Calculations has some hints, or maybe just parse the date.


Variable Index

 o NOBUCKET
This is an indicator constant to symbolise that the requested bucket has expired.

Method Index

 o addBucket(Bucket)
 o dump()
 o getBucket(Date)
 o normalise(Date)
This function normalises a date into the appropriate canoncical date, for looking up the relevant bucket.
 o normalise(Date, boolean)
 o present(StatLine)
 o store(StorageManager)

Variables

 o NOBUCKET
 public static final Bucket NOBUCKET
This is an indicator constant to symbolise that the requested bucket has expired.

Methods

 o present
 public void present(StatLine sl)
 o getBucket
 public Bucket getBucket(Date d)
 o addBucket
 public void addBucket(Bucket b)
 o normalise
 public Date normalise(Date d)
This function normalises a date into the appropriate canoncical date, for looking up the relevant bucket.
If we should not put the date into a bucket, null is returned.

 o normalise
 public Date normalise(Date d,
                       boolean unused)
 o dump
 public void dump()
 o store
 public void store(StorageManager store)

All Packages  Class Hierarchy  This Package  Previous  Next  Index