uk.ac.nott.cs.g54dia.library
Class DefaultCellFactory

java.lang.Object
  extended by uk.ac.nott.cs.g54dia.library.DefaultCellFactory
All Implemented Interfaces:
CellFactory

public class DefaultCellFactory
extends java.lang.Object
implements CellFactory

A default CellFactory which populates the environment with stations and wells.


Field Summary
(package private) static double DEFAULT_STATION_DENSITY
          Default well density.
(package private) static double DEFAULT_WELL_DENSITY
           
 
Constructor Summary
DefaultCellFactory()
          Create a DefaultCellFactory.
 
Method Summary
 void generateCell(Environment env, Point pos)
          Create new cells and wells in the environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STATION_DENSITY

static final double DEFAULT_STATION_DENSITY
Default well density.

See Also:
Constant Field Values

DEFAULT_WELL_DENSITY

static final double DEFAULT_WELL_DENSITY
See Also:
Constant Field Values
Constructor Detail

DefaultCellFactory

public DefaultCellFactory()
Create a DefaultCellFactory.

Method Detail

generateCell

public void generateCell(Environment env,
                         Point pos)
Create new cells and wells in the environment.

Specified by:
generateCell in interface CellFactory
Parameters:
env - environment to which the cell is to be added
pos - position of the new cell