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 AbstractTreeAggregation<T extends AbstractTreeElement<T>>

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.AbstractTreeAggregation<T>
Type Parameters:
T - the implementation of AbstractTreeElement as used by the AbstractTreeAggregation
All Implemented Interfaces:
java.io.Serializable, IHasDuration
Direct Known Subclasses:
PathTreeAggregation, RefererTreeAggregation

@MappedSuperclass
public abstract class AbstractTreeAggregation<T extends AbstractTreeElement<T>>
extends AbstractAggregation

An abstract base class to derive aggregations based on an a tree-like structure using nodes derived from AbstractTreeElement.

Version:
$Revision: 1579 $
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
AbstractTreeAggregation()
           
 
Method Summary
 int getHits()
          Returns the hits.
 T getPath()
          Returns the AbstractTreeElement.
 void increaseHits()
          Increases the hits by 1.
 void increaseHits(int v)
          Increases the hits by the given value v.
protected  void setPath(T treeElement)
          Sets the given AbstractTreeElement as path.
 java.lang.String toString()
           
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
aggregate, getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, isAggregateable, setDuration, setEndMillis, setStartMillis, setStatisticsServer
 
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

AbstractTreeAggregation

public AbstractTreeAggregation()
Method Detail

getPath

public final T getPath()
Returns the AbstractTreeElement.

Returns:
the path

setPath

protected final void setPath(T treeElement)
Sets the given AbstractTreeElement as path.

Parameters:
treeElement - the AbstractTreeElement

getHits

public final int getHits()
Returns the hits.

Returns:
the hits

increaseHits

public final void increaseHits()
Increases the hits by 1.


increaseHits

public final void increaseHits(int v)
Increases the hits by the given value v.

Parameters:
v - the value to increase the counter by

toString

public java.lang.String toString()
Overrides:
toString in class AbstractAggregation
Returns:
string representation of the AbstractTreeAggregation