Package pfvisualizer.benchmark
Class BenchmarkResults
- java.lang.Object
-
- pfvisualizer.benchmark.BenchmarkResults
-
public class BenchmarkResults extends java.lang.ObjectRepresents the result of a benchmark executed by ScenarioRunner.
-
-
Constructor Summary
Constructors Constructor Description BenchmarkResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<double[][]>getData()Returns an array of value pairs for each path-finding algorithm.java.util.List<java.lang.Double>getTotals()Returns a list of total median times for each path-finding algorithm.
-
-
-
Method Detail
-
getData
public java.util.List<double[][]> getData()
Returns an array of value pairs for each path-finding algorithm. The first array contains the value pairs for Dijkstra, the second array contains the value pairs for A* and the third array contains the value pairs for JPS. The first value of a value pair is the length of the optimal path and the second value is the running time of the algorithm.- Returns:
- an array of x and y coordinate pairs for each path-finding algorithm
-
getTotals
public java.util.List<java.lang.Double> getTotals()
Returns a list of total median times for each path-finding algorithm. The first value is the total median time for Dijkstra's algorithm, the second value is the total median time for A* and the third value is the total median time for JPS.- Returns:
- a list of total median times
-
-