|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Graph
This is the general interface for a graph used for pathfinding.
Method Summary | |
---|---|
java.util.Collection<Edge> |
getEdges(Vertex v)
Gets the edges with the specified Vertex as starting
point. |
Vertex |
getGoalVertex()
Gets the goal Vertex of this Graph . |
SuperLinkID |
getId()
Returns the id of the owner/requester for this graph. |
Vertex |
getSourceVertex()
Gets the source Vertex of this Graph . |
void |
setApproximateGoal(Vertex v)
Method sets the goalVertex to this vertex if all the goal state descriptors are contained in the input vertex. |
Method Detail |
---|
java.util.Collection<Edge> getEdges(Vertex v)
Vertex
as starting
point.
v
- the starting Vertex
Vertex
Vertex getSourceVertex()
Vertex
of this Graph
. The
source vertex is defined as the starting point of any path in this graph.
The implementing graph class must guarantee that any
preconditions for the source vertex of the Pathfinder
are
not violated.
Vertex getGoalVertex()
Vertex
of this Graph
. The
goal vertex is defined as the ending point of any path in this graph.
The implementing graph class must guarantee that any
preconditions for the goal vertex of the Pathfinder
are
not violated.
void setApproximateGoal(Vertex v)
v
- the approximate goal candidate
java.lang.IllegalArgumentException
- thrown if the input vertex is not a valid approximate goalSuperLinkID getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |