|
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<ICircle>
algs.model.data.circles.UniformGenerator
public class UniformGenerator
Generator of sample circles.
It only makes sense for the radius to be less than 1 since the origin of the circles are all created uniformly within the unit square.
| Field Summary | |
|---|---|
double |
radius
The size of each radius. |
| Constructor Summary | |
|---|---|
UniformGenerator(double radius)
Radius of the circle to be generated. |
|
| Method Summary | |
|---|---|
Generator<ICircle> |
construct(java.lang.String[] args)
Provide reflective behavior to construct instance of generator given an array of string arguments. |
TwoDCircle[] |
generate(int size)
Generate a set of uniform circles points in the range: |
java.lang.String[] |
parameters()
Declares the name of the parameters used when constructing the generator in order from left to right. |
| Methods inherited from class algs.model.data.Generator |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final double radius
| Constructor Detail |
|---|
public UniformGenerator(double radius)
radius - | Method Detail |
|---|
public java.lang.String[] parameters()
Generator
parameters in class Generator<ICircle>public Generator<ICircle> construct(java.lang.String[] args)
construct in class Generator<ICircle>public TwoDCircle[] generate(int size)
generate in class Generator<ICircle>size - The number of elements to be created.
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||