org.jscience.computing.ai.agents
Class TriangularCell

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

public class TriangularCell
extends Cell

A class representing a triangular flat cell.


Field Summary
 
Fields inherited from class org.jscience.computing.ai.agents.Cell
CUBIC, HEXAGONAL, SQUARE, TRIANGULAR
 
Constructor Summary
TriangularCell(DiscreteEnvironment environment, int[] position, double side1Length, double side2Length, double side3Length)
          Creates a new TriangularCell object.
 
Method Summary
 double getSide1Length()
          DOCUMENT ME!
 double getSide2Length()
          DOCUMENT ME!
 double getSide3Length()
          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

TriangularCell

public TriangularCell(DiscreteEnvironment environment,
                      int[] position,
                      double side1Length,
                      double side2Length,
                      double side3Length)
Creates a new TriangularCell object.

Parameters:
environment - DOCUMENT ME!
position - DOCUMENT ME!
side1Length - DOCUMENT ME!
side2Length - DOCUMENT ME!
side3Length - DOCUMENT ME!
Method Detail

getSide1Length

public double getSide1Length()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSide2Length

public double getSide2Length()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSide3Length

public double getSide3Length()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSurface

public double getSurface()
DOCUMENT ME!

Returns:
DOCUMENT ME!