|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used by all algorithms to access single vertex shortest path algorithms. These algorithms find all of the paths between a root vertex and a set of candidate vertices. This collection of paths forms a tree where the candidates that were reached from the root are the leaves of the tree. The path generation can be constrained by path count, path length and path cost. The constraints all reduce the size of the path tree and can greatly improve the performance of the algorithm.
Dijkstra
,
Connections
Method Summary | |
java.util.Enumeration |
candidates()
Creates an Enumeration on the candidate vertices that were reached in the path generation. |
int |
generatePathsFrom(java.lang.Object rootKey)
Creates the single source shortest path tree from the root vertex to the candidate vertices. |
int |
generatePathsTo(java.lang.Object rootKey)
Creates the single destination shortest path tree from the candidate vertices to the root vertex. |
EdgeValueI |
getEdgeValue(VertexI candidate)
Gets the values of the path between this candidate vertex and the root vertex. |
VertexI |
getNearestCandidate()
Returns the candidate vertex for the single shortest path generated. |
java.util.Vector |
getPath(VertexI candidate)
Creates a path Vector containing the elements in the path between the candidate vertex and the root. |
java.util.Enumeration |
pathElements(VertexI candidate)
Creates an Enumeration on the elements in the path from this candidate vertex to the root vertex. |
void |
setCandidate(boolean isCandidate)
Sets the candidate flags for all vertices. |
void |
setCandidate(java.lang.Object key,
boolean isCandidate)
Sets the candidate flag for a specific vertex. |
void |
setListener(SingleVertexListenerI listener)
Sets the listener to receive the shortest path events. |
void |
setMaxCost(double maxCost)
Sets the maximum cost for any path. |
void |
setMaxDistance(double maxDistance)
Sets the maximum distance for any path. |
void |
setMaxLength(int maxLength)
Sets the maximum number of edges in any path. |
void |
setMaxPaths(int maxPaths)
Sets the maximum number of paths the algorithm will generate. |
void |
setMaxTime(double maxTime)
Sets the maximum time for any path. |
void |
setProperties(PropertiesI properties)
Sets the properties object that is used to access vertex and edge properties. |
boolean |
usesConnectionProperties()
Returns true if an algorithm uses the connection properties. |
Method Detail |
public boolean usesConnectionProperties()
public void setListener(SingleVertexListenerI listener)
public void setProperties(PropertiesI properties)
public void setMaxPaths(int maxPaths)
public void setMaxLength(int maxLength)
public void setMaxCost(double maxCost)
public void setMaxTime(double maxTime)
public void setMaxDistance(double maxDistance)
public void setCandidate(boolean isCandidate)
public void setCandidate(java.lang.Object key, boolean isCandidate) throws VertexNotFoundException
public int generatePathsFrom(java.lang.Object rootKey) throws VertexNotFoundException, InvalidPropertyException
public int generatePathsTo(java.lang.Object rootKey) throws VertexNotFoundException, InvalidPropertyException
public VertexI getNearestCandidate()
public java.util.Enumeration candidates()
public java.util.Enumeration pathElements(VertexI candidate) throws VertexNotFoundException
public java.util.Vector getPath(VertexI candidate) throws VertexNotFoundException
public EdgeValueI getEdgeValue(VertexI candidate) throws VertexNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |