| java.lang.Object bak.pcj.benchmark.DataSet
All known Subclasses: bak.pcj.benchmark.DataSetShuffledCompact, bak.pcj.benchmark.DataSetOrderedCompact,
DataSet | abstract public class DataSet (Code) | | This class represents data sets for benchmarks. A data set contains
three lists of equal length. Each list has only distinct values
and the lists are all disjoint.
author: Søren Bak version: 1.0 2003/5/1 since: 1.0 |
Constructor Summary | |
protected | DataSet(String id, int size) Creates a new data set with a specified id and size.
Parameters: id - the identifier of the new data set. |
Method Summary | |
abstract protected int[] | createList(int n, int size) Creates the list with the specified number.
Parameters: n - the number of the list to create (0-2). Parameters: size - the size of the list to create. | public int[] | get(int n) Returns a specified list of this data set. | public String | getId() Returns an identifier for this data set. | public Integer[] | getObjects(int n) Returns a specified list of this data set as objects. |
DataSet | protected DataSet(String id, int size)(Code) | | Creates a new data set with a specified id and size.
Parameters: id - the identifier of the new data set. Only used forformatting a report. Parameters: size - the size of the lists in the new data set. throws: NullPointerException - if id is null. throws: IllegalArgumentException - if size is not positive. |
createList | abstract protected int[] createList(int n, int size)(Code) | | Creates the list with the specified number.
Parameters: n - the number of the list to create (0-2). Parameters: size - the size of the list to create. data list number n with size size. |
get | public int[] get(int n)(Code) | | Returns a specified list of this data set.
Parameters: n - the index of the list to return. throws: IndexOutOfBoundsException - if n is negative or greater than 2. |
getId | public String getId()(Code) | | Returns an identifier for this data set.
an identifier for this data set. |
getObjects | public Integer[] getObjects(int n)(Code) | | Returns a specified list of this data set as objects.
Parameters: n - the index of the list to return. throws: IndexOutOfBoundsException - if n is negative or greater than 2. |
|
|