Class IdentificationParametersFactory
java.lang.Object
com.compomics.util.experiment.identification.identification_parameters.IdentificationParametersFactory
Factory for the identification parameters.
- Author:
- Marc Vaudel
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIdentificationParameters(IdentificationParameters identificationParameters) Adds the given identification parameters to the factory.Returns the identification parameters corresponding to the given name.static FileReturns the identification parameters corresponding to the given name.Static method to get the instance of the factory.Returns an ordered list of the names of the implemented parameters.static StringReturns the parent folder.voidDeletes the identification parameters of the given name.static voidsetParentFolder(String PARENT_FOLDER) Set the parent folder.voidupdateIdentificationParameters(IdentificationParameters oldParameters, IdentificationParameters newParameters) Replaces old parameters by new.
-
Field Details
-
PARAMETERS_FOLDER
The identification parameters.- See Also:
-
PARAMETERS_EXTENSION
The extension for a parameters file.- See Also:
-
-
Method Details
-
getInstance
Static method to get the instance of the factory.- Returns:
- the instance of the factory
-
getParametersList
Returns an ordered list of the names of the implemented parameters.- Returns:
- an ordered list of the names of the implemented parameters
-
getIdentificationParameters
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
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
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 fileFileNotFoundException- exception thrown whenever an error occurred while saving the fileClassNotFoundException- 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 parametersnewParameters- the new identification parameters- Throws:
IOException- exception thrown whenever an error occurred while saving the fileFileNotFoundException- exception thrown whenever an error occurred while saving the fileClassNotFoundException- exception thrown whenever an error occurred while saving the file
-
getParentFolder
Returns the parent folder.- Returns:
- the parent folder
-
setParentFolder
Set the parent folder.- Parameters:
PARENT_FOLDER- the parent folder
-