csli.util.search
Class MapState
java.lang.Object
csli.util.search.AbstractSearchState<MapState>
csli.util.search.MapState
- All Implemented Interfaces:
- SearchState<MapState>, Comparable<MapState>
public class MapState
- extends AbstractSearchState<MapState>
An example SearchState implementation, in which each state represents a path
to a particular location on the WorldMap. The score is the A* score, distance
travelled thus far + heuristic distance to the goal. The goal, bounds, and
nearest neighbor relations are determined by WorldMap.
- Author:
- jefe
MapState
public MapState(csli.util.search.WorldMap.Location x,
WorldMap world)
MapState
public MapState(MapState prev,
csli.util.search.WorldMap.Location x,
WorldMap world)
getSuccessors
public Collection<MapState> getSuccessors()
getScore
public double getScore()
isGoalState
public boolean isGoalState()
isOutOfBounds
public boolean isOutOfBounds()
toPathString
public String toPathString()
toString
public String toString()
- Overrides:
toString in class Object