Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/10 14:52:20 (14 years ago)
Author:
mkommend
Message:

corrected ctors of core constraints (ticket #996)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Constraints/Constraint.cs

    r3602 r3605  
    3636    protected Constraint(bool deserializing) {
    3737    }
    38     protected Constraint(IItem constrainedValue, ConstraintOperation comparisonOperation, object comparisonValue)
     38    protected Constraint(IItem constrainedValue, ConstraintOperation constraintOperation, object constraintData)
    3939      : this() {
    4040      this.ConstrainedValue = constrainedValue;
    41       this.ConstraintOperation = comparisonOperation;
    42       this.ConstraintData = comparisonValue;
     41      this.ConstraintOperation = constraintOperation;
     42      this.ConstraintData = constraintData;
    4343    }
    44     protected Constraint(IItem constrainedValue, ConstraintOperation comparisonOperation, object comparisonValue, bool active) {
     44    protected Constraint(IItem constrainedValue, ConstraintOperation constraintOperation, object constraintData, bool active) {
    4545      this.ConstrainedValue = constrainedValue;
    46       this.ConstraintOperation = comparisonOperation;
    47       this.ConstraintData = comparisonValue;
     46      this.ConstraintOperation = constraintOperation;
     47      this.ConstraintData = constraintData;
    4848      this.Active = active;
    4949    }
Note: See TracChangeset for help on using the changeset viewer.