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 ScreenResolutionPerVisitAggregation

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
              extended by org.torweg.pulse.component.statistics.model.aggregation.ScreenResolutionPerVisitAggregation
All Implemented Interfaces:
java.io.Serializable, ICount, IHasDuration

@Entity
public class ScreenResolutionPerVisitAggregation
extends AbstractCountAggregation

Stores the aggregated statistical data for ScreenResolution on a "per Visit" basis for the set Duration.

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
protected ScreenResolutionPerVisitAggregation()
          Deprecated. 
  ScreenResolutionPerVisitAggregation(ScreenResolution resolution, StatisticsServer server, Duration duration)
          Creates a new ScreenResolutionPerVisitAggregation with the given ScreenResolution, the given StatisticsServer and the given Duration.
 
Method Summary
 boolean aggregate(Visit visit, org.hibernate.Session s)
          Aggregates the given Visit.
 ScreenResolution getScreenResolution()
          Returns the ScreenResolution the aggregation is related to.
 boolean isAggregateable(Visit visit)
          Test if the given Visit is aggregate-able by the ScreenResolutionPerVisitAggregation.
protected  void setScreenResolution(ScreenResolution resolution)
          Sets the ScreenResolution.
 java.lang.String toString()
          Returns a string representation.
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractCountAggregation
getCount, increase, increaseBy, setCount
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, 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

ScreenResolutionPerVisitAggregation

@Deprecated
protected ScreenResolutionPerVisitAggregation()
Deprecated. 

Default constructor.


ScreenResolutionPerVisitAggregation

public ScreenResolutionPerVisitAggregation(ScreenResolution resolution, StatisticsServer server, Duration duration)
Creates a new ScreenResolutionPerVisitAggregation with the given ScreenResolution, the given StatisticsServer and the given Duration.

Parameters:
resolution - the OperatingSystem
server - the StatisticsServer
duration - the Duration
Method Detail

getScreenResolution

public final ScreenResolution getScreenResolution()
Returns the ScreenResolution the aggregation is related to.

Returns:
the ScreenResolution

setScreenResolution

protected final void setScreenResolution(ScreenResolution resolution)
Sets the ScreenResolution.

Parameters:
resolution - the ScreenResolution
Throws:
java.lang.NullPointerException - if the given resolution is null

isAggregateable

public final boolean isAggregateable(Visit visit)
Test if the given Visit is aggregate-able by the ScreenResolutionPerVisitAggregation.

Specified by:
isAggregateable in class AbstractAggregation
Parameters:
visit - the Visit
Returns:
true if and only if the ScreenResolutionPerVisitAggregation can process the given Visit, false otherwise
See Also:
#isAggregateable(org.torweg.pulse.component.statistics.model.Visit)

aggregate

public final boolean aggregate(Visit visit,
                               org.hibernate.Session s)
Aggregates the given Visit.

Specified by:
aggregate in class AbstractAggregation
Parameters:
visit - the Visit
s - the Session UNUSED
Returns:
true if and only if the Visit has been processed, false otherwise
See Also:
#aggregate(org.torweg.pulse.component.statistics.model.Visit)

toString

public final java.lang.String toString()
Returns a string representation.

Overrides:
toString in class AbstractAggregation
Returns:
a string representation