Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
D
E
F
G
M
N
P
R
S
C
createPopulation(int)
- Method in class
GeneticFrame
Creates a random population of
n
size.
D
display()
- Method in class
Member
Returns a binary representation of the member's attributes.
E
EntryPanel
- class
EntryPanel
.
EntryPanel(GeneticFrame)
- Constructor for class
EntryPanel
Creates a panel with labels, buttons, and text boxes for user input.
F
fitness()
- Method in class
Member
Calculates the fitness of the member.
FitnessPanel
- class
FitnessPanel
.
FitnessPanel(GeneticFrame)
- Constructor for class
FitnessPanel
Creates a panel which displays values about the current population.
G
Genetic
- class
Genetic
.
Genetic()
- Constructor for class
Genetic
GeneticFrame
- class
GeneticFrame
.
GeneticFrame()
- Constructor for class
GeneticFrame
Set the frame in the middle of the screen.
GeneticPanel
- class
GeneticPanel
.
GeneticPanel(GeneticFrame)
- Constructor for class
GeneticPanel
Creates a panel which displays the user-specified values.
getAttributes()
- Method in class
Member
Returns the boolean attributes of the member.
getCrossoverRate()
- Method in class
GeneticFrame
Returns the crossover rate.
getFitnessThreshold()
- Method in class
GeneticFrame
Returns the fitness threshold.
getMutationRate()
- Method in class
GeneticFrame
Returns the mutation rate.
getNumGenerations()
- Method in class
GeneticFrame
Returns the number of generations it took to find a member which had a fitness greater thatn or equal to the fitness threshold..
getNumMembers()
- Method in class
GeneticFrame
Returns the number of members.
getPopFitness()
- Method in class
GeneticFrame
Returns the average population fitness.
getProbability()
- Method in class
Member
Returns the probability of the member.
getStrongestMember()
- Method in class
GeneticFrame
Returns the strongest member.
getStrongFit()
- Method in class
GeneticFrame
Returns the fitness of the strongest member.
M
main(String[])
- Static method in class
Genetic
Member
- class
Member
.
Member()
- Method in class
Member
Creates the member.
Member()
- Constructor for class
Member
mutate()
- Method in class
Member
Mutates the member by randomly toggling one of its attributes.
N
NUM_OF_ATTRIBUTES
- Static variable in class
Member
The number of attributes each member has.
P
paintComponent(Graphics)
- Method in class
EntryPanel
This method is invoked each time the panel has to be repainted.
paintComponent(Graphics)
- Method in class
FitnessPanel
This method is invoked each time the panel has to be repainted.
paintComponent(Graphics)
- Method in class
GeneticPanel
This method is invoked each time the panel has to be repainted.
paintComponent(Graphics)
- Method in class
ResultPanel
This method is invoked each time the panel has to be repainted.
R
ResultPanel
- class
ResultPanel
.
ResultPanel(GeneticFrame)
- Constructor for class
ResultPanel
Creates a panel which displays the final results about the current population.
runGenerations()
- Method in class
GeneticFrame
Evolves the population by computing new generations using the Select, Crossover, and Mutation methods.
S
setAttributeAt(int, boolean)
- Method in class
Member
Sets the boolean attributes
i
of the member to
b
.
setAttributes()
- Method in class
Member
Randomly selects a boolean value for the member.
setCrossoverRate(int)
- Method in class
GeneticFrame
Sets the crossover rate.
setFitnessThreshold(int)
- Method in class
GeneticFrame
Sets the fitness threshold.
setMutationRate(int)
- Method in class
GeneticFrame
Sets the mutation rate.
setProbability(double)
- Method in class
Member
Sets the probability associated with the member.
C
D
E
F
G
M
N
P
R
S
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes