timertests
Class TestData

java.lang.Object
  extended by timertests.TestData

public class TestData
extends java.lang.Object

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

Author:
Viera K. Proulx

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

alldata

protected java.util.ArrayList<stresstests.datasets.City> alldata
original data set of all cities available


datasets

protected java.util.ArrayList<DataSet<stresstests.datasets.City>> datasets
15 data sets for tests

Constructor Detail

TestData

protected TestData()
The constructor -- reading the data from the input file

Method Detail

buildDataSets

protected void buildDataSets()
Effect: Construct an ArrayList datasets of 15 different sets of data to be used in sorting tests


readData

protected void readData()
Create the base data set for all tests - reading the data from a file


buildRandomData

protected java.util.ArrayList<stresstests.datasets.City> buildRandomData(int size)
Produce a random dataset of the given size from original base data


buildSequentialData

protected java.util.ArrayList<stresstests.datasets.City> buildSequentialData(int size)
Produce a sequential dataset of the given size from original base data


main

public static void main(java.lang.String[] argv)
Self Test