|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.modeling.p2p.chord.ChordAlgorithm
Wrapper for Chord Network Modeling Algorithm
| Constructor Summary | |
ChordAlgorithm(int networkSize,
int fingerTableSize)
Constructor for ChordAlgorithm class. |
|
| Method Summary | |
boolean |
execute()
Runs the algorithm. |
java.lang.String |
getFileName()
This method gets the name of the file that stores the network graph |
int |
getFingerTableSize()
This method gets the minimum number of nodes to which a node connects |
int |
getNetworkSize()
This method gets the size of the network |
void |
setFileName(java.lang.String filename)
This method sets the name of the file which'll store the network graph |
void |
setFingerTableSize(int fingerTableSize)
This method sets the minimum degree of the node |
void |
setNetworkSize(int networkSize)
This method sets the size of the network to be built |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChordAlgorithm(int networkSize,
int fingerTableSize)
networkSize - - size of the networkfingerTableSize - - minimum degree of the node| Method Detail |
public boolean execute()
Algorithm
execute in interface AlgorithmAlgorithm.execute()public void setNetworkSize(int networkSize)
networkSize - public int getNetworkSize()
public void setFingerTableSize(int fingerTableSize)
fingerTableSize - public int getFingerTableSize()
public java.lang.String getFileName()
public void setFileName(java.lang.String filename)
filename -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||