Ignore:
Timestamp:
06/11/14 15:28:12 (8 years ago)
Author:
rstoll
Message:
  • Reordered Code
File:
1 edited

Legend:

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

    r10947 r10999  
    3131  public class ComparisonFilter : ComparisonConstraint, IFilter {
    3232
    33    
    34 
    35     protected ComparisonFilter(bool deserializing) : base(deserializing) {
    36    
    37     }
    38 
    39     protected ComparisonFilter(ComparisonFilter original, Cloner cloner)
    40       : base(original, cloner) {
    41       constraintColumn = original.constraintColumn;
    42     }
    43     public override IDeepCloneable Clone(Cloner cloner) {
    44       return new ComparisonFilter(this, cloner);
    45     }
    46 
    47     public ComparisonFilter() : base() { }
    48     public ComparisonFilter(IPreprocessingData constrainedValue, ConstraintOperation constraintOperation, object constraintData)
    49       : base(constrainedValue, constraintOperation, constraintData) {
    50     }
    51 
    52     public ComparisonFilter(IPreprocessingData constrainedValue, ConstraintOperation constraintOperation, object constraintData, bool active)
    53       : base(constrainedValue, constraintOperation, constraintData, active) {
    54     }
    55 
    56 
    5733    public override string ItemName {
    5834      get { return "ComparisonFilter"; }
     
    7753    }
    7854
     55    public ComparisonFilter() : base() { }
     56    protected ComparisonFilter(bool deserializing) : base(deserializing) { }
     57
     58    public ComparisonFilter(IPreprocessingData constrainedValue, ConstraintOperation constraintOperation, object constraintData)
     59      : base(constrainedValue, constraintOperation, constraintData) {
     60    }
     61
     62    public ComparisonFilter(IPreprocessingData constrainedValue, ConstraintOperation constraintOperation, object constraintData, bool active)
     63      : base(constrainedValue, constraintOperation, constraintData, active) {
     64    }
     65
     66    protected ComparisonFilter(ComparisonFilter original, Cloner cloner)
     67      : base(original, cloner) {
     68      constraintColumn = original.constraintColumn;
     69    }
     70    public override IDeepCloneable Clone(Cloner cloner) {
     71      return new ComparisonFilter(this, cloner);
     72    }
    7973
    8074    private int constraintColumn;
     
    9286      }
    9387    }
    94 
    9588
    9689    public new bool[] Check() {
     
    121114    }
    122115
    123     public event EventHandler ConstraintColumnChanged;
    124     protected virtual void OnConstraintColumnChanged() {
    125       EventHandler handler = ConstraintColumnChanged;
    126       if (handler != null)
    127         handler(this, EventArgs.Empty);
    128     }
    129 
    130116    public override string ToString() {
    131117      string s = string.Empty;
     
    144130      return s;
    145131    }
     132
     133    public event EventHandler ConstraintColumnChanged;
     134    protected virtual void OnConstraintColumnChanged() {
     135      EventHandler handler = ConstraintColumnChanged;
     136      if (handler != null)
     137        handler(this, EventArgs.Empty);
     138    }
    146139  }
    147140}
Note: See TracChangeset for help on using the changeset viewer.