public class ProteinTree.PeptideIterator
extends java.lang.Object
implements java.util.Iterator
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.lang.Character> |
aas
List of amino acids found in the current node subtree if any.
|
protected Node |
currentNode
The current node.
|
protected java.lang.String |
currentSequence
The current peptide sequence.
|
protected int |
i
The current iterator position in the tags.
|
protected java.lang.Integer |
initialTagSize
The initial tag size of the tree.
|
protected int |
j
The current iterator position in the amino acid list.
|
protected Node |
parentNode
The parent node.
|
protected java.util.ArrayList<java.lang.String> |
tags
The list of possible initial tags.
|
Modifier | Constructor and Description |
---|---|
protected |
ProteinTree.PeptideIterator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> |
getMapping()
Returns the protein mapping of the current peptide.
|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
protected java.lang.Integer initialTagSize
protected java.util.ArrayList<java.lang.String> tags
protected Node currentNode
protected Node parentNode
protected java.lang.String currentSequence
protected java.util.ArrayList<java.lang.Character> aas
protected int i
protected int j
protected ProteinTree.PeptideIterator() throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
java.sql.SQLException
java.io.IOException
java.lang.ClassNotFoundException
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> getMapping()
Copyright © 2013. All Rights Reserved.