Package pl.put.poznan.transformer.logic
Class Measurer
- java.lang.Object
-
- pl.put.poznan.transformer.logic.Measurer
-
public class Measurer extends Object
Measuring class for managing and obtaining results of sorting runs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Result>measure(Cell[][] data, int column, List<String> names)Deprecated.List<Result>measure(Cell[][] data, int column, List<String> names, int maxIter, SortAlgorithm.Order order)Method for running tests for different sorting algorithms.
-
-
-
Method Detail
-
measure
public List<Result> measure(Cell[][] data, int column, List<String> names)
Deprecated.A shorthand for the full definition ofmeasure(Cell[][], int, List, int, Order). Used for testing and debugging.
-
measure
public List<Result> measure(Cell[][] data, int column, List<String> names, int maxIter, SortAlgorithm.Order order)
Method for running tests for different sorting algorithms. Runs a test for eachnamesupplied. Possible names are"bubble","insertion","binaryInsertion","selection","merge","quick","counting".- Parameters:
data- a 2-D array of typeCellto be sorted.column- the index of the column which will be the sorting criteria.names- aListof typeStringcontaining names of algorithms to be run and measured.maxIter- maximum number of iterations. Value of-1means unlimited iterations,<-1means none.order- an enum Order (fromSortAlgorithm) value determining the sorting direction.- Returns:
- a
Listof typeResultholding information about the sorting runs.
-
-