peersim.vector
Class VectorObserver

java.lang.Object
  extended by peersim.vector.VectControl
      extended by peersim.vector.VectorObserver
All Implemented Interfaces:
Control

public class VectorObserver
extends VectControl

This class computes and reports statistics information about a vector. Provided statistics include average, max, min, variance, etc. Values are printed according to the string format of IncrementalStats.toString(). Single nodes may avoid to be counted in the statistics by throwing an UnsupportedOperationException in the getter method.

See Also:
VectControl, peersim.vector

Parameter Summary
 
Parameters inherited from class peersim.vector.VectControl
protocol, setter, getter
 
Field Summary
 
Fields inherited from class peersim.vector.VectControl
getter, setter
 
Constructor Summary
VectorObserver(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 boolean execute()
          Prints statistics information about a vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorObserver

public VectorObserver(java.lang.String prefix)
Standard constructor that reads the configuration parameters. Invoked by the simulation engine.

Parameters:
prefix - the configuration prefix for this class
Method Detail

execute

public boolean execute()
Prints statistics information about a vector. Provided statistics include average, max, min, variance, etc. Values are printed according to the string format of IncrementalStats.toString().

Returns:
always false