public class SubsetPermChromosome extends PermChromosome
bases, high, lowBIASED, crossoverPoints, crossoverRate, LAPLACE, length, mutationRate, soupType| Constructor and Description |
|---|
SubsetPermChromosome()
The standard constructor.
|
SubsetPermChromosome(Element c)
Creates a SubsetPermChromosome via XML.
|
SubsetPermChromosome(int length)
Constructs a chromosome of given length.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
An efficient check for equality.
|
int |
getSubSetSize()
Return subset size.
|
int |
hashCode()
An efficient hash code.
|
void |
setSubSetSize(int subSetSize)
Change subset size.
|
Element |
toXml(Element parent)
Saves the current state to XML.
|
doCrossover, doMutation, mixSoupclone, fromString, getBases, getHigh, getLow, setHigh, setLow, toStringcreate, getCrossoverPoints, getCrossoverRate, getLength, getMutationRate, getSoupType, setCrossoverPoints, setCrossoverRate, setLength, setMutationRate, setSoupTypepublic SubsetPermChromosome()
public SubsetPermChromosome(int length)
length - the number of basespublic SubsetPermChromosome(Element c)
c - an XML Chromosome elementpublic boolean equals(java.lang.Object o)
equals in class IntChromosomepublic int hashCode()
hashCode in class IntChromosomepublic int getSubSetSize()
public void setSubSetSize(int subSetSize)
throws JEvolutionException
subSetSize - The number of elements in the subset.JEvolutionException - Invalid size.public Element toXml(Element parent)
toXml in class IntChromosomeparent - the JDOM parent element