|
|||||||||||
| 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.PruNetwork
PRU Network Model for Unstructured P2P Networks
| Constructor Summary | |
PruNetwork()
Constructor for PRU Network model |
|
PruNetwork(int networkSize,
int cacheSize,
int lowerBound,
int upperBound)
Constructor for PRU Network model. |
|
| Method Summary | |
boolean |
buildPruNetwork()
Build PRU Network Model |
float |
getAvgDegree()
Get average degree of the network |
int |
getCacheSize()
Returns the number of nodes in the cache |
java.lang.String |
getFailReason()
Get the reason because of which modelig failed |
edu.uci.ics.jung.graph.Graph |
getGraph()
Returns the network in the form of a graph |
int[] |
getHostCache()
Returns the host cache of nodes |
int |
getLowerBound()
Returns the minimum degree of nodes in the network |
int |
getMaxDegree()
Get max degree of the network |
int |
getMinDegree()
Get min degree of the network |
int |
getNetworkSize()
Returns the size of the network |
int |
getUpperBound()
Returns the maximum degree of nodes in the network |
void |
printNetwork()
Print the network graph |
void |
setCacheSize(int cacheSize)
Sets the number of nodes in the cache |
void |
setLowerBound(int minDegree)
Sets the minimum degree of nodes in the network |
void |
setNetworkSize(int networkSize)
Sets the size of the network |
void |
setUpperBound(int maxDegree)
Sets the maximum degree of nodes in the network |
void |
writeGraph(java.lang.String filename)
Write the graph to a file |
void |
writePajekFile(java.lang.String filename)
Create a Pajek file |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PruNetwork()
public PruNetwork(int networkSize,
int cacheSize,
int lowerBound,
int upperBound)
networkSize - size of the networkcacheSize - number of nodes in the cachelowerBound - minimum degreeupperBound - maximum degree| Method Detail |
public boolean buildPruNetwork()
public int getCacheSize()
public edu.uci.ics.jung.graph.Graph getGraph()
public int[] getHostCache()
public int getLowerBound()
public int getNetworkSize()
public int getUpperBound()
public void setCacheSize(int cacheSize)
cacheSize - public void setLowerBound(int minDegree)
minDegree - public void setNetworkSize(int networkSize)
networkSize - public void setUpperBound(int maxDegree)
maxDegree - public void printNetwork()
public void writePajekFile(java.lang.String filename)
public void writeGraph(java.lang.String filename)
public float getAvgDegree()
public int getMaxDegree()
public int getMinDegree()
public java.lang.String getFailReason()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||