|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents the total content of a given peer.
| Field Summary | |
static int |
BOTTOM_CATEGORY
|
static int |
RANDOM_CATEGORY
|
static int |
SAROIU
data volume distribution models |
static int |
TOP_CATEGORY
Category preference |
static int |
UNIFORMRANDOM
|
| Method Summary | |
int |
contentCategories()
The total number of content categories in the system. |
void |
distributeFiles()
This should be called once all peer content objects have been created. |
double |
normFactor(int category)
Get the category normalization factor. |
PeerContent |
peerContent(int categoryPreference)
Fuction will initialize a peer's content by assigning a number of content category and a giving each content category a level of interest |
int |
uniqueFiles(int category)
Get the number of unique files in category |
| Field Detail |
public static final int SAROIU
public static final int UNIFORMRANDOM
public static final int TOP_CATEGORY
public static final int BOTTOM_CATEGORY
public static final int RANDOM_CATEGORY
| Method Detail |
public int contentCategories()
public double normFactor(int category)
public int uniqueFiles(int category)
category - The Content category.
public PeerContent peerContent(int categoryPreference)
categoryPreference - Specified category selection preference.public void distributeFiles()
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||