org.jscience.computing.ai.agents
Class SquareCell

java.lang.Object
  extended by org.jscience.computing.ai.agents.Cell
      extended by org.jscience.computing.ai.agents.SquareCell

public class SquareCell
extends Cell

A class representing a square flat cell.


Field Summary
 
Fields inherited from class org.jscience.computing.ai.agents.Cell
CUBIC, HEXAGONAL, SQUARE, TRIANGULAR
 
Constructor Summary
SquareCell(DiscreteEnvironment environment, int[] position, double size)
          Creates a new SquareCell object.
 
Method Summary
 double getSize()
          DOCUMENT ME!
 double getSurface()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.computing.ai.agents.Cell
getContents, getEnvironment, getNeighborCells, getPosition, setContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquareCell

public SquareCell(DiscreteEnvironment environment,
                  int[] position,
                  double size)
Creates a new SquareCell object.

Parameters:
environment - DOCUMENT ME!
position - DOCUMENT ME!
size - DOCUMENT ME!
Method Detail

getSize

public double getSize()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSurface

public double getSurface()
DOCUMENT ME!

Returns:
DOCUMENT ME!