Class ElementaryElement

java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.atoms.ElementaryElement
All Implemented Interfaces:
Serializable

public class ElementaryElement
extends ExperimentObject
This class can be used to retrieve elementary elements like a neutron.
Author:
Marc Vaudel
See Also:
Serialized Form
  • Field Details

  • Constructor Details

  • Method Details

    • getNeutronMassMultiple

      public static double getNeutronMassMultiple​(int i)
      Returns the mass of the neutron multiplied by i. If i is smaller or equal to ten a value in cache is used. It is calculated otherwise. Throws an exception for negative i without sanity check.
      Parameters:
      i - i
      Returns:
      the mass of the neutron multiplied by i
    • getName

      public String getName()
      Returns the name of the element.
      Returns:
      the name of the element
    • getMass

      public double getMass()
      Returns the mass of the element.
      Returns:
      the mass of the element