|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.antsim.impl.ScenarioImpl | +--anthill.genie.impl.GeneticScenarioImpl
This is the scenario
Fields inherited from class anthill.antsim.impl.ScenarioImpl |
factory, finalRounds, initRounds, monitor, net, netVersion, nrequests, resources, rounds, rsetVersion, SCENARIO_ROUNDS, stats |
Constructor Summary | |
GeneticScenarioImpl(Factory factory,
int nrequests,
int initRounds,
int rounds,
int finalRounds)
Instantiates a new ScenarioImpl. |
Method Summary | |
void |
addGeneticCode(GeneticCode code)
Set the genetic code to be evaluated. |
void |
clear()
Restores the object to its initial state. |
Methods inherited from class anthill.antsim.impl.ScenarioImpl |
complete, evaluate, returnResources, setStats |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface anthill.antsim.Scenario |
evaluate, setStats |
Constructor Detail |
public GeneticScenarioImpl(Factory factory, int nrequests, int initRounds, int rounds, int finalRounds)
pnf
- Peernet factory to be used to generate networksMethod Detail |
public void clear()
clear
in interface Clearable
clear
in class ScenarioImpl
public void addGeneticCode(GeneticCode code)
IllegalStateException
is thrown.addGeneticCode
in interface GeneticScenario
IllegalStateException
- if this method is added more than once.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |