Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/10 18:06:56 (14 years ago)
Author:
mkommend
Message:

fixed cloning of RunCollectionConstraints (ticket #1131)

Location:
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints
Files:
3 edited

Legend:

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

    r4068 r4157  
    3131  [Item("RunCollectionComparisonConstraint", "A constraint which compares the members of the contained runs with the constraint data.")]
    3232  public class RunCollectionComparisonConstraint : ComparisonConstraint, IRunCollectionConstraint {
    33     public RunCollectionComparisonConstraint()
    34       : base() {
    35     }
    3633    [StorableConstructor]
    37     protected RunCollectionComparisonConstraint(bool deserializing) {
    38     }
     34    protected RunCollectionComparisonConstraint(bool deserializing) : base(deserializing) { }
     35
     36    public RunCollectionComparisonConstraint() : base() { }
    3937    public RunCollectionComparisonConstraint(RunCollection constrainedValue, ConstraintOperation constraintOperation, object constraintData)
    4038      : base(constrainedValue, constraintOperation, constraintData) {
     
    133131    public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
    134132      RunCollectionComparisonConstraint clone = (RunCollectionComparisonConstraint)base.Clone(cloner);
    135       clone.ConstrainedValue = null;
    136133
    137134      IItem constraintDataItem = this.ConstraintData as IItem;
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionEqualityConstraint.cs

    r4068 r4157  
    3131  [Item("RunCollectionEqualityConstraint", "A constraint which checks the members of the contained runs for equality to the constraint data.")]
    3232  public class RunCollectionEqualityConstraint : EqualityConstraint, IRunCollectionConstraint {
     33    [StorableConstructor]
     34    protected RunCollectionEqualityConstraint(bool deserializing) : base(deserializing) { }
     35
    3336    public RunCollectionEqualityConstraint()
    3437      : base() {
    3538      this.ConstraintData = string.Empty;
    36     }
    37     [StorableConstructor]
    38     protected RunCollectionEqualityConstraint(bool deserializing) {
    3939    }
    4040    public RunCollectionEqualityConstraint(RunCollection constrainedValue, ConstraintOperation constraintOperation, string constraintData)
     
    130130    public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
    131131      RunCollectionEqualityConstraint clone = (RunCollectionEqualityConstraint)base.Clone(cloner);
    132       clone.ConstrainedValue = null;
    133132      clone.ConstraintData = this.ConstraintData;
    134133      clone.ConstraintOperation = this.ConstraintOperation;
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionTypeCompatiblityConstraint.cs

    r4068 r4157  
    123123    public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
    124124      RunCollectionTypeCompatibilityConstraint clone = (RunCollectionTypeCompatibilityConstraint)base.Clone(cloner);
    125       clone.ConstrainedValue = null;
    126125      clone.ConstraintData = this.ConstraintData;
    127126      clone.ConstraintOperation = this.ConstraintOperation;
Note: See TracChangeset for help on using the changeset viewer.