com.compomics.util.experiment.identification
Class SpectrumAnnotator.SpectrumAnnotationMap

java.lang.Object
  extended by com.compomics.util.experiment.identification.SpectrumAnnotator.SpectrumAnnotationMap
Enclosing class:
SpectrumAnnotator

public class SpectrumAnnotator.SpectrumAnnotationMap
extends Object

A support class for "hiding" the HashMap inside an object for easier use in other methods. Should not normally be created on its own, but rather created using the annotateSpectrum method in the SpectrumAnnotation class.


Constructor Summary
SpectrumAnnotator.SpectrumAnnotationMap(HashMap<String,HashMap<Integer,IonMatch>> annotations)
          Create a new SpectrumAnnotationMap.
 
Method Summary
 HashMap<String,HashMap<Integer,IonMatch>> getAnnotations()
          Returns the actual annotations "hidden" inside the SpectrumAnnotationMap object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpectrumAnnotator.SpectrumAnnotationMap

public SpectrumAnnotator.SpectrumAnnotationMap(HashMap<String,HashMap<Integer,IonMatch>> annotations)
Create a new SpectrumAnnotationMap. Should not normally be used directly, but rather created using the annotateSpectrum method in the SpectrumAnnotation class.

Parameters:
annotations - a HashMap of the annotations
Method Detail

getAnnotations

public HashMap<String,HashMap<Integer,IonMatch>> getAnnotations()
Returns the actual annotations "hidden" inside the SpectrumAnnotationMap object. HashMap structure: ion type -> charge -> ion match

Returns:
a HashMap of the annotations


Copyright © 2011. All Rights Reserved.