ants.messor
Class LoadDeviationAnalyzer

java.lang.Object
  |
  +--ants.messor.LoadDeviationAnalyzer
All Implemented Interfaces:
Clearable, ScenarioAnalyzer

public class LoadDeviationAnalyzer
extends Object
implements ScenarioAnalyzer

This class implements the ScenarioAnalyzer interface.

Version:
$Revision: 1.5 $
Author:
Alberto Montresor

Field Summary
 
Fields inherited from interface antsim.ScenarioAnalyzer
NAME
 
Constructor Summary
LoadDeviationAnalyzer(Factory factory, String name)
          Instantiates a new LoadDeviationAnalyzer.
 
Method Summary
 void analyze(Stats stats, Peernet peernet)
          Performs an analysis on the state of the simulated P2P network.
 void clear()
          Restores the object to its initial state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadDeviationAnalyzer

public LoadDeviationAnalyzer(Factory factory,
                             String name)
Instantiates a new LoadDeviationAnalyzer.

Parameters:
factory - the factory to be used to read configuration arguments and to create other configurable objects
name - the name that is associated to this instance in the configuration file
Method Detail

clear

public void clear()
Restores the object to its initial state.

Specified by:
clear in interface Clearable

analyze

public void analyze(Stats stats,
                    Peernet peernet)
Performs an analysis on the state of the simulated P2P network.

Specified by:
analyze in interface ScenarioAnalyzer
Parameters:
stats - the object used to collect statistics
peernet - the simulated P2P network, whose content can be inspected by accessing the storage objects included in it.