Class IdentificationParametersFactory

java.lang.Object
com.compomics.util.experiment.identification.identification_parameters.IdentificationParametersFactory

public class IdentificationParametersFactory extends Object
Factory for the identification parameters.
Author:
Marc Vaudel
  • Field Details

  • Method Details

    • getInstance

      public static IdentificationParametersFactory getInstance()
      Static method to get the instance of the factory.
      Returns:
      the instance of the factory
    • getParametersList

      public ArrayList<String> getParametersList()
      Returns an ordered list of the names of the implemented parameters.
      Returns:
      an ordered list of the names of the implemented parameters
    • getIdentificationParameters

      public IdentificationParameters getIdentificationParameters(String name)
      Returns the identification parameters corresponding to the given name. Null if not found.
      Parameters:
      name - the name of the parameters to return
      Returns:
      the identification parameters corresponding to the given name
    • getIdentificationParametersFile

      public static File getIdentificationParametersFile(String name)
      Returns the identification parameters corresponding to the given name. Null if not found.
      Parameters:
      name - the name of the parameters to return
      Returns:
      the identification parameters corresponding to the given name
    • removeIdentificationParameters

      public void removeIdentificationParameters(String name)
      Deletes the identification parameters of the given name.
      Parameters:
      name - the name of the parameters to delete
    • addIdentificationParameters

      public void addIdentificationParameters(IdentificationParameters identificationParameters) throws IOException, FileNotFoundException, ClassNotFoundException
      Adds the given identification parameters to the factory.
      Parameters:
      identificationParameters - the identification parameters
      Throws:
      IOException - exception thrown whenever an error occurred while saving the file
      FileNotFoundException - exception thrown whenever an error occurred while saving the file
      ClassNotFoundException - exception thrown whenever an error occurred while saving the file
    • updateIdentificationParameters

      public void updateIdentificationParameters(IdentificationParameters oldParameters, IdentificationParameters newParameters) throws IOException, FileNotFoundException, ClassNotFoundException
      Replaces old parameters by new.
      Parameters:
      oldParameters - the old identification parameters
      newParameters - the new identification parameters
      Throws:
      IOException - exception thrown whenever an error occurred while saving the file
      FileNotFoundException - exception thrown whenever an error occurred while saving the file
      ClassNotFoundException - exception thrown whenever an error occurred while saving the file
    • getParentFolder

      public static String getParentFolder()
      Returns the parent folder.
      Returns:
      the parent folder
    • setParentFolder

      public static void setParentFolder(String PARENT_FOLDER)
      Set the parent folder.
      Parameters:
      PARENT_FOLDER - the parent folder