antsim
Interface Scenario

All Superinterfaces:
Clearable
All Known Subinterfaces:
GeneticScenario
All Known Implementing Classes:
ScenarioImpl

public interface Scenario
extends Clearable

Interface Scenario represents a run of the simulation of a particular ant algorithm. Generally, a scenario is composed by a simulated peer-to-peer network (represented by interface Peernet), plus a set of resources to be inserted in the network and a set of requests to be performed (represented by interface ResourceSet). The scenario is simulated by executing the ant algorithm over the simulated peer-to-peer network by performing the requests. Statistics about the behavior of the system during the run of a scenario may be obtained by setting a Stats object through method setStats().

Version:
$Revision: 1.3 $
Author:
Alberto Montresor

Field Summary
static String NAME
          Identifier used in the configuration files
 
Method Summary
 void analyze(Stats stats)
          Analyze the scenario object by displaying information about it.
 void evaluate()
          Perform the evaluation of this scenario object by simulating it.
 void setStats(Stats stats)
          Set the statistics object which will be used throughout the scenario evaluation.
 
Methods inherited from interface anthill.util.Clearable
clear
 

Field Detail

NAME

public static final String NAME
Identifier used in the configuration files

See Also:
Constant Field Values
Method Detail

setStats

public void setStats(Stats stats)
Set the statistics object which will be used throughout the scenario evaluation.

Parameters:
stats - the object used to collect statistics

evaluate

public void evaluate()
Perform the evaluation of this scenario object by simulating it.


analyze

public void analyze(Stats stats)
Analyze the scenario object by displaying information about it.