Class Cell
java.lang.Object
org.woehlke.computer.kurzweil.tabs.simulatedevolution.model.Cell
public class Cell
extends java.lang.Object
The Cell of one Bacterium.
It's state is position, orientation and LifeCycle.
The Cell has a CellCore with the DNA Genome for Moving around.
- Author:
- Thomas Woehlke Date: 04.02.2006 Time: 19:06:43
- See Also:
CellCore
,LifeCycle
,2006 - 2008 Thomas Woehlke. http://thomas-woehlke.de/p/simulated-evolution/
-
Constructor Summary
Constructors Constructor Description Cell(WorldPoint max, WorldPoint position, java.util.Random random)
-
Method Summary
Modifier and Type Method Description boolean
died()
void
eat(int food)
Eat the available Food in this PositionLifeCycleStatus
getLifeCycleStatus()
WorldPoint
getPosition()
boolean
isPregnant()
void
move()
The Cell moves on the Step in a Direction choosen by Random and DNA.Cell
performReproductionByCellDivision()
After performing Reproduction by Cell Division this Cell is one of the two Children this Method returns the other Child.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Cell
-
-
Method Details
-
move
public void move()The Cell moves on the Step in a Direction choosen by Random and DNA. -
performReproductionByCellDivision
After performing Reproduction by Cell Division this Cell is one of the two Children this Method returns the other Child.- Returns:
- the other Child
- See Also:
CellCore.performMitosis()
-
getPosition
- Returns:
- The new Position after the last move.
-
isPregnant
public boolean isPregnant()- Returns:
- true, if this Cell is able to perform Reproduction by Cell Division
-
eat
public void eat(int food)Eat the available Food in this Position- Parameters:
food
- the available Food in this Position
-
died
public boolean died()- Returns:
- true, if this Cell died of hunger
-
getLifeCycleStatus
- Returns:
- the LifeCycleStatus of this Cell
-