public class ComplexMutater extends Mutater
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Choice |
choice |
protected static java.lang.String |
label |
protected boolean |
modifyAll |
protected java.awt.Label |
mutateLabel |
protected java.awt.Panel |
panel |
protected java.awt.Scrollbar |
scrollbar |
| Constructor and Description |
|---|
ComplexMutater() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLabel() |
java.awt.Panel |
getPanel()
This class incoproates a visual editor to change the amount of each mutation,
the returned awt panel can be put into a visible componenet to allow GUI editing
of the mutation amounts.
|
Phrase[] |
mutate(Phrase[] population,
double initialLength,
int initialSize,
int beatsPerBar) |
void |
setModifyAll(boolean val) |
protected static java.lang.String label
protected java.awt.Panel panel
protected java.awt.Choice choice
protected java.awt.Scrollbar scrollbar
protected java.awt.Label mutateLabel
protected boolean modifyAll
public Phrase[] mutate(Phrase[] population, double initialLength, int initialSize, int beatsPerBar)
public java.awt.Panel getPanel()
getPanel in class GAComponentpublic java.lang.String getLabel()
getLabel in class GAComponentpublic void setModifyAll(boolean val)