|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--physis.core.virtualmachine.VirtualMachine
|
+--physis.core.virtualmachine.PhysisVirtualMachine
This is the base class for all virtualmachines which are implemented in Physis. This class should contain some "biological" fields and operations.
| Field Summary | |
protected GeneticCodeTape |
alien
This is another codetape for alien genomes. |
protected DigitalOrganism |
bearer
It's a backreference to the bearer digtal organism. |
protected static short |
blank
The blank instruction. |
protected int |
counter
counts the instructions between creating childs |
protected int |
gestation_time
Time (in executed instructions) needed to create a child. |
protected static int |
GESTATION_TIME_INVALID
This value shows that the VM hasn't executed a succesfull divide operation yet. |
protected GeneticCodeTape |
tape
This codetape contains the organism's genetic code. |
| Constructor Summary | |
PhysisVirtualMachine()
|
|
| Method Summary | |
DigitalOrganism |
getBearer()
Returns the bearer organism. |
int |
getEffectiveLength()
Gives the number of copied or executed instructions. |
abstract Genome |
getGenome()
Returns the genetic information. |
abstract int |
getGenomeSize()
Returns the size of the genome. |
int |
getGestationTime()
Gives the number of instructions that was needed last time to yield a new organism. |
void |
loadCodeTape(GeneticCodeTape ct)
Loads the codetape into the VM. |
abstract void |
restart()
This should be called after successfull proliferation. |
void |
setBearer(DigitalOrganism bearer_)
Sets the bearer organism of the VM. |
| Methods inherited from class physis.core.virtualmachine.VirtualMachine |
execute, execute, getState, reset |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static final short blank
protected GeneticCodeTape tape
protected GeneticCodeTape alien
protected DigitalOrganism bearer
protected static final int GESTATION_TIME_INVALID
protected int gestation_time
protected int counter
| Constructor Detail |
public PhysisVirtualMachine()
| Method Detail |
public int getGestationTime()
public abstract Genome getGenome()
public abstract int getGenomeSize()
public int getEffectiveLength()
public abstract void restart()
public void loadCodeTape(GeneticCodeTape ct)
public void setBearer(DigitalOrganism bearer_)
public DigitalOrganism getBearer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||