org.torweg.pulse.component.statistics.model.aggregation
Class AbstractTreeAggregation<T extends AbstractTreeElement<T>>
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
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
|
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractTreeAggregation
public AbstractTreeAggregation()
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