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/temporalrelation/SequenceForTaskDetectionRuleAlignment.java

    r1585 r1586  
    2626import java.util.logging.Level; 
    2727 
     28import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentAlgorithm; 
     29import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentAlgorithmFactory; 
    2830import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.NumberSequence; 
    2931import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.SmithWatermanRepeated; 
     
    170172                                        int smithWatermanThreshold = 10; 
    171173 
    172                                         alignments.set(i, j,new SmithWatermanRepeated( 
     174                                        alignments.set(i, j,AlignmentAlgorithmFactory.create( 
    173175                                                        ns1.getSequence(), ns2.getSequence(), submat, 
    174176                                                        smithWatermanThreshold)); 
    175                                         SmithWatermanRepeated sameSequence1 = new SmithWatermanRepeated( 
     177                                        AlignmentAlgorithm sameSequence1 = AlignmentAlgorithmFactory.create( 
    176178                                                        ns1.getSequence(), ns1.getSequence(), submat, 
    177179                                                        smithWatermanThreshold); 
    178                                         SmithWatermanRepeated sameSequence2 = new SmithWatermanRepeated( 
     180                                        AlignmentAlgorithm sameSequence2 = AlignmentAlgorithmFactory.create( 
    179181                                                        ns2.getSequence(), ns2.getSequence(), submat, 
    180182                                                        smithWatermanThreshold); 
    181                                         SmithWatermanRepeated randomSequence = new SmithWatermanRepeated( 
     183                                        AlignmentAlgorithm randomSequence = AlignmentAlgorithmFactory.create( 
    182184                                                        ns1.shuffle().getSequence(),ns2.shuffle().getSequence(),submat,smithWatermanThreshold); 
    183185                                         
Note: See TracChangeset for help on using the changeset viewer.