Package pfvisualizer.benchmark
Class Scenario
- java.lang.Object
-
- pfvisualizer.benchmark.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 booleanequals(java.lang.Object o)intgetEndCol()Returns the column coordinate of the end node of this scenario.intgetEndRow()Returns the row coordinate of the end node of this scenario.floatgetExpectedDistance()Returns the expected distance between the start and end nodes of this scenario.int[][]getMap()Returns the map of this scenario.intgetStartCol()Returns the column coordinate of the start node of this scenario.intgetStartRow()Returns the row coordinate of the start node of this scenario.
-
-
-
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 scenariostartCol- the column coordinate of the start nodestartRow- the row coordinate of the start nodeendCol- the column coordinate of the end nodeendRow- the row coordinate of the end nodeexpectedDistance- 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:
equalsin classjava.lang.Object
-
-