A C D E F G I M N P R U W X Y

A

act() - Method in class critter.Critter
The control function.
addCritter(Critter) - Method in class critter.World
Adds a critter to the world, position and direction are randomly chosen
addCritter(Critter, int, int, int, int) - Method in class critter.World
Adds a critter to a specified position in the world and with a specified direction

C

clicked(int, int) - Method in class critter.PanelWorld
 
code - Variable in class critter.Genome
 
critter - package critter
 
Critter - class critter.Critter.
 
Critter(Critter, Critter) - Constructor for class critter.Critter
Constructs a new critter from two parent critters For each neuron wiring, it takes one of the parents' wiring.
Critter(long) - Constructor for class critter.Critter
Constructs a new critter Initializes the "brain".
CritterApplet - class critter.CritterApplet.
 
CritterApplet() - Constructor for class critter.CritterApplet
 
CritterFrame - class critter.CritterFrame.
 
CritterFrame() - Constructor for class critter.CritterFrame
 
CritterSim - class critter.CritterSim.
 
CritterSim() - Constructor for class critter.CritterSim
 
crossoverPoint() - Method in class critter.Genome
Helper function that calculates a suitable point for crossover

D

dir_x - Variable in class critter.Critter
 
dir_y - Variable in class critter.Critter
 
DIRECTION_X - Static variable in class critter.Critter
 
DIRECTION_Y - Static variable in class critter.Critter
 

E

eat() - Method in class critter.Critter
The function which is called whenever the critter finds food, increases energy level (and lifetime).
empty(int, int) - Method in class critter.World
true if the position is empty (no obstacle, food or critter
energy - Variable in class critter.Critter
 

F

fitness() - Method in class critter.Critter
The fitness/objective function

G

Genome - class critter.Genome.
 
Genome(Genome, Genome, int) - Constructor for class critter.Genome
Constructor for a new genome based on two parents.
Genome(int, int, long) - Constructor for class critter.Genome
Constructor for generating a new random genome
getAppletInfo() - Method in class critter.CritterApplet
 
getParameter(String, String) - Method in class critter.CritterApplet
 
getParameterInfo() - Method in class critter.CritterApplet
 

I

init() - Method in class critter.CritterApplet
 
init(double, double) - Method in class critter.World
populates the world with food and obstacles

M

main(String[]) - Static method in class critter.CritterSim
 
mutate(double) - Method in class critter.Critter
Mutate the critters neuron wires by a probability
mutate(double) - Method in class critter.Genome
Randomly changes bits in the genetic code.
MySim - class critter.MySim.
 
MySim() - Constructor for class critter.MySim
Constructs a simulation by initializing a world.
myWorld - Variable in class critter.MySim
 

N

nAlpha - Variable in class critter.Genome
 
newGeneration() - Method in class critter.MySim
Creates a new population of critters.

P

paintComponent(Graphics) - Method in class critter.PanelWorld
 
PanelWorld - class critter.PanelWorld.
 
PanelWorld() - Constructor for class critter.PanelWorld
 
PanelWorld(World) - Constructor for class critter.PanelWorld
 
peek(int, int) - Method in class critter.World
Retrieves the object found in a particular position on the grid
percept(int[]) - Method in class critter.Critter
The function which is called whenever the critter needs to update its senses.
print() - Method in class critter.Critter
Helper function to print out details of a critter.
processWindowEvent(WindowEvent) - Method in class critter.CritterFrame
 

R

rand - Variable in class critter.Genome
 

U

updateGeneration() - Method in class critter.MySim
Is called for updating the simulation details when the "Step generation" has been pressed.
updateMoves() - Method in class critter.World
Each critter's act method is called and executed in the world.
updateSenses() - Method in class critter.World
Updates the state of all critters, has complete control over signals (the way the world gives rise to sensor readings).
updateTimestep() - Method in class critter.MySim
Is called for updating the simulation details when the "Step timestep" has been pressed.
useSimulation(MySim) - Method in class critter.PanelWorld
 
useWorld(World) - Method in class critter.PanelWorld
 

W

world - Variable in class critter.PanelWorld
 
World - class critter.World.
 
World(int, int, long) - Constructor for class critter.World
Constructs the world of a given size

X

x - Variable in class critter.Critter
 

Y

y - Variable in class critter.Critter
 

A C D E F G I M N P R U W X Y