protected class GeneticSearch.GABitSet extends Object implements Cloneable, Serializable, RevisionHandler
Constructor and Description |
---|
GABitSet()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear(int bit)
unset a bit in the chromosome
|
Object |
clone()
makes a copy of this GABitSet
|
boolean |
get(int bit)
get the value of a bit in the chromosome
|
BitSet |
getChromosome()
get the chromosome
|
double |
getFitness()
gets the scaled fitness
|
double |
getObjective()
gets the objective merit
|
String |
getRevision()
Returns the revision string.
|
void |
set(int bit)
set a bit in the chromosome
|
void |
setChromosome(BitSet c)
set the chromosome
|
void |
setFitness(double fitness)
sets the scaled fitness
|
void |
setObjective(double objective)
sets the objective merit value
|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if something goes wrongpublic void setObjective(double objective)
objective
- the objective value of this population memberpublic double getObjective()
public void setFitness(double fitness)
fitness
- the scaled fitness of this population memberpublic double getFitness()
public BitSet getChromosome()
public void setChromosome(BitSet c)
c
- the chromosome to be set for this population memberpublic void clear(int bit)
bit
- the bit to be clearedpublic void set(int bit)
bit
- the bit to be setpublic boolean get(int bit)
bit
- the bit to querypublic String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.