pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.model.aggregation
Class AbstractCountAggregation

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
AbstractAggregation.Hour
 
Field Summary
 
Fields inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
LOGGER
 
Constructor Summary
AbstractCountAggregation()
           
 
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 org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCountAggregation

public AbstractCountAggregation()
Method Detail

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