|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.search.p2p.can.CanSearchAlgorithm
Wrapper class for the CAN Search algorithm.
| Constructor Summary | |
CanSearchAlgorithm()
Empty Constructor |
|
CanSearchAlgorithm(edu.uci.ics.jung.graph.Graph graph,
int sourceNode,
int targetNode)
Constructor for CanSearchAlgorithm. |
|
| Method Summary | |
boolean |
execute()
Runs the algorithm. |
edu.uci.ics.jung.graph.Graph |
getGraph()
This method returns the graph object on which the search is performed |
int |
getSourceNode()
This method returns the source node in the search |
int |
getTargetNode()
This method returns the target node in the search |
void |
setGraph(edu.uci.ics.jung.graph.Graph graph)
This method sets the graph object (representing the CAN network) on which search will be performed |
void |
setSourceNode(int sourceNode)
This method sets the source node to start the search |
void |
setTargetNode(int targetNode)
This method sets the node to be searched (target node) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CanSearchAlgorithm(edu.uci.ics.jung.graph.Graph graph,
int sourceNode,
int targetNode)
sourceNode - targetNode - public CanSearchAlgorithm()
| Method Detail |
public boolean execute()
Algorithm
execute in interface AlgorithmAlgorithm.execute()public edu.uci.ics.jung.graph.Graph getGraph()
public int getSourceNode()
public int getTargetNode()
public void setGraph(edu.uci.ics.jung.graph.Graph graph)
graph - public void setSourceNode(int sourceNode)
sourceNode - public void setTargetNode(int targetNode)
targetNode -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||