Class MolecularFormula

java.lang.Object
com.compomics.util.protein.MolecularFormula

public class MolecularFormula
extends Object
This class represents the molecular formula. Basically it count the number of atoms. Created by IntelliJ IDEA. User: Niklaas Date: 16-Aug-2010 Time: 08:25:22
  • Constructor Details

  • Method Details

    • addElement

      public void addElement​(MolecularElement lMolecularElement, Integer lCount)
      Method to add MolecularElements to this formula
      Parameters:
      lMolecularElement - The molecular element
      lCount - The count
    • addMolecularFormula

      public void addMolecularFormula​(MolecularFormula lMolecularFormula)
      Method to add whole formulas to this formula
      Parameters:
      lMolecularFormula - The MolecularFormula to add
    • getElementCount

      public int getElementCount​(MolecularElement lMolecularElement)
      Getter for the count of a specific element
      Parameters:
      lMolecularElement - The MolecularElement to get to count for
      Returns:
      Int with the count
    • toString

      public String toString()
      To string method
      Overrides:
      toString in class Object
      Returns:
      String