|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.search.p2p.chord.ChordSearch
Implements the Chord Search Algorithm on Chord p2p network
| Constructor Summary | |
ChordSearch(edu.uci.ics.jung.graph.Graph graph)
Constructor for ChordSearch algorithm. |
|
| Method Summary | |
java.lang.String |
getFailReason()
Get the reason because of which modelig failed |
int |
getSearchCost()
This methods returns the search cost (number of messages to perform search) for the network |
boolean |
searchNetwork(int fromId,
int toId)
This method performs search on the graph, given the source and target nodes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChordSearch(edu.uci.ics.jung.graph.Graph graph)
graph - - Graph object representing the CHORD network on which the search is to be performed.| Method Detail |
public boolean searchNetwork(int fromId,
int toId)
fromId - - Id of the source nodetoId - - Id of the target node
public int getSearchCost()
public java.lang.String getFailReason()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||