Last update: 2011-06-23

org.proteios.io
Class SpectrumPrecursor

java.lang.Object
  extended by org.proteios.io.SpectrumPrecursor

public class SpectrumPrecursor
extends Object

This class contains spectrum precursor information. Comparable to the org.proteios.core.Precursor class, but not for database storage

Author:
fredrik

Nested Class Summary
static class SpectrumPrecursor.FragmentationType
          Precursor fragmentation type enum.
 
Constructor Summary
SpectrumPrecursor()
           
 
Method Summary
 void addExtraData(StringPairInterface extraData)
          Add spectrum precursor extra data.
 Integer getCharge()
           
 List<StringPairInterface> getExtraDataList()
          Get the spectrum precursor extra data list.
 SpectrumPrecursor.FragmentationType getFragmentationType()
          Get the fragmentation type.
 Double getIntensity()
           
 Double getMassToChargeRatio()
           
 List<PrecursorSelectedIon> getSelectedIonList()
          Get the spectrum precursor selected ion list.
 void newSelectedIon()
          Create new selected ion for the current precursor.
 void setCharge(Integer charge)
           
 void setFragmentationType(SpectrumPrecursor.FragmentationType fragmentationType)
          Set the fragmentation type.
 void setIntensity(Double intensity)
           
 void setMassToChargeRatio(Double massToChargeRatio)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpectrumPrecursor

public SpectrumPrecursor()
Method Detail

getMassToChargeRatio

public Double getMassToChargeRatio()
Returns:
Returns the massToChargeRatio.

setMassToChargeRatio

public void setMassToChargeRatio(Double massToChargeRatio)
Parameters:
massToChargeRatio - The massToChargeRatio to set.

getIntensity

public Double getIntensity()
Returns:
Returns the intensity.

setIntensity

public void setIntensity(Double intensity)
Parameters:
intensity - The intensity to set.

getCharge

public Integer getCharge()
Returns:
Returns the charge.

setCharge

public void setCharge(Integer charge)
Parameters:
charge - The charge to set.

getSelectedIonList

public List<PrecursorSelectedIon> getSelectedIonList()
Get the spectrum precursor selected ion list.

Returns:
List The spectrum precursor selected ion list.

newSelectedIon

public void newSelectedIon()
Create new selected ion for the current precursor.


getExtraDataList

public List<StringPairInterface> getExtraDataList()
Get the spectrum precursor extra data list.

Returns:
List The spectrum precursor extra data list.

addExtraData

public void addExtraData(StringPairInterface extraData)
Add spectrum precursor extra data.

Parameters:
extraData - StringPairInterface The spectrum precursor extra data to add.

getFragmentationType

public SpectrumPrecursor.FragmentationType getFragmentationType()
Get the fragmentation type.

Returns:
FragmentationType The fragmentation type.

setFragmentationType

public void setFragmentationType(SpectrumPrecursor.FragmentationType fragmentationType)
Set the fragmentation type.

Parameters:
fragmentationType - FragmentationType The fragmentation type to set.

Last update: 2011-06-23