Ignore:
Timestamp:
09/05/14 20:20:29 (10 years ago)
Author:
rkrimmel
Message:

Added automatically created javadoc, still needs to be commented properly though

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/SmithWatermanRepeated.java

    r1733 r1734  
     1/* 
     2 *  
     3 */ 
    14package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 
    25 
     
    811import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.Constants; 
    912 
     13// TODO: Auto-generated Javadoc 
     14/** 
     15 * The Class SmithWatermanRepeated. 
     16 */ 
    1017public class SmithWatermanRepeated implements AlignmentAlgorithm { 
    1118 
    12         /** 
    13          * The first input 
    14          */ 
     19        /** The first input. */ 
    1520        private int[] input1; 
    1621 
    17         /** 
    18          * The second input String 
    19          */ 
     22        /** The second input String. */ 
    2023        private int[] input2; 
    2124 
    22         /** 
    23          * The lengths of the input 
    24          */ 
     25        /** The lengths of the input. */ 
    2526        private int length1, length2; 
    2627 
     
    3132        private MatrixEntry[][] matrix; 
    3233 
     34        /** The alignment. */ 
    3335        private ArrayList<NumberSequence> alignment; 
    3436 
     37        /** The score threshold. */ 
    3538        private float scoreThreshold; 
    3639 
    37         /** 
    38          * Substitution matrix to calculate scores 
    39          */ 
     40        /** Substitution matrix to calculate scores. */ 
    4041        private SubstitutionMatrix submat; 
    4142 
     43        /** 
     44         * Instantiates a new smith waterman repeated. 
     45         */ 
    4246        public SmithWatermanRepeated() { 
    4347 
    4448        } 
    4549 
     50        /* (non-Javadoc) 
     51         * @see de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentAlgorithm#align(de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.NumberSequence, de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.NumberSequence, de.ugoe.cs.autoquest.tasktrees.alignment.matrix.SubstitutionMatrix, float) 
     52         */ 
    4653        @Override 
    4754        public void align(NumberSequence input1, NumberSequence input2, 
     
    219226        } 
    220227 
     228        /* (non-Javadoc) 
     229         * @see de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentAlgorithm#getMatches() 
     230         */ 
    221231        @Override 
    222232        public ArrayList<Match> getMatches() { 
     
    265275        /** 
    266276         * Get the maximum value in the score matrix. 
     277         * 
     278         * @return the max score 
    267279         */ 
    268280        @Override 
     
    282294        } 
    283295 
     296        /* (non-Javadoc) 
     297         * @see de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentAlgorithm#printAlignment() 
     298         */ 
    284299        @Override 
    285300        public void printAlignment() { 
     
    312327 
    313328        /** 
    314          * print the dynmaic programming matrix 
     329         * print the dynmaic programming matrix. 
    315330         */ 
    316331        @Override 
     
    337352        } 
    338353 
     354        /** 
     355         * Sets the alignment. 
     356         * 
     357         * @param alignment the new alignment 
     358         */ 
    339359        public void setAlignment(ArrayList<NumberSequence> alignment) { 
    340360                this.alignment = alignment; 
     
    355375        } 
    356376 
     377        /** 
     378         * Traceback. 
     379         */ 
    357380        public void traceback() { 
    358381                MatrixEntry tmp = matrix[length1 + 1][0].getPrevious(); 
Note: See TracChangeset for help on using the changeset viewer.