ca.cas.patterns
Class FinalPattern

java.lang.Object
  extended by ca.cas.patterns.FinalPattern

public class FinalPattern
extends java.lang.Object

Final Pattern class holds a final pattern. This is little more than a dressed up vector of FPChrom (final pattern chromosome) objects.


Constructor Summary
FinalPattern()
           
 
Method Summary
 boolean add(FPChrom chrom)
          Method to add a final pattern chromosome
 java.util.Enumeration<FPChrom> fpchroms()
          Returns an enumeration of the chromosomes.
 FPChrom getChrom(int index)
          returns the chromosome at the specified index
 FPChrom removeChrom(int index)
          remove the chromosome at the specified index.
 int size()
          returns the number of final chromosomes
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FinalPattern

public FinalPattern()
Method Detail

add

public boolean add(FPChrom chrom)
Method to add a final pattern chromosome

Parameters:
chrom - final pattern chromosome to be added
Returns:
true if added

fpchroms

public java.util.Enumeration<FPChrom> fpchroms()
Returns an enumeration of the chromosomes.

Returns:
enumeration of chromosomes

size

public int size()
returns the number of final chromosomes

Returns:
number of final chromosomes.

removeChrom

public FPChrom removeChrom(int index)
remove the chromosome at the specified index.

Parameters:
index -
Returns:
fpchromosome removed

getChrom

public FPChrom getChrom(int index)
returns the chromosome at the specified index

Parameters:
index -
Returns:
fpchrom at index

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object