org.xshare.base.counter
Interface DynamicCounter

All Superinterfaces:
BaseCounter

public interface DynamicCounter
extends BaseCounter

Configurable counter with a one-2-many relation ship between a counting function and key/value pairs.

Notes On The Implementation

  1. Calling BaseCounter.reset() will discard all key/value result pairs and keep only the counter functions installed via addRule(UnaryFunction).

Version:
$Revision: 1.3.2.1 $
Author:
Oliver Fischer
See Also:
Introduction to counters in the User guide, StaticCounter

Method Summary
 void addRule(UnaryFunction pCounterFunction)
          Installs a new rule expressed as UnaryFunction.
 
Methods inherited from interface org.xshare.base.counter.BaseCounter
getResultFor, getResultKeys, hasResultFor, passThrough, passThrough, reset
 

Method Detail

addRule

public void addRule(UnaryFunction pCounterFunction)
Installs a new rule expressed as UnaryFunction.

Parameters:
pCounterFunction - an UnaryFunction object, representing the a counting function.
Throws:
NullPointerFunction - if the given function is null.


jKiska Base 0.2.1 Release Esche [http://jkiska.sourceforge.net]