org.hermit.geometry.generator
Interface Generator

All Known Implementing Classes:
NuclearGenerator, RandomGenerator

public interface Generator

A generic interface to a data generating algorithm.


Method Summary
 Point[] createPoints(Region region, int num)
          Create a set of data points within the given region.
 Point[] getReferencePoints()
          Get reference points, if any, associated with the most recently generated data set.
 

Method Detail

createPoints

Point[] createPoints(Region region,
                     int num)
Create a set of data points within the given region.

Parameters:
region - The region of the plane in which the points must lie.
num - The desired number of points.
Returns:
The generated data points.

getReferencePoints

Point[] getReferencePoints()
Get reference points, if any, associated with the most recently generated data set.

Returns:
The reference points, if any, used to generate the most recent data set. null if none.