Interface Filter
- All Known Implementing Classes:
AssumptionFilter,MatchFilter,PeptideFilter,ProteinFilter,PsmFilter
public interface Filter
Generic interface for a filter.
- Author:
- Marc Vaudel
-
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the filter.Returns a description of the condition to match for the filter to validate.Returns a description for the filter.getName()Returns the name of the filter.getReport(boolean filterPassed) Returns a filter report depending on whether the condition was met.booleanIndicates whether another filter is the same as the current filter.
-
Method Details
-
getName
String getName()Returns the name of the filter.- Returns:
- the name of the filter
-
getDescription
String getDescription()Returns a description for the filter.- Returns:
- a description for the filter
-
getCondition
String getCondition()Returns a description of the condition to match for the filter to validate.- Returns:
- the condition to match for the filter to validate
-
getReport
Returns a filter report depending on whether the condition was met.- Parameters:
filterPassed- boolean indicating whether the filter was passed- Returns:
- the report of the filter
-
clone
Filter clone()Clones the filter.- Returns:
- a clone of the filter
-
isSameAs
Indicates whether another filter is the same as the current filter.- Parameters:
anotherFilter- another filter- Returns:
- a boolean indicating whether another filter is the same as the current filter
-