|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents a given content category. It contains a files associated with the content category and is given to a peer as part of its shared data.
| Field Summary | |
static double |
BAD_FILE
|
static double |
GOOD_FILE
|
| Method Summary | |
boolean |
addFile(int rank)
Add the file rank to this content category |
int |
category()
The content category id. |
boolean |
containsFile(int rank)
Search for the file rank in this content category |
int |
files()
The number of files. |
double |
interest()
The peers interest level in this content category. |
void |
interest(double interest)
Set the peers interest level in this content category. |
int |
volume()
The total volume of data (number of files) in this content category. |
void |
volume(int volume)
Set the total volume of data (number of files) in this content category |
| Field Detail |
public static final double BAD_FILE
public static final double GOOD_FILE
| Method Detail |
public int category()
public double interest()
public void interest(double interest)
public int volume()
public void volume(int volume)
public int files()
public boolean containsFile(int rank)
rank - the file to search.
public boolean addFile(int rank)
rank - file to add.
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||