Class Scenario


  • public class Scenario
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Scenario​(int[][] map, int startCol, int startRow, int endCol, int endRow, float expectedDistance)
      Represents a scenario for performance testing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getEndCol()
      Returns the column coordinate of the end node of this scenario.
      int getEndRow()
      Returns the row coordinate of the end node of this scenario.
      float getExpectedDistance()
      Returns the expected distance between the start and end nodes of this scenario.
      int[][] getMap()
      Returns the map of this scenario.
      int getStartCol()
      Returns the column coordinate of the start node of this scenario.
      int getStartRow()
      Returns the row coordinate of the start node of this scenario.
      • Methods inherited from class java.lang.Object

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

      • Scenario

        public Scenario​(int[][] map,
                        int startCol,
                        int startRow,
                        int endCol,
                        int endRow,
                        float expectedDistance)
        Represents a scenario for performance testing.
        Parameters:
        map - the map for the scenario
        startCol - the column coordinate of the start node
        startRow - the row coordinate of the start node
        endCol - the column coordinate of the end node
        endRow - the row coordinate of the end node
        expectedDistance - the expected distance of the path between start and end nodes
    • Method Detail

      • getMap

        public int[][] getMap()
        Returns the map of this scenario.
        Returns:
        the map of this scenario
      • getStartRow

        public int getStartRow()
        Returns the row coordinate of the start node of this scenario.
        Returns:
        the row coordinate of the start node
      • getStartCol

        public int getStartCol()
        Returns the column coordinate of the start node of this scenario.
        Returns:
        the column coordinate of the start node
      • getEndRow

        public int getEndRow()
        Returns the row coordinate of the end node of this scenario.
        Returns:
        the row coordinate of the end node
      • getEndCol

        public int getEndCol()
        Returns the column coordinate of the end node of this scenario.
        Returns:
        the column coordinate of the end node
      • getExpectedDistance

        public float getExpectedDistance()
        Returns the expected distance between the start and end nodes of this scenario.
        Returns:
        the expected distance between the start and end nodes of this scenario
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object