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.aggregator
Class PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode

java.lang.Object
  extended by org.torweg.pulse.component.statistics.aggregator.PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode
Enclosing class:
PathTreeAggregator.TreeAggregationUtil

protected static final class PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode
extends java.lang.Object

An AggregationTreeNode represents a node in the TreeAggregationUtil.

Version:
$Revision: 1567 $
Author:
Daniel Dietz

Constructor Summary
PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode(PathTreeAggregation pa)
          Creates a new AggregationTreeNode for the given PathTreeAggregation.
 
Method Summary
protected  void addChild(PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode node)
          Adds a child to the AggregationTreeNode.
protected  void aggregate(PIRecord record, org.torweg.pulse.component.statistics.aggregator.PathTreeAggregator.Booleans booleans)
          Aggregates the information for the given PIRecord to the internal PathTreeAggregation.
protected  PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode getChildByPathTreeElement(PathTreeElement path)
          Returns a child of the AggregationTreeNode by given path.
protected  java.util.Set<PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode> getChildren()
          Returns the child-Nodes.
protected  PathTreeAggregation getPathTreeAggregation()
          Returns the PathTreeAggregation of the AggregationTreeNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode

public PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode(PathTreeAggregation pa)
Creates a new AggregationTreeNode for the given PathTreeAggregation.

Parameters:
pa - the PathTreeAggregation
Method Detail

aggregate

protected void aggregate(PIRecord record,
                         org.torweg.pulse.component.statistics.aggregator.PathTreeAggregator.Booleans booleans)
Aggregates the information for the given PIRecord to the internal PathTreeAggregation.

Parameters:
record - the PIRecord
booleans - a PathTreeAggregator.Booleans with the boolean-values required for setting bounce/entry/leave-count

getPathTreeAggregation

protected PathTreeAggregation getPathTreeAggregation()
Returns the PathTreeAggregation of the AggregationTreeNode.

Returns:
the PathTreeAggregation

addChild

protected void addChild(PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode node)
Adds a child to the AggregationTreeNode.

Parameters:
node - the AggregationTreeNode to add

getChildren

protected java.util.Set<PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode> getChildren()
Returns the child-Nodes.

Returns:
the child-Nodes

getChildByPathTreeElement

protected PathTreeAggregator.TreeAggregationUtil.AggregationTreeNode getChildByPathTreeElement(PathTreeElement path)
Returns a child of the AggregationTreeNode by given path.

Parameters:
path - the PathTreeElement
Returns:
the AggregationTreeNode or null if not child for the given path exists