|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--qcsim.content.impl.PeerContentManagerImpl
Represents the total content of a given peer.
| Field Summary |
| Fields inherited from interface qcsim.content.PeerContentManager |
BOTTOM_CATEGORY, RANDOM_CATEGORY, SAROIU, TOP_CATEGORY, UNIFORMRANDOM |
| Constructor Summary | |
PeerContentManagerImpl(int contentCategories,
int lowerBound,
int dist)
Constructor |
|
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeerContentManagerImpl(int contentCategories,
int lowerBound,
int dist)
| Method Detail |
public int contentCategories()
contentCategories in interface PeerContentManagerpublic double normFactor(int category)
normFactor in interface PeerContentManagerpublic int uniqueFiles(int category)
uniqueFiles in interface PeerContentManagercategory - The Content category.
public PeerContent peerContent(int categoryPreference)
peerContent in interface PeerContentManagercategoryPreference - Specifies an category selection preference.public void distributeFiles()
distributeFiles in interface PeerContentManager
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||