All Packages Class Hierarchy This Package Previous Next Index
Class evolution.pack.cons.ConstPackableGeneIterator
java.lang.Object
|
+----evolution.pack.cons.ConstPackableGeneIterator
- public class ConstPackableGeneIterator
- extends Object
- implements PackableGeneIterator
Used to iterate through ConstPackableGene
s
-
bitPosition
- my current position
-
geneLength
- the constant gene length
-
genePosition
- my current position
-
st
- Th genome storage I am iterating through
-
ConstPackableGeneIterator(ConstPackedGenomeStorage)
- Create myself as an iterator through the given
ConstPackedGenomeStorage
, pointing to the first gene.
-
advance()
- Go one gene further.
-
bits()
-
-
getGene()
-
st
protected ConstPackedGenomeStorage st
- Th genome storage I am iterating through
bitPosition
protected int bitPosition
- my current position
genePosition
protected int genePosition
- my current position
geneLength
protected int geneLength
- the constant gene length
ConstPackableGeneIterator
public ConstPackableGeneIterator(ConstPackedGenomeStorage s)
- Create myself as an iterator through the given
ConstPackedGenomeStorage
, pointing to the first gene.
- Parameters:
- s - the GenomeStorage I am going to iterate through
advance
public boolean advance()
- Go one gene further.
- Returns:
- whether I am still within the genome's boundaries
getGene
public PackableGene getGene() throws EvolutionException
- Returns:
- the gene I am pointing to
- Throws: EvolutionException
- if something is incorrectly initialized
bits
public Code bits() throws NilException
- Returns:
- the gene I am pointing to as a
Code
- Throws: NilException
- if the ConstPackedGenomeStorage is not initialized
All Packages Class Hierarchy This Package Previous Next Index