Exemplo n.º 1
0
        public virtual int[] align(List words, Range range)
        {
            if (range.upperEndpoint() - range.lowerEndpoint() < this.tupleSize || words.size() < this.tupleSize)
            {
                return(LongTextAligner.alignTextSimple(this.refWords.subList(range.lowerEndpoint(), range.upperEndpoint()), words, range.lowerEndpoint()));
            }
            int[] array = new int[words.size()];
            Arrays.fill(array, -1);
            int      i        = 0;
            Iterator iterator = new LongTextAligner.Alignment(this, this.getTuples(words), range).getIndices().iterator();

            while (iterator.hasNext())
            {
                LongTextAligner_Alignment_Node longTextAligner_Alignment_Node = (LongTextAligner_Alignment_Node)iterator.next();
                for (i = Math.max(i, longTextAligner_Alignment_Node.getQueryIndex()); i < longTextAligner_Alignment_Node.getQueryIndex() + this.tupleSize; i++)
                {
                    array[i] = longTextAligner_Alignment_Node.getDatabaseIndex() + i - longTextAligner_Alignment_Node.getQueryIndex();
                }
            }
            return(array);
        }
 internal LongTextAligner_Alignment_1(LongTextAligner.Alignment alignment, LongTextAligner longTextAligner, Map map)
 {
     this_1          = alignment;
     this.val_this_0 = longTextAligner;
     this.val_cost   = map;
 }
Exemplo n.º 3
0
 internal static List access_200(LongTextAligner.Alignment alignment)
 {
     return(alignment.query);
 }
Exemplo n.º 4
0
 internal static List access_100(LongTextAligner.Alignment alignment)
 {
     return(alignment.indices);
 }
Exemplo n.º 5
0
 internal static List access_000(LongTextAligner.Alignment alignment)
 {
     return(alignment.shifts);
 }
 private LongTextAligner_Alignment_Node(LongTextAligner.Alignment alignment, int num, int num2)
 {
     this_1             = alignment;
     this.databaseIndex = num2;
     this.queryIndex    = num;
 }
 internal LongTextAligner_Alignment_Node(LongTextAligner.Alignment alignment, int num, int num2, LongTextAligner_1 longTextAligner_) : this(alignment, num, num2)
 {
 }