Package pfvisualizer.util
Class Result
- java.lang.Object
-
- pfvisualizer.util.Result
-
public class Result extends java.lang.ObjectA result of a search.
-
-
Constructor Summary
Constructors Constructor Description Result(int[][] map, float distance, boolean pathFound)The result of a pathfinding algorithm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetDistance()Returns the length of the path found.int[][]getMap()Returns the map with the path and visited nodes marked.booleanisPathFound()Check if a path was found of not.
-
-
-
Method Detail
-
getMap
public int[][] getMap()
Returns the map with the path and visited nodes marked.- Returns:
- the map
-
getDistance
public float getDistance()
Returns the length of the path found.- Returns:
- the length of the path
-
isPathFound
public boolean isPathFound()
Check if a path was found of not.- Returns:
- true if a path was found and false if path was not found
-
-