public class IntegerGene1To100 extends IntegerGene
Constructor and Description |
---|
IntegerGene1To100(Genome genome,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addToGene(int summand)
Add a quantity to the gene.
|
void |
decrementGene() |
void |
incrementGene() |
void |
setValue(int newValue) |
copy, geneManipulated, genomicallyEquals, getValue, readIndexedValueFromByteBuffer, toString, writeIndexedValueToByteBuffer
isShowPositiveSign, setShowPositiveSign
addPropertyChangeListener, getDoubleGooseSize, getGenome, getGooseSize, getName, kill, readValueFromByteBuffer, removePropertyChangeListener, setGenome, setName, writeValueToByteBuffer
public IntegerGene1To100(Genome genome, java.lang.String name)
public void incrementGene()
incrementGene
in class IntegerGene
public void decrementGene()
decrementGene
in class IntegerGene
public void addToGene(int summand)
addToGene
in class IntegerGene
summand
- the quantity to add to the gene.public void setValue(int newValue)
setValue
in class IntegerGene