anthill.antsim
Interface Scenario
- All Superinterfaces:
- Clearable
- All Known Subinterfaces:
- GeneticScenario
- All Known Implementing Classes:
- GnutantScenario, InsantScenario, 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$
- Author:
- Alberto Montresor
Method Summary |
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. |
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.