org.jscience.biology
Class Cell

java.lang.Object
  extended by org.jscience.biology.Cell
All Implemented Interfaces:
java.lang.Cloneable

public class Cell
extends java.lang.Object
implements java.lang.Cloneable

A class representing a cell.


Field Summary
static int ABNORMAL_CELL
          DOCUMENT ME!
static int ANAPHASE
          DOCUMENT ME!
static int ANIMAL
          The animal constant.
static int ANTIBODY_CELL
          DOCUMENT ME!
static int BLOOD_CELL
          DOCUMENT ME!
static int CYTOKINESIS
          DOCUMENT ME!
static int GROWTH_0
          DOCUMENT ME!
static int GROWTH_1
          DOCUMENT ME!
static int GROWTH_2
          DOCUMENT ME!
static int LIVER_CELL
          DOCUMENT ME!
static int METAPHASE
          DOCUMENT ME!
static int NERVE_CELL
          DOCUMENT ME!
static int PROKARYOTE
          The prokaryote constant.
static int PROPHASE
          DOCUMENT ME!
static int SEX_CELL
          DOCUMENT ME!
static int SYNTHESIS
          DOCUMENT ME!
static int TELOPHASE
          DOCUMENT ME!
static int UNDIFFERENCIATED_CELL
          DOCUMENT ME!
static int VEGETAL
          The vegetal constant.
 
Constructor Summary
Cell(Genome genome)
          Constructs a an undifferenciated animal Cell at interphase.
Cell(Genome genome, int type, int kind, Alphabet coding)
          Creates a new Cell object.
 
Method Summary
 void addNeighbor(Cell neighbor)
          DOCUMENT ME!
 java.lang.Object clone()
          DOCUMENT ME!
 Alphabet getCoding()
          DOCUMENT ME!
 java.lang.String[] getElements()
          DOCUMENT ME!
 Genome getGenome()
          DOCUMENT ME!
 int getKind()
          DOCUMENT ME!
 java.util.Set getNeighbors()
          DOCUMENT ME!
 int getStage()
          DOCUMENT ME!
 int getType()
          DOCUMENT ME!
 boolean isEukaryote()
          returns a boolean indicating is this cell is an eukarytoe cell or a prokaryote one.
 void nextStage()
          DOCUMENT ME!
 java.util.Set provokeMeiosis()
          returns a set of cell resulting from meiosis of this cell, WITHOUT any crossover or other mutation, so the process is a bit idealized.
 java.util.Set provokeMitosis()
          returns a set of cells resulting from mitosis of this cell.
 void removeNeighbor(Cell neighbor)
          DOCUMENT ME!
 void setCoding(Alphabet coding)
          DOCUMENT ME!
 void setKind(int kind)
          DOCUMENT ME!
 void setNeighbors(java.util.Set neighbors)
          DOCUMENT ME!
 void setStage()
          DOCUMENT ME!
 void setType(int type)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROKARYOTE

public static final int PROKARYOTE
The prokaryote constant.

See Also:
Constant Field Values

ANIMAL

public static final int ANIMAL
The animal constant.

See Also:
Constant Field Values

VEGETAL

public static final int VEGETAL
The vegetal constant.

See Also:
Constant Field Values

GROWTH_0

public static final int GROWTH_0
DOCUMENT ME!

See Also:
Constant Field Values

GROWTH_1

public static final int GROWTH_1
DOCUMENT ME!

See Also:
Constant Field Values

SYNTHESIS

public static final int SYNTHESIS
DOCUMENT ME!

See Also:
Constant Field Values

GROWTH_2

public static final int GROWTH_2
DOCUMENT ME!

See Also:
Constant Field Values

PROPHASE

public static final int PROPHASE
DOCUMENT ME!

See Also:
Constant Field Values

METAPHASE

public static final int METAPHASE
DOCUMENT ME!

See Also:
Constant Field Values

ANAPHASE

public static final int ANAPHASE
DOCUMENT ME!

See Also:
Constant Field Values

TELOPHASE

public static final int TELOPHASE
DOCUMENT ME!

See Also:
Constant Field Values

CYTOKINESIS

public static final int CYTOKINESIS
DOCUMENT ME!

See Also:
Constant Field Values

UNDIFFERENCIATED_CELL

public static final int UNDIFFERENCIATED_CELL
DOCUMENT ME!

See Also:
Constant Field Values

ABNORMAL_CELL

public static final int ABNORMAL_CELL
DOCUMENT ME!

See Also:
Constant Field Values

BLOOD_CELL

public static final int BLOOD_CELL
DOCUMENT ME!

See Also:
Constant Field Values

NERVE_CELL

public static final int NERVE_CELL
DOCUMENT ME!

See Also:
Constant Field Values

LIVER_CELL

public static final int LIVER_CELL
DOCUMENT ME!

See Also:
Constant Field Values

SEX_CELL

public static final int SEX_CELL
DOCUMENT ME!

See Also:
Constant Field Values

ANTIBODY_CELL

public static final int ANTIBODY_CELL
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Cell

public Cell(Genome genome)
Constructs a an undifferenciated animal Cell at interphase.

Parameters:
genome - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Cell

public Cell(Genome genome,
            int type,
            int kind,
            Alphabet coding)
Creates a new Cell object.

Parameters:
genome - DOCUMENT ME!
type - DOCUMENT ME!
kind - DOCUMENT ME!
coding - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getGenome

public Genome getGenome()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getType

public int getType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setType

public void setType(int type)
DOCUMENT ME!

Parameters:
type - DOCUMENT ME!

getKind

public int getKind()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setKind

public void setKind(int kind)
DOCUMENT ME!

Parameters:
kind - DOCUMENT ME!

getCoding

public Alphabet getCoding()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCoding

public void setCoding(Alphabet coding)
DOCUMENT ME!

Parameters:
coding - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getStage

public int getStage()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStage

public void setStage()
DOCUMENT ME!


nextStage

public void nextStage()
DOCUMENT ME!


getNeighbors

public java.util.Set getNeighbors()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addNeighbor

public void addNeighbor(Cell neighbor)
DOCUMENT ME!

Parameters:
neighbor - ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeNeighbor

public void removeNeighbor(Cell neighbor)
DOCUMENT ME!

Parameters:
neighbor - ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

setNeighbors

public void setNeighbors(java.util.Set neighbors)
DOCUMENT ME!

Parameters:
neighbors - ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getElements

public java.lang.String[] getElements()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isEukaryote

public boolean isEukaryote()
returns a boolean indicating is this cell is an eukarytoe cell or a prokaryote one.

Returns:
DOCUMENT ME!

clone

public java.lang.Object clone()
DOCUMENT ME!

Overrides:
clone in class java.lang.Object
Returns:
DOCUMENT ME!

provokeMitosis

public java.util.Set provokeMitosis()
returns a set of cells resulting from mitosis of this cell. This cell is returned in the Set.

Returns:
DOCUMENT ME!

provokeMeiosis

public java.util.Set provokeMeiosis()
returns a set of cell resulting from meiosis of this cell, WITHOUT any crossover or other mutation, so the process is a bit idealized. This modified cell is returned in the Set. Kind is set to Sex. Please note that meiosis is suitable only for diploid organisms with sexual reproduction (genome length is dividable by two), otherwise an error is thrown. Meiosis produces gametes. These gametes should be in turn used in individual reproduction, see Specie.

Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!