|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.benchmark.DataSet
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.
| Constructor Summary | |
protected |
DataSet(String id,
int size)
Creates a new data set with a specified id and size. |
| Method Summary | |
protected abstract int[] |
createList(int n,
int size)
Creates the list with the specified number. |
int[] |
get(int n)
Returns a specified list of this data set. |
String |
getId()
Returns an identifier for this data set. |
Integer[] |
getObjects(int n)
Returns a specified list of this data set as objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DataSet(String id,
int size)
id - the identifier of the new data set. Only used for
formatting a report.size - the size of the lists in the new data set.
NullPointerException - if id is null.
IllegalArgumentException - if size is not positive.| Method Detail |
public int[] get(int n)
n - the index of the list to return.
IndexOutOfBoundsException - if n is negative or greater than 2.public Integer[] getObjects(int n)
n - the index of the list to return.
IndexOutOfBoundsException - if n is negative or greater than 2.public String getId()
protected abstract int[] createList(int n,
int size)
n - the number of the list to create (0-2).size - the size of the list to create.
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||