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.util
Class AbstractRowData<T extends IHasDuration>

java.lang.Object
  extended by org.torweg.pulse.component.statistics.util.AbstractRowData<T>
Type Parameters:
T - the implementation of the underlying IHasDuration
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AbstractRegexVersionedCounterAggregationRowData, ScreenResolutionPerVisitAggregationRowData

public abstract class AbstractRowData<T extends IHasDuration>
extends java.lang.Object
implements java.io.Serializable

An abstract base class representing the data of the ResultIHasDurationMatrixRows of the ResultIHasDurationMatrix.

NOTE: Implementing classes are to be JAXB-enabled.

Version:
$Revision: 1933 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
AbstractRowData()
           
 
Method Summary
protected abstract  void aggregate(T dataObject)
          Aggregates the values of the given data.
protected abstract  AbstractRowData<T> create(T dataObject)
          Factory method.
abstract  java.util.Set<T> getDataObjects()
          Returns the underlying IHasDurations dataObjects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRowData

public AbstractRowData()
Method Detail

create

protected abstract AbstractRowData<T> create(T dataObject)
Factory method.

Creates a new AbstractRowData from the given data.

Parameters:
dataObject - the IHasDuration
Returns:
a new AbstractRowData.

aggregate

protected abstract void aggregate(T dataObject)
Aggregates the values of the given data.

Parameters:
dataObject - the IHasDuration

getDataObjects

public abstract java.util.Set<T> getDataObjects()
Returns the underlying IHasDurations dataObjects.

Returns:
the IHasDurations dataObjects