|
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<IMultiPoint>
algs.model.data.nd.ConvertToND
public class ConvertToND
Wrapper generator that converts IPoint arrays into IMultiPoint object arrays.
Useful to enable IPoint generators to be reused for KD tree examples.
Constructor Summary | |
---|---|
ConvertToND(Generator<IPoint> pointGen)
|
Method Summary | |
---|---|
Generator<IMultiPoint> |
construct(java.lang.String[] args)
Provide reflective behavior to construct instance of generator given an array of string arguments. |
static IMultiPoint[] |
convert(IPoint[] pts)
Utility function to construct an IMultiPoint[] array from an IPoint[] array. |
IMultiPoint[] |
generate(int size)
Invoke inner generator and convert all to IMultiPoint. |
java.lang.String[] |
parameters()
Parameters for wrappeer are derived from inner generator. |
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 |
Constructor Detail |
---|
public ConvertToND(Generator<IPoint> pointGen)
Method Detail |
---|
public java.lang.String[] parameters()
parameters
in class Generator<IMultiPoint>
public Generator<IMultiPoint> construct(java.lang.String[] args)
construct
in class Generator<IMultiPoint>
public static IMultiPoint[] convert(IPoint[] pts)
pts
- public IMultiPoint[] generate(int size)
generate
in class Generator<IMultiPoint>
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 |