nz.ac.waikato.mcennis.rat.graph.descriptors
Class AverageSumParameter

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.descriptors.BasicParameter
      extended by nz.ac.waikato.mcennis.rat.graph.descriptors.AverageSumParameter
All Implemented Interfaces:
Parameter, ParameterInternal, SettableParameter

public class AverageSumParameter
extends BasicParameter

Extension of BasicParameter that causes all double values to not overwrite the previous value, but maintain a running average of all values.


Constructor Summary
AverageSumParameter()
          Creates a new instance of AverageSumParameter
 
Method Summary
 void setValue(java.lang.Object o)
          Set the actual value to the average of all inputs seen.
 
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.descriptors.BasicParameter
getName, getType, getValue, isStructural, setName, setStructural, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AverageSumParameter

public AverageSumParameter()
Creates a new instance of AverageSumParameter

Method Detail

setValue

public void setValue(java.lang.Object o)
Set the actual value to the average of all inputs seen.

Specified by:
setValue in interface SettableParameter
Overrides:
setValue in class BasicParameter
Parameters:
o - new parameter value