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 PathTreeAggregation

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

@Entity
public class PathTreeAggregation
extends AbstractTreeAggregation<PathTreeElement>

The actual implementation of AbstractTreeAggregation which stores the aggregated statistical data per PathTreeElement on a "per Visit" basis for the set Duration.

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
protected PathTreeAggregation()
          Deprecated. 
  PathTreeAggregation(PathTreeElement p, Duration duration)
          Creates a new PathTreeAggregation for the given PathTreeElement.
 
Method Summary
 boolean aggregate(Visit visit, org.hibernate.Session s)
          NOT USED.
 int getBounces()
          Returns the bounce-count.
 int getChildBounces()
          Returns the child-bounce-count.
 int getChildHits()
          Returns the number of hits on the children of the path.
 int getEntries()
          Returns the entries-count.
 int getLeaves()
          Returns the leaves-count.
 void increaseBounces(boolean increase)
          Increases the bounce-counter 1.
 void increaseBounces(int v)
          Increases the bounces by the given value v.
 void increaseChildBounces()
          Increases the child-bounce-counter by 1.
 void increaseChildBounces(int v)
          Increases the child bounces by the given value v.
 void increaseChildHits()
          Increases the child hits by 1.
 void increaseChildHits(int v)
          Increases the child hits by the given value v.
 void increaseEntries(boolean increase)
          Increases the entries-counter by 1.
 void increaseEntries(int v)
          Increases the entries counter by the given value v.
 void increaseLeaves(boolean increase)
          Increases the leaves-counter by 1.
 void increaseLeaves(int v)
          Increases the leaves counter by the given value v.
 boolean isAggregateable(Visit visit)
          NOT USED.
 java.lang.String toString()
           
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeAggregation
getHits, getPath, increaseHits, increaseHits, setPath
 
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

PathTreeAggregation

@Deprecated
protected PathTreeAggregation()
Deprecated. 

Default constructor for hibernateTM.


PathTreeAggregation

public PathTreeAggregation(PathTreeElement p, Duration duration)
                    throws java.lang.NullPointerException
Creates a new PathTreeAggregation for the given PathTreeElement.

Parameters:
p - the PathTreeElement
duration - the Duration
Throws:
java.lang.NullPointerException - if the given path or dur is null
Method Detail

getChildHits

public final int getChildHits()
Returns the number of hits on the children of the path.

Returns:
the childHits

increaseChildHits

public final void increaseChildHits()
Increases the child hits by 1.


increaseChildHits

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

Parameters:
v - the value to increase the counter by

getBounces

public final int getBounces()
Returns the bounce-count.

Returns:
the bounces

increaseBounces

public final void increaseBounces(boolean increase)
Increases the bounce-counter 1.

Parameters:
increase - true to actually increase

increaseBounces

public final void increaseBounces(int v)
Increases the bounces by the given value v.

Parameters:
v - the value to increase the counter by

getChildBounces

public final int getChildBounces()
Returns the child-bounce-count.

Returns:
the childBounces

increaseChildBounces

public final void increaseChildBounces()
Increases the child-bounce-counter by 1.


increaseChildBounces

public final void increaseChildBounces(int v)
Increases the child bounces by the given value v.

Parameters:
v - the value to increase the counter by

getEntries

public final int getEntries()
Returns the entries-count.

Returns:
the entries

increaseEntries

public final void increaseEntries(boolean increase)
Increases the entries-counter by 1.

Parameters:
increase - true to actually increase

increaseEntries

public final void increaseEntries(int v)
Increases the entries counter by the given value v.

Parameters:
v - the value to increase the counter by

getLeaves

public final int getLeaves()
Returns the leaves-count.

Returns:
the leaves

increaseLeaves

public final void increaseLeaves(boolean increase)
Increases the leaves-counter by 1.

Parameters:
increase - true to actually increase

increaseLeaves

public final void increaseLeaves(int v)
Increases the leaves counter by the given value v.

Parameters:
v - the value to increase the counter by

aggregate

public final boolean aggregate(Visit visit,
                               org.hibernate.Session s)
NOT USED.

Specified by:
aggregate in class AbstractAggregation
Parameters:
visit - a Visit
s - the Session UNUSED
Returns:
PulseException always
Throws:
PulseException - always
See Also:
#aggregate(org.torweg.pulse.component.statistics.model.Visit)

isAggregateable

public final boolean isAggregateable(Visit visit)
NOT USED.

Specified by:
isAggregateable in class AbstractAggregation
Parameters:
visit - a Visit
Returns:
PulseException always
Throws:
PulseException - always
See Also:
#isAggregateable(org.torweg.pulse.component.statistics.model.Visit)

toString

public final java.lang.String toString()
Overrides:
toString in class AbstractTreeAggregation<PathTreeElement>
Returns:
string representation of the PathTreeAggregation