Debian Codegraph @

current/hmm/ProteinSummary.java

raw symbols SCIP
1 package hmm;
2
3 import java.util.HashMap;
4
5 public class ProteinSummary {
6
7 public ProteinSummary(String name){
8 this.name=name;
9 }
10
11 /** Returns true if anything changed */
12 public boolean add(HMMSearchLine line){
13 Integer old=map.get(line.name);
14 if(old==null || old<line.length){
15 map.put(line.name, line.length);
16 return true;
17 }
18 return false;
19 }
20
21 /** Name of query sequence */
22 public final String name;
23
24 //This could alternatively be a map of names to lines, to include all data
25 /** Map of reference model name to hit length */
26 public HashMap<String, Integer> map=new HashMap<String, Integer>();
27
28 }