|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalgs.model.data.Generator<E>
E
- the type of entity being generated.public abstract class Generator<E>
Generator of a fixed number of elements.
Constructor Summary | |
---|---|
Generator()
|
Method Summary | |
---|---|
abstract Generator<E> |
construct(java.lang.String[] args)
Given the string arguments, construct the desired generator as specified by the appropriate sub-class. |
abstract E[] |
generate(int size)
Generate a set of elements according to specialized criteria defined by the subclass. |
abstract java.lang.String[] |
parameters()
Declares the name of the parameters used when constructing the generator in order from left to right. |
java.lang.String |
toString()
Respond with the name of the appropriate subclass. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Generator()
Method Detail |
---|
public abstract E[] generate(int size)
There is no guarantee that the elements are unique.
size
- The number of elements to be created.public abstract Generator<E> construct(java.lang.String[] args)
args
- public abstract java.lang.String[] parameters()
public java.lang.String toString()
toString
in class java.lang.Object
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |