|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ants.gnutant.GnutantResourceDistribution
Classes implementing this interface are used to generate pre-defined resources at the beginning of a simulation.
| Field Summary | |
static String |
EXPONENTIAL
If the Selection parameter assumes this value, resources are selected randomly (with exponential distribution) from the resource set. |
static String |
PAR_INITIALDOCS
String name of the parameter used to determine the inital number of documents to be installed at each nest. |
static String |
PAR_MEAN
String name of the parameter used to determine vary the mean of the keyword selection distribution. |
static String |
PAR_SELECTION
String name of the parameter used to determine the type of selection you can use. |
static String |
UNIFORM
If the Selection parameter assumes this value, resources are selected randomly (with uniform distribution) from the resource set. |
| Fields inherited from interface antsim.ResourceDistribution |
NAME |
| Constructor Summary | |
GnutantResourceDistribution(Factory factory,
String name)
|
|
| Method Summary | |
void |
clear()
Restores the object to its initial state. |
void |
distributeResources(ResourceSet resourceSet,
Peernet peernet)
Distributes resources in a P2P network. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UNIFORM
public static final String EXPONENTIAL
public static final String PAR_INITIALDOCS
public static final String PAR_SELECTION
public static final String PAR_MEAN
| Constructor Detail |
public GnutantResourceDistribution(Factory factory,
String name)
| Method Detail |
public void clear()
clear in interface Clearable
public void distributeResources(ResourceSet resourceSet,
Peernet peernet)
distributeResources in interface ResourceDistribution
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||