edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer
Class TimeSpentEvaluatingRulesTotal

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
              |
              +--edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.StatisticsObject
                    |
                    +--edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.AggregateStatisticsObject
                          |
                          +--edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.TimeSpentEvaluatingRulesTotal

public class TimeSpentEvaluatingRulesTotal
extends AggregateStatisticsObject

Insert the type's description here. Creation date: (2/12/2003 5:27:18 PM)

See Also:
Serialized Form

Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Constructor Summary
TimeSpentEvaluatingRulesTotal()
          TimeSpentEvaluatingRulesTotal constructor comment.
TimeSpentEvaluatingRulesTotal(java.lang.String name, XATOperator operator)
          TimeSpentEvaluatingRulesTotal constructor comment.
 
Method Summary
 void calculateNewValue()
          This is semantically the same as calculateNewValue(), but this provides a parameter which assists in the calculation.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.AggregateStatisticsObject
getMaxValue, getMinValue, getMostRecent, getPropertyValueMean, setMostRecent, setPropertyValue
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.StatisticsObject
calculateNewValue, compareTo, equals, getAssociatedQueryObject, getCategory, getPropertyName, getPropertyValue, setAssociatedQueryObject, setCategory, setPropertyName, toString
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
addStatistic, getStatistics, isValidStatistic, setDefaultProperties, setDefaultStatistics
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
addProperty, getProperties, getProperty, isValidPropertyName, setNewPropertyValue, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeSpentEvaluatingRulesTotal

public TimeSpentEvaluatingRulesTotal()
TimeSpentEvaluatingRulesTotal constructor comment.

TimeSpentEvaluatingRulesTotal

public TimeSpentEvaluatingRulesTotal(java.lang.String name,
                                     XATOperator operator)
TimeSpentEvaluatingRulesTotal constructor comment.
Parameters:
name - java.lang.String
operator - edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperator
Method Detail

calculateNewValue

public void calculateNewValue()
This is semantically the same as calculateNewValue(), but this provides a parameter which assists in the calculation. Calculates the new Value of the given property of this operator. This should be overwritten by subclasses who can tailor this method to calculating 1 specific property.

This method should update at least the local propertyValue and possibly the value with the operator The entire StatisticsGatherer is available for assistance.

The procedure for calculating new values should be as follows:

  1. Consult the statsTable for any propertyValues that are needed.
  2. Perform the required calculations using the propertyValues from step 1
  3. Update the local propertyValue.
  4. Update the lastTimeUpdated value by using lastTimeUpdated = System.currentTimeMillis();
Overrides:
calculateNewValue in class StatisticsObject