|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttimertests.DataSet<T>
class DataSet<T>
Field Summary | |
---|---|
protected java.util.ArrayList<T> |
data
the actual (city) data |
protected int |
size
the actual size of the data set |
protected java.lang.String |
type
sequential or random data organization |
Constructor Summary | |
---|---|
protected |
DataSet(int size,
java.lang.String type)
The constructor that reserves the desired space and records how the dataset will be constructed |
protected |
DataSet(java.lang.String type,
java.util.ArrayList<T> data)
The constructor that uses for its data the given ArrayList and records
how the dataset has been be constructed |
Method Summary | |
---|---|
protected void |
add(T city)
Add the given (city) data to this data set |
protected stresstests.interfaces.Traversal<T> |
getTraversal()
Provide an iterator for this data set |
static void |
main(java.lang.String[] argv)
Self Test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
protected java.lang.String type
protected java.util.ArrayList<T> data
Constructor Detail |
---|
protected DataSet(int size, java.lang.String type)
size
- the designated size of the datasettype
- dataset organization: sequential or randomprotected DataSet(java.lang.String type, java.util.ArrayList<T> data)
ArrayList
and records
how the dataset has been be constructed
type
- dataset organization: sequential or randomdata
- the ArrayList
that will be this datasetMethod Detail |
---|
protected void add(T city)
city
- the data to addprotected stresstests.interfaces.Traversal<T> getTraversal()
Traversal
for this datasetpublic static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |