|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttimertests.TestData
public class TestData
This class contains the test data for all sorting tests For each data set size: 1000, 2000, 4000, 8000, 16000 there is a sequential and random set For size 29470 there is just one complete set sequential contains a contiguous subset of the source city data random selects data at random from the source city data
Field Summary | |
---|---|
protected java.util.ArrayList<stresstests.datasets.City> |
alldata
original data set of all cities available |
protected java.util.ArrayList<DataSet<stresstests.datasets.City>> |
datasets
15 data sets for tests |
Constructor Summary | |
---|---|
protected |
TestData()
The constructor -- reading the data from the input file |
Method Summary | |
---|---|
protected void |
buildDataSets()
Effect: Construct an ArrayList datasets of
15 different sets of data to be used in sorting tests |
protected java.util.ArrayList<stresstests.datasets.City> |
buildRandomData(int size)
Produce a random dataset of the given size from original base data |
protected java.util.ArrayList<stresstests.datasets.City> |
buildSequentialData(int size)
Produce a sequential dataset of the given size from original base data |
static void |
main(java.lang.String[] argv)
Self Test |
protected void |
readData()
Create the base data set for all tests - reading the data from a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<stresstests.datasets.City> alldata
protected java.util.ArrayList<DataSet<stresstests.datasets.City>> datasets
Constructor Detail |
---|
protected TestData()
Method Detail |
---|
protected void buildDataSets()
ArrayList datasets
of
15 different sets of data to be used in sorting tests
protected void readData()
protected java.util.ArrayList<stresstests.datasets.City> buildRandomData(int size)
protected java.util.ArrayList<stresstests.datasets.City> buildSequentialData(int size)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |