Class BenchmarkResults


  • public class BenchmarkResults
    extends java.lang.Object
    Represents the result of a benchmark executed by ScenarioRunner.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BenchmarkResults

        public BenchmarkResults()
    • 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