|
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<IPoint>
algs.model.data.points.VerticalLineGenerator
public class VerticalLineGenerator
Generate a set of points that all exist on a vertical line (99,y) where y is an integer greater than 0.
| Field Summary | |
|---|---|
double |
xValue
x Coordinate of generated points. |
| Constructor Summary | |
|---|---|
VerticalLineGenerator(double xValue)
Generator for points along a vertical line. |
|
| Method Summary | |
|---|---|
Generator<IPoint> |
construct(java.lang.String[] args)
Provide reflective behavior to construct instance of generator given an array of string arguments. |
TwoDPoint[] |
generate(int size)
Generate a set of |size| points all along a vertical line |
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 xValue
| Constructor Detail |
|---|
public VerticalLineGenerator(double xValue)
xValue - | Method Detail |
|---|
public java.lang.String[] parameters()
Generator
parameters in class Generator<IPoint>public Generator<IPoint> construct(java.lang.String[] args)
construct in class Generator<IPoint>public TwoDPoint[] generate(int size)
All y-coordinates are integer multiples of 10.
generate in class Generator<IPoint>size - Number of points to generate.
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||