Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11256


Ignore:
Timestamp:
08/01/14 19:39:14 (10 years ago)
Author:
bburlacu
Message:

#2223: Changed arc data from IDeepCloneable to object.

Location:
trunk/sources/HeuristicLab.Core/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Collections/DirectedGraph/Arc.cs

    r11248 r11256  
    5757
    5858    [Storable]
    59     protected IDeepCloneable data;
    60     public IDeepCloneable Data {
     59    protected object data;
     60    public object Data {
    6161      get { return data; }
    6262      set {
     
    8181      label = original.Label;
    8282      weight = original.Weight;
    83       data = cloner.Clone(data);
     83      if (data is IDeepCloneable)
     84        data = cloner.Clone((IDeepCloneable)data);
     85      else data = original.Data;
    8486    }
    8587    public override IDeepCloneable Clone(Cloner cloner) { return new Arc(this, cloner); }
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IArc.cs

    r11241 r11256  
    2121
    2222using System;
    23 using HeuristicLab.Common;
    2423
    2524namespace HeuristicLab.Core {
     
    2928    string Label { get; set; }
    3029    double Weight { get; set; }
    31     IDeepCloneable Data { get; set; }
     30    object Data { get; set; }
    3231
    3332    event EventHandler Changed; // generic event for when the label, weight or data were changed
Note: See TracChangeset for help on using the changeset viewer.