Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Lightweight Bartering Grid
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lbg.peer.register.bartering
Class IntervalStore

    java.lang.Object
      lbg.peer.register.bartering.IntervalStore

    public class IntervalStore

extends java.lang.Object

Author:
  Cyril Briquet

Constructor Summary
`IntervalStore(int ivn, int ilen)`

Method Summary
`double` | `getMeanIntervalSize()`
`void` | `storeTimestamp(long t)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### IntervalStore

    public IntervalStore(int ivn,
                         int ilen)
                  throws GridException

Parameters:
  `ivn` - number of intervals to store (> 0)
  `ilen` - length of each interval, expressed in time units (> 0)
Throws:
  `GridException` - if a parameter is illegal

Method Detail

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### storeTimestamp

    public void storeTimestamp(long t)
                        throws GridException

  Throws:
    `GridException`

### getMeanIntervalSize

    public double getMeanIntervalSize()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Lightweight Bartering Grid
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

> Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.