org.torweg.pulse.component.statistics.model.aggregation
Class AbstractCountAggregation
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
org.torweg.pulse.component.statistics.model.aggregation.AbstractCountAggregation
- All Implemented Interfaces:
- java.io.Serializable, ICount, IHasDuration
- Direct Known Subclasses:
- PIRecordCountAggregation, ScreenResolutionPerVisitAggregation, VisitCountAggregation
@MappedSuperclass
public abstract class AbstractCountAggregation
- extends AbstractAggregation
- implements ICount
Abstract bass class representing a basic AbstractAggregation
providing additional counter functionality.
- Version:
- $Revision: 1555 $
- Author:
- Daniel Dietz
- See Also:
- Serialized Form
|
Method Summary |
int |
getCount()
Returns the counter. |
protected void |
increase()
Adds 1 to the internal counter. |
protected void |
increaseBy(int i)
Adds the given integer to the internal counter. |
protected void |
setCount(int i)
Sets the internal counter to the given value. |
| Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation |
aggregate, getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, isAggregateable, setDuration, setEndMillis, setStartMillis, setStatisticsServer, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractCountAggregation
public AbstractCountAggregation()
getCount
public final int getCount()
- Returns the counter.
- Specified by:
getCount in interface ICount
- Returns:
- the counter
setCount
protected final void setCount(int i)
- Sets the internal counter to the given value.
- Parameters:
i - the value to set
- Throws:
java.lang.IllegalArgumentException - if the given i is less than zero
increase
protected final void increase()
- Adds 1 to the internal counter.
increaseBy
protected final void increaseBy(int i)
- Adds the given integer to the internal counter.
- Parameters:
i - an integer
- Throws:
java.lang.IllegalArgumentException - if the given i is less than zero