etm.core.aggregation
Class ExecutionAggregate

java.lang.Object
  extended by etm.core.aggregation.ExecutionAggregate
All Implemented Interfaces:
Aggregate, java.io.Externalizable, java.io.Serializable

public class ExecutionAggregate
extends java.lang.Object
implements java.io.Externalizable, Aggregate

The ExecutionAggregate represents the aggregated information of an execution point. Please note that all methods of this class are not synchronized.

Version:
$Revision: 189 $
Author:
void.fm
See Also:
Serialized Form

Constructor Summary
ExecutionAggregate()
           
ExecutionAggregate(java.lang.String aName)
           
 
Method Summary
 void addTransaction(EtmPoint transaction)
          Adds a transaction to the current aggregate.
 void appendPath(java.util.LinkedList newTree)
          Append a measurement result from the end of a tree.
 double getAverage()
           
 java.util.Map getChilds()
           
 double getMax()
           
 long getMeasurements()
           
 double getMin()
           
 java.lang.String getName()
           
 double getTotal()
           
 boolean hasChilds()
          Returns whether the given aggregate has childs or not.
 void readExternal(java.io.ObjectInput in)
           
 void reset()
          Resets current state.
protected  void setChilds(java.util.Map aChilds)
           
protected  void setMax(double aMax)
           
protected  void setMeasurements(long aMeasurements)
           
protected  void setMin(double aMin)
           
protected  void setTotal(double aTotal)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutionAggregate

public ExecutionAggregate()

ExecutionAggregate

public ExecutionAggregate(java.lang.String aName)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Aggregate

getAverage

public double getAverage()
Specified by:
getAverage in interface Aggregate

getMin

public double getMin()
Specified by:
getMin in interface Aggregate

getMax

public double getMax()
Specified by:
getMax in interface Aggregate

getMeasurements

public long getMeasurements()
Specified by:
getMeasurements in interface Aggregate

getTotal

public double getTotal()
Specified by:
getTotal in interface Aggregate

getChilds

public java.util.Map getChilds()
Specified by:
getChilds in interface Aggregate

hasChilds

public boolean hasChilds()
Returns whether the given aggregate has childs or not.

Specified by:
hasChilds in interface Aggregate
Returns:
True for available childs, otherwise false.

addTransaction

public void addTransaction(EtmPoint transaction)
Adds a transaction to the current aggregate.

Parameters:
transaction - The transaction to add.

appendPath

public void appendPath(java.util.LinkedList newTree)
Append a measurement result from the end of a tree.

Parameters:
newTree - The tree to the measurement result.

setMeasurements

protected void setMeasurements(long aMeasurements)

setMin

protected void setMin(double aMin)

setMax

protected void setMax(double aMax)

setTotal

protected void setTotal(double aTotal)

setChilds

protected void setChilds(java.util.Map aChilds)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

reset

public void reset()
Resets current state.

Since:
1.2.0


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.