timertests
Class Result

java.lang.Object
  extended by timertests.Result

public class Result
extends java.lang.Object

To represent the result of one run of the timer tests

Author:
Viera K. Proulx

Field Summary
protected  java.lang.String algoName
          the name of the algorithm that generated the timing data
protected  java.lang.String compName
          the name of the Comparator that was used to sort data
protected  long runtime
          the measured runtime (of the given algorithm on the given dataset of the given size with the given comparator)
protected  int size
          the size of the dataset that was sorted
protected  java.lang.String type
          the organization of the dataset: sequential or random
 
Constructor Summary
protected Result(int size, java.lang.String type, java.lang.String algoName, java.lang.String compName, long runtime)
          The full constructor
 
Method Summary
static void main(java.lang.String[] argv)
          Self Test
 java.lang.String toString()
          Represent the result as a well formatted string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

size

protected int size
the size of the dataset that was sorted


type

protected java.lang.String type
the organization of the dataset: sequential or random


algoName

protected java.lang.String algoName
the name of the algorithm that generated the timing data


compName

protected java.lang.String compName
the name of the Comparator that was used to sort data


runtime

protected long runtime
the measured runtime (of the given algorithm on the given dataset of the given size with the given comparator)

Constructor Detail

Result

protected Result(int size,
                 java.lang.String type,
                 java.lang.String algoName,
                 java.lang.String compName,
                 long runtime)
The full constructor

Parameters:
size - the size of the dataset that was sorted
type - the organization of the dataset: sequential or random
algoName - the name of the algorithm that generated the timing data
compName - the name of the Comparator that was used to sort data
runtime - the measured runtime (of the given algorithm on the given dataset of the given size with the given comparator)
Method Detail

toString

public java.lang.String toString()
Represent the result as a well formatted string

Overrides:
toString in class java.lang.Object

main

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