Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 01:53:45 (14 years ago)
Author:
mkommend
Message:

refactored cloning of constraints (ticket #996)

Location:
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionTypeCompatiblityConstraint.cs

    r3614 r3617  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828using HeuristicLab.Data;
     29using HeuristicLab.Common;
    2930
    3031namespace HeuristicLab.Optimization {
     
    113114      return s;
    114115    }
     116
     117    public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
     118      RunCollectionTypeCompatibilityConstraint clone = (RunCollectionTypeCompatibilityConstraint)base.Clone(cloner);
     119      clone.ConstrainedValue = null;
     120      clone.ConstraintData = this.ConstraintData;
     121      clone.ConstraintOperation = this.ConstraintOperation;
     122      clone.constraintColumn = this.constraintColumn;
     123
     124      return clone;
     125    }
    115126  }
    116127}
Note: See TracChangeset for help on using the changeset viewer.