org.jscience.biology
Class Virus

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

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

A class representing a virus. Virus are not real "alive" cells. They normally do not contain DNA but RNA although this may happen. They invade cells and use them to reproduce.


Field Summary
static int INVADING
          DOCUMENT ME!
static int LEAVING
          DOCUMENT ME!
static int MOVING
          DOCUMENT ME!
static int REPRODUCING
          DOCUMENT ME!
 
Constructor Summary
Virus(Genome genome)
          Creates a new Virus object.
Virus(Genome genome, Alphabet coding)
          Creates a new Virus object.
 
Method Summary
 Virus clone()
          DOCUMENT ME!
 Alphabet getCoding()
          DOCUMENT ME!
 Disease getDisease()
          DOCUMENT ME!
 Genome getGenome()
          DOCUMENT ME!
 int getStage()
          DOCUMENT ME!
 void nextStage()
          DOCUMENT ME!
 Virus reproduce(Cell cell)
          DOCUMENT ME!
 void setDisease(Disease disease)
          DOCUMENT ME!
 void setStage(int stage)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOVING

public static final int MOVING
DOCUMENT ME!

See Also:
Constant Field Values

INVADING

public static final int INVADING
DOCUMENT ME!

See Also:
Constant Field Values

REPRODUCING

public static final int REPRODUCING
DOCUMENT ME!

See Also:
Constant Field Values

LEAVING

public static final int LEAVING
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Virus

public Virus(Genome genome)
Creates a new Virus object.

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

Virus

public Virus(Genome genome,
             Alphabet coding)
Creates a new Virus object.

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

getGenome

public Genome getGenome()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCoding

public Alphabet getCoding()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDisease

public Disease getDisease()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDisease

public void setDisease(Disease disease)
DOCUMENT ME!

Parameters:
disease - DOCUMENT ME!

getStage

public int getStage()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStage

public void setStage(int stage)
DOCUMENT ME!

Parameters:
stage - DOCUMENT ME!

nextStage

public void nextStage()
DOCUMENT ME!


clone

public Virus clone()
DOCUMENT ME!

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

reproduce

public Virus reproduce(Cell cell)
DOCUMENT ME!

Parameters:
cell - DOCUMENT ME!
Returns:
DOCUMENT ME!