|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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().
| 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 |
public static final String NAME
| Method Detail |
public void setStats(Stats stats)
stats - the object used to collect statisticspublic void evaluate()
public void analyze(Stats stats)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||