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

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.OperatorUtilization

public class OperatorUtilization
extends StatisticsObject

Calculates the (true, not weighed) average workload for each operator in the system. This will allow for the system to determine how fully each operator is being used by the scheduler

See Also:
Serialized Form

Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Constructor Summary
OperatorUtilization()
          OperatorUtilization constructor comment.
OperatorUtilization(java.lang.String name, XATQueryObject queryObject)
          OperatorUtilization constructor comment.
 
Method Summary
 void calculateNewValue()
          Calculates the new Value of the given property of this operator.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.StatisticsObject
calculateNewValue, compareTo, equals, getAssociatedQueryObject, getCategory, getPropertyName, getPropertyValue, setAssociatedQueryObject, setCategory, setPropertyName, setPropertyValue, 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

OperatorUtilization

public OperatorUtilization()
OperatorUtilization constructor comment.

OperatorUtilization

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

calculateNewValue

public void calculateNewValue()
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