Ignore:
Timestamp:
06/30/14 08:51:09 (10 years ago)
Author:
rkrimmel
Message:

Adding simple smith waterman and changing alignment algorithm creation to factory pattern

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/BinaryAlignmentStorage.java

    r1585 r1586  
    22 
    33 
    4 import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.SmithWatermanRepeated; 
     4import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentAlgorithm; 
    55 
    66public class BinaryAlignmentStorage { 
    77 
    8     private SmithWatermanRepeated[][] alignments; 
     8    private AlignmentAlgorithm[][] alignments; 
    99    UPGMAMatrix sequenceDistances; 
    1010    
    1111    public BinaryAlignmentStorage(int sizex, int sizey) { 
    12         alignments = new SmithWatermanRepeated[sizex+1][sizey+1]; 
     12        alignments = new AlignmentAlgorithm[sizex+1][sizey+1]; 
    1313        sequenceDistances = new UPGMAMatrix(Math.max(sizex,sizey)); 
    1414        sequenceDistances.initialize(Double.POSITIVE_INFINITY); 
    1515    } 
    1616     
    17     public void set(int i,int j,SmithWatermanRepeated sw) { 
     17    public void set(int i,int j,AlignmentAlgorithm sw) { 
    1818        alignments[i][j] = sw; 
    1919    } 
    2020     
    21     public SmithWatermanRepeated get(int i,int j) { 
     21    public AlignmentAlgorithm get(int i,int j) { 
    2222        return alignments[i][j]; 
    2323    } 
Note: See TracChangeset for help on using the changeset viewer.