Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/14 13:00:11 (10 years ago)
Author:
mleitner
Message:

Setup filter logic

File:
1 edited

Legend:

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

    r10611 r10619  
    2727using HeuristicLab.Common;
    2828using HeuristicLab.Data;
     29using System.Collections.Generic;
    2930
    3031namespace HeuristicLab.DataPreprocessing.Filter
     
    104105
    105106
    106         protected override bool Check(object constrainedMember)
     107        public bool[] Check(object constrainedMember)
    107108        {
     109            bool[] result = new bool[ConstrainedValue.Rows];
     110
    108111            if (!Active)
    109                 return false;
     112                return result;
    110113
    111114            for (int row = 0; row < ConstrainedValue.Rows; ++row)
    112115            {
    113 
    114116                object item = null;
    115117                if (ConstrainedValue.IsType<double>(constraintColumn))
     
    126128                }
    127129
    128                 if (base.Check(item))
    129                     return true;
    130 
     130                result[row] = base.Check(item);
    131131            }
    132132
    133             return false;
     133            return result;
    134134        }
    135135
    136         protected override bool Check(object constrainedMember, out string errorMessage)
     136        public bool[] Check(object constrainedMember, out string errorMessage)
    137137        {
    138138            errorMessage = string.Empty;
Note: See TracChangeset for help on using the changeset viewer.