com.compomics.util.experiment.massspectrometry
Class Precursor

java.lang.Object
  extended by com.compomics.util.experiment.personalization.ExperimentObject
      extended by com.compomics.util.experiment.massspectrometry.Precursor
All Implemented Interfaces:
Serializable, Cloneable

public class Precursor
extends ExperimentObject

This class modilizes the precursor.

Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form

Constructor Summary
Precursor(double rt, double mz, ArrayList<Charge> possibleCharges)
          Constructor for the precursor.
Precursor(double rt, double mz, double intensity, ArrayList<Charge> possibleCharges)
          Constructor for the precursor.
 
Method Summary
 double getIntensity()
          Getter for the intensity.
 double getMz()
          Getter for the m/z.
 ArrayList<Charge> getPossibleCharges()
          Getter for the possible charges
 String getPossibleChargesAsString()
          Returns the possible charges as a string
 double getRt()
          Getter for the retention time.
 
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, getParameterKey, getUrParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Precursor

public Precursor(double rt,
                 double mz,
                 ArrayList<Charge> possibleCharges)
Constructor for the precursor.

Parameters:
rt - the retention time
mz - the m/z
possibleCharges - the possible charges

Precursor

public Precursor(double rt,
                 double mz,
                 double intensity,
                 ArrayList<Charge> possibleCharges)
Constructor for the precursor.

Parameters:
rt -
mz -
intensity -
possibleCharges -
Method Detail

getRt

public double getRt()
Getter for the retention time.

Returns:
precursor retention time

getMz

public double getMz()
Getter for the m/z.

Returns:
precursor m/z

getIntensity

public double getIntensity()
Getter for the intensity.

Returns:
precursor intensity

getPossibleCharges

public ArrayList<Charge> getPossibleCharges()
Getter for the possible charges

Returns:
the possible charges

getPossibleChargesAsString

public String getPossibleChargesAsString()
Returns the possible charges as a string

Returns:
the possible charges as a string


Copyright © 2012. All Rights Reserved.