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 ConstPackableGenes


Variable Index

 o bitPosition
my current position
 o geneLength
the constant gene length
 o genePosition
my current position
 o st
Th genome storage I am iterating through

Constructor Index

 o ConstPackableGeneIterator(ConstPackedGenomeStorage)
Create myself as an iterator through the given ConstPackedGenomeStorage, pointing to the first gene.

Method Index

 o advance()
Go one gene further.
 o bits()
 o getGene()

Variables

 o st
 protected ConstPackedGenomeStorage st
Th genome storage I am iterating through

 o bitPosition
 protected int bitPosition
my current position

 o genePosition
 protected int genePosition
my current position

 o geneLength
 protected int geneLength
the constant gene length

Constructors

 o 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

Methods

 o advance
 public boolean advance()
Go one gene further.

Returns:
whether I am still within the genome's boundaries
 o getGene
 public PackableGene getGene() throws EvolutionException
Returns:
the gene I am pointing to
Throws: EvolutionException
if something is incorrectly initialized
 o 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