|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.modeling.p2p.pru.PruAlgorithm
Wrapper for PRU Network Modeling Algorithm
| Constructor Summary | |
PruAlgorithm(int networkSize,
int cacheSize,
int lowerBound,
int upperBound)
Constructor for PruAlgorithm class. |
|
| Method Summary | |
boolean |
execute()
Runs the algorithm. |
int |
getCacheSize()
Returns the number of nodes in the cache |
java.lang.String |
getFileName()
This method gets the name of the file that stores the network graph |
int |
getLowerBound()
Returns the minimum degree of nodes in the network |
int |
getNetworkSize()
This method gets the size of the network |
int |
getUpperBound()
Returns the maximum degree of nodes in the network |
void |
setCacheSize(int cacheSize)
Sets the cache size |
void |
setFileName(java.lang.String filename)
This method sets the name of the file which'll store the network graph |
void |
setLowerBound(int minDegree)
Sets the minimum degree of nodes |
void |
setNetworkSize(int networkSize)
This method sets the size of the network to be built |
void |
setUpperBound(int maxDegree)
Sets the max degree of nodes |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PruAlgorithm(int networkSize,
int cacheSize,
int lowerBound,
int upperBound)
networkSize - - size of the networkcacheSize - - number of nodes in the cachelowerBound - - minimum degree of nodes in the networkupperBound - - maximum degree of nodes in the network| Method Detail |
public boolean execute()
Algorithm
execute in interface AlgorithmAlgorithm.execute()public void setNetworkSize(int networkSize)
networkSize - public int getNetworkSize()
public java.lang.String getFileName()
public void setFileName(java.lang.String filename)
filename - public int getCacheSize()
public int getLowerBound()
public int getUpperBound()
public void setCacheSize(int cacheSize)
cacheSize - public void setLowerBound(int minDegree)
minDegree - public void setUpperBound(int maxDegree)
maxDegree -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||