Class CounterCollector

java.lang.Object
  extended by CounterCollector
Direct Known Subclasses:
Clock

public class CounterCollector
extends java.lang.Object

CounterCollector class


Constructor Summary
CounterCollector(int nb_counters)
          CounterCollector default constructor
CounterCollector(int nb_counters, int[] values)
          CounterCollector constructor with counter values
CounterCollector(int nb_counters, int[] start, int[] end, int[] step)
          CounterCollector constructor with start, end and step values
 
Method Summary
 CounterCollector decrement()
          CounterCollector decrement method
 Counter getCounter(int index)
          Counter getter
 CounterCollector increment()
          CounterCollector increment method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterCollector

public CounterCollector(int nb_counters)
CounterCollector default constructor

Parameters:
int - nb_counters Number of counter to add
Since:
1.00

CounterCollector

public CounterCollector(int nb_counters,
                        int[] values)
CounterCollector constructor with counter values

Parameters:
int - nb_counters Number of counter to add
int[] - values Values of each counter
Since:
1.00

CounterCollector

public CounterCollector(int nb_counters,
                        int[] start,
                        int[] end,
                        int[] step)
CounterCollector constructor with start, end and step values

Parameters:
int - nb_counters Number of counters to add
int[] - start Start values for each counter
int[] - end End values for each counter
int[] - step Step values for each counter
Since:
1.00
Method Detail

getCounter

public Counter getCounter(int index)
Counter getter

Parameters:
int - index The index of counter to get
Returns:
Counter|null The wanted counter object or null of object doesn't exist
Since:
1.00

increment

public CounterCollector increment()
CounterCollector increment method

Returns:
CounterCollector The current instance
Since:
1.00

decrement

public CounterCollector decrement()
CounterCollector decrement method

Returns:
CounterCollector The current instance
Since:
1.00