|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used by all algorithms to access TSP algorithms.
Method Summary | |
double |
getCost()
Returns the cost of the solution tour. |
java.util.Vector |
getTour()
Returns the solution tour generated by the algorithm. |
java.util.Vector |
rotateClosedTour(java.util.Vector tour,
java.lang.Object key)
Rotates the closed tour until the vertex that matches key is the vertex that is repeated on both ends. |
void |
setEdgeKey(java.lang.Object edgeKey)
Sets the key used to select from parallel edges between vertices. |
void |
setGraph(GraphI graph)
Sets the graph for the TSP algorithm. |
void |
setProperties(PropertiesI properties)
Sets the edge properties object. |
Method Detail |
public void setGraph(GraphI graph)
public void setProperties(PropertiesI properties)
public void setEdgeKey(java.lang.Object edgeKey)
public double getCost()
public java.util.Vector getTour()
public java.util.Vector rotateClosedTour(java.util.Vector tour, java.lang.Object key) throws VertexNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |