p3j.experiment.results.filters
Class ConfigurableResultFilter

java.lang.Object
  extended by p3j.experiment.results.filters.ConfigurableResultFilter
All Implemented Interfaces:
IResultFilter

public class ConfigurableResultFilter
extends Object
implements IResultFilter

This is a configurable result filter. It is initialized with a list of assignment IDs. Each result is checked: only if it contains at least *one* of the given IDs, it will be considered. In other words, the set of IDs can be considered as a white list.

Author:
Christina Bohk, Roland Ewald
See Also:
ParameterAssignment, ResultsOfTrial, ResultExport

Constructor Summary
ConfigurableResultFilter(Set<Integer> requiredIDs)
          Instantiates a new configurable result filter.
 
Method Summary
 boolean considerResult(ResultsOfTrial results)
          Checks whether the given result shall be considered or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableResultFilter

public ConfigurableResultFilter(Set<Integer> requiredIDs)
Instantiates a new configurable result filter.

Parameters:
requiredIDs - the list of assignment IDs defining the filter
Method Detail

considerResult

public boolean considerResult(ResultsOfTrial results)
Description copied from interface: IResultFilter
Checks whether the given result shall be considered or not.

Specified by:
considerResult in interface IResultFilter
Parameters:
results - the results in question
Returns:
true if results should be considered as well


Copyright © 2012. All Rights Reserved.