Query Cycle Simulator HEADER

qcsim.content
Interface PeerContentManager

All Known Implementing Classes:
PeerContentManagerImpl

public interface PeerContentManager

Represents the total content of a given peer.

Version:
1.0
Author:
unascribed

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

SAROIU

public static final int SAROIU
data volume distribution models

See Also:
Constant Field Values

UNIFORMRANDOM

public static final int UNIFORMRANDOM
See Also:
Constant Field Values

TOP_CATEGORY

public static final int TOP_CATEGORY
Category preference

See Also:
Constant Field Values

BOTTOM_CATEGORY

public static final int BOTTOM_CATEGORY
See Also:
Constant Field Values

RANDOM_CATEGORY

public static final int RANDOM_CATEGORY
See Also:
Constant Field Values
Method Detail

contentCategories

public int contentCategories()
The total number of content categories in the system.

Returns:
total number of content categories.

normFactor

public double normFactor(int category)
Get the category normalization factor.

Returns:
category normalization factor.

uniqueFiles

public int uniqueFiles(int category)
Get the number of unique files in category

Parameters:
category - The Content category.
Returns:
The number of unique files in the category.

peerContent

public 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

Parameters:
categoryPreference - Specified category selection preference.

distributeFiles

public void distributeFiles()
This should be called once all peer content objects have been created. This will then initialze the peer content objects with actual files.


Query Cycle Simulator HEADER