Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3605


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

corrected ctors of core constraints (ticket #996)

Location:
trunk/sources/HeuristicLab.Core/3.3/Constraints
Files:
3 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    }
  • trunk/sources/HeuristicLab.Core/3.3/Constraints/EqualityConstraint.cs

    r3602 r3605  
    3737    protected EqualityConstraint(bool deserializing) {
    3838    }
    39     public EqualityConstraint(IItem constrainedValue, ConstraintOperation comparisonOperation, object comparisonValue)
    40       : base(constrainedValue, comparisonOperation, comparisonValue) {
     39    public EqualityConstraint(IItem constrainedValue, ConstraintOperation constraintOperation, object constraintData)
     40      : base(constrainedValue, constraintOperation, constraintData) {
    4141    }
    42     public EqualityConstraint(IItem constrainedValue, ConstraintOperation comparisonOperation, object comparisonValue, bool active)
    43       : base(constrainedValue, comparisonOperation, comparisonOperation, active) {
     42    public EqualityConstraint(IItem constrainedValue, ConstraintOperation constraintOperation, object constraintData, bool active)
     43      : base(constrainedValue, constraintOperation, constraintData, active) {
    4444    }
    4545
  • trunk/sources/HeuristicLab.Core/3.3/Constraints/TypeCompatibilityConstraint.cs

    r3602 r3605  
    3636      : base() {
    3737    }
    38     public TypeCompatibilityConstraint(IItem constrainedValue, ConstraintOperation comparisonOperation, Type comparisonValue)
    39       : base(constrainedValue, comparisonOperation, comparisonValue) {
     38    public TypeCompatibilityConstraint(IItem constrainedValue, ConstraintOperation constraintOperation, Type constraintData)
     39      : base(constrainedValue, constraintOperation, constraintData) {
    4040    }
    41     public TypeCompatibilityConstraint(IItem constrainedValue, ConstraintOperation comparisonOperation, object comparisonValue, bool active)
    42       : base(constrainedValue, comparisonOperation, comparisonOperation, active) {
     41    public TypeCompatibilityConstraint(IItem constrainedValue, ConstraintOperation constraintOperation, Type constraintData, bool active)
     42      : base(constrainedValue, constraintOperation, constraintData, active) {
    4343    }
    4444
Note: See TracChangeset for help on using the changeset viewer.