ants.messor
Class NestNeighboursAnalyzer

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

public class NestNeighboursAnalyzer
extends Object
implements ScenarioAnalyzer

This class implements the ScenarioAnalyzer interface.

Version:
$Revision: 1.2 $
Author:
Alberto Montresor

Field Summary
 
Fields inherited from interface antsim.ScenarioAnalyzer
NAME
 
Constructor Summary
NestNeighboursAnalyzer(Factory factory, String name)
          Instantiates a new NestNeighboursAnalyzer.
 
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

NestNeighboursAnalyzer

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

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.