|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to a peer's content.
| Method Summary | |
int |
categories()
The number of content categories this peer contains. |
Content |
category(int category)
Get the content category |
java.util.Iterator |
iterator()
Iterator for all content categories owned by this peer. |
PeerContentManager |
manager()
The manager of this PeerContent object. |
int |
randomCategory()
Choose a random category to download from |
int |
randomFile(int category)
Choose a random file to download. |
| Method Detail |
public PeerContentManager manager()
public int categories()
public java.util.Iterator iterator()
public Content category(int category)
public int randomCategory()
public int randomFile(int category)
category - choose file from this content category
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||