|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Any object wanting to be searched by a pathfinding algorithm should implement this interfaces
Method Summary | |
double |
computeHeuristic(PathPlace pp,
PathPlace dest)
|
double |
computeHeuristic(PathPlace origin,
PathPlace dest,
double factor)
|
void |
firePathComputation(PathPlaceSet path)
Notice the Listeners and the PathUser that a Path has been computed |
void |
firePathPlaceChange(PathPlace mp)
|
PathPlace[] |
getAdjacent(PathPlace mp)
Returns the PathPlace adjacent to the given PathPlace |
double |
getCostToReach(PathPlace from,
PathPlace to,
PathUser pu)
|
java.lang.String |
getName()
|
void |
setValue(PathPlace pp,
double value)
Delegates the work of tagging the given PathPlace with a double value |
Method Detail |
public PathPlace[] getAdjacent(PathPlace mp)
mp
- the PathPlacepublic void firePathComputation(PathPlaceSet path)
public void firePathPlaceChange(PathPlace mp)
public double getCostToReach(PathPlace from, PathPlace to, PathUser pu)
public void setValue(PathPlace pp, double value)
value
- pp
- public double computeHeuristic(PathPlace pp, PathPlace dest)
dest
- public double computeHeuristic(PathPlace origin, PathPlace dest, double factor)
origin
- dest
- factor
- public java.lang.String getName()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |