/*
* Genoogle: Similar DNA Sequences Searching Engine and Tools. (http://genoogle.pih.bio.br)
* Copyright (C) 2008,2009 Felipe Fernandes Albrecht (felipe.albrecht@gmail.com)
*
* For further information check the LICENSE file.
*/
package bio.pih.genoogle.util;
import bio.pih.genoogle.seq.SymbolList;
/**
* Iterate over the non overlapped sub-sequences from the symbol list
*
* @author albrecht
*/
public class NotOverlappedSymbolListWindowIterator extends AbstractSymbolListWindowIterator {
/**
* @param sequence
* @param windowLength
*/
NotOverlappedSymbolListWindowIterator(SymbolList sequence, int windowLength) {
super(sequence, windowLength);
}
@Override
public SymbolList next() {
SymbolList subList = sequence.subSymbolList(actualPos+1, actualPos + windowSize);
actualPos+= windowSize;
return subList;
}
}