|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--physis.core.virtualmachine.PhysisVMTracer
A separate tool for running one virtualmachine. The execution can be monitored.
| Field Summary | |
private static int |
INFINITE_LOOP
The number of executed instructions which can be considered as inifinite loop. |
private int |
input_data_higher_bound
|
private static java.lang.String |
INPUT_DATA_HIGHER_BOUND
|
private DigitalOrganism |
org
|
private GeneticCodeTape |
orig
|
private java.util.Random |
rnd
|
private static java.lang.String |
TASK_FILE
|
private TaskLibrary |
tasklibrary
|
private PhysisVirtualMachine |
vm
|
| Constructor Summary | |
PhysisVMTracer()
|
|
| Method Summary | |
boolean |
copyShouldBeMutated()
Answers the question: Should the current copied instruction be mutated? |
boolean |
divideShouldBeMutated()
Answers the question: Should the current divided codetape be mutated? |
int |
getInputData()
This provides the input from the environment (~food). |
LifeSpace |
getLifeSpace()
|
DigitalOrganism |
getNeighbourRandomly(DigitalOrganism digorg)
Returns one organism of the neighbours of the organism specified by the parameter. |
java.util.Random |
getRandom()
The only one random-generator in one Physis-instance should be in the environment. |
TaskLibrary |
getTaskLibrary()
Returns the tasklibrary. |
void |
interactionOccured(InteractionEvent ie)
Performed when an organism interacts with its environment. |
static void |
main(java.lang.String[] args)
|
void |
proliferationPerformed(ProliferationEvent pe)
When a digital organism divides the new organism must be placed somewhere in the lifespace and the old organism's effective length should be recalculated. |
void |
rotateForward(DigitalOrganism digorg)
Rotates the organism's facing forward. |
void |
setLifeSpace(LifeSpace lifespace_)
|
boolean |
shouldBeDeleted()
Answers the question: Should the current divided codetape be deleted one instruction? |
boolean |
shouldBeInserted()
Answers the question: Should the current divided codetape be inserted extra instructions? |
private static void |
usage()
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static java.lang.String TASK_FILE
private static java.lang.String INPUT_DATA_HIGHER_BOUND
private static final int INFINITE_LOOP
private TaskLibrary tasklibrary
private java.util.Random rnd
private DigitalOrganism org
private PhysisVirtualMachine vm
private GeneticCodeTape orig
private int input_data_higher_bound
| Constructor Detail |
public PhysisVMTracer()
| Method Detail |
public static void main(java.lang.String[] args)
private static void usage()
public TaskLibrary getTaskLibrary()
getTaskLibrary in interface Environmentpublic void setLifeSpace(LifeSpace lifespace_)
setLifeSpace in interface Environmentpublic LifeSpace getLifeSpace()
getLifeSpace in interface Environmentpublic void interactionOccured(InteractionEvent ie)
InteractionEventListenerinteractionOccured in interface InteractionEventListenerpublic void proliferationPerformed(ProliferationEvent pe)
ProliferationEventListenerproliferationPerformed in interface ProliferationEventListenerpublic int getInputData()
getInputData in interface Environmentpublic void rotateForward(DigitalOrganism digorg)
rotateForward in interface Environmentpublic boolean copyShouldBeMutated()
copyShouldBeMutated in interface Environmentpublic boolean divideShouldBeMutated()
divideShouldBeMutated in interface Environmentpublic boolean shouldBeInserted()
shouldBeInserted in interface Environmentpublic boolean shouldBeDeleted()
shouldBeDeleted in interface Environmentpublic DigitalOrganism getNeighbourRandomly(DigitalOrganism digorg)
EnvironmentgetNeighbourRandomly in interface Environmentpublic java.util.Random getRandom()
EnvironmentgetRandom in interface Environment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||