Class FeaturesMap
java.lang.Object
com.compomics.util.experiment.identification.peptide_fragmentation.models.ms2pip.features_configuration.FeaturesMap
This class contains a map of selected features indexed by category.
- Author:
- Marc Vaudel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent version of the features. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(Ms2pipFeature ms2pipFeature) Adds a feature to the map.Returns the different categories of the features in this map.getFeatures(String category) Returns the features in the map for the given category.intReturns the number of features in the map.String[]Returns a sorted list of features categories.intReturns the version of the features used to create the map.
-
Field Details
-
currentVersion
public static final int currentVersionCurrent version of the features. This number should be incremented when non backward compatible changes are made to the implemented features.- See Also:
-
-
Constructor Details
-
FeaturesMap
public FeaturesMap()Constructor.
-
-
Method Details
-
getVersion
public int getVersion()Returns the version of the features used to create the map.- Returns:
- the version of the features used to create the map
-
addFeature
Adds a feature to the map.- Parameters:
ms2pipFeature- the feature to add.
-
getCategories
Returns the different categories of the features in this map.- Returns:
- the different categories of the features in this map
-
getSortedFeaturesList
Returns a sorted list of features categories.- Returns:
- a sorted list of features categories
-
getFeatures
Returns the features in the map for the given category.- Parameters:
category- the category.- Returns:
- the list of features in the map for the given category
-
getnFeatures
public int getnFeatures()Returns the number of features in the map.- Returns:
- the number of features in the map
-