Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/14 16:10:48 (11 years ago)
Author:
psteiner
Message:

adaption of FilterLogic

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/Filter/IFilter.cs

    r10589 r10638  
    77namespace HeuristicLab.DataPreprocessing.Filter
    88{
    9   public interface IFilter : IItem
     9  public interface IFilter : IConstraint
    1010  {
     11    bool[] Check();
     12    bool[] Check(out string errorMessage);
    1113  }
    1214}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/FilterLogic.cs

    r10620 r10638  
    3232
    3333
    34     public bool[] Preview(IList<ComparisonFilter> filters)
     34    public bool[] Preview(IList<IFilter> filters)
    3535    {
    3636       bool[] result = new bool[preprocessingData.Rows];
    3737
    38         foreach (ComparisonFilter filter in filters) {
     38       foreach (IFilter filter in filters)
     39       {
    3940            bool[] filterResult = filter.Check();
    4041
     
    4748    }
    4849
    49     public void Apply(IList<ComparisonFilter> filters)
     50    public void Apply(IList<IFilter> filters)
    5051    {
    5152        bool[] results = Preview(filters);
     
    5859        }
    5960     }
     61
     62
     63    public IPreprocessingData PreprocessingData
     64    {
     65      get { return preprocessingData; }
     66    }
    6067  }
    6168}
Note: See TracChangeset for help on using the changeset viewer.