public class Gene9 extends IntegerGradientGene
| Constructor and Description |
|---|
Gene9(net.richarddawkins.watchmaker.genome.Genome genome,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToGene(int summand)
Gene9 is not permitted to fall below 1, or rise above 8 (the default, for
Colour.) Monochrome sets 11 as the limit in its constructor.
|
int |
getGene9Max() |
void |
goose(net.richarddawkins.watchmaker.genome.GooseDirection direction) |
void |
setGene9Max(int max) |
void |
setValue(int newValue) |
copy, geneManipulated, getGradient, setGradientdecrementGene, getValue, incrementGene, toStringisShowPositiveSign, setShowPositiveSignpublic Gene9(net.richarddawkins.watchmaker.genome.Genome genome,
java.lang.String name)
public int getGene9Max()
public void setGene9Max(int max)
public void goose(net.richarddawkins.watchmaker.genome.GooseDirection direction)
public void addToGene(int summand)
addToGene in class net.richarddawkins.watchmaker.genome.IntegerGenesummand - the quantity to add to the gene.public void setValue(int newValue)
setValue in class net.richarddawkins.watchmaker.genome.IntegerGene