Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/10 02:54:35 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/Algorithm.cs

    r4566 r4918  
    2626  [Item("Algorithm", "An OKB algorithm.")]
    2727  public partial class Algorithm {
     28    protected Algorithm(Algorithm original, Cloner cloner)
     29      : base(original, cloner) {
     30      PlatformId = original.PlatformId;
     31      AlgorithmClassId = original.AlgorithmClassId;
     32    }
    2833    public Algorithm() {
    2934      Name = "New Algorithm";
     
    3338
    3439    public override IDeepCloneable Clone(Cloner cloner) {
    35       Algorithm clone = (Algorithm)base.Clone(cloner);
    36       clone.PlatformId = PlatformId;
    37       clone.AlgorithmClassId = AlgorithmClassId;
    38       return clone;
     40      return new Algorithm(this, cloner);
    3941    }
    4042  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/AlgorithmClass.cs

    r4456 r4918  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324
     
    2526  [Item("AlgorithmClass", "An OKB algorithm class.")]
    2627  public partial class AlgorithmClass {
     28    protected AlgorithmClass(AlgorithmClass original, Cloner cloner) : base(original, cloner) { }
    2729    public AlgorithmClass() {
    2830      Name = "New Algorithm Class";
    2931    }
     32
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new AlgorithmClass(this, cloner);
     35    }
    3036  }
    3137}
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/AlgorithmParameter.cs

    r4566 r4918  
    2626  [Item("AlgorithmParameter", "An OKB algorithm parameter.")]
    2727  public partial class AlgorithmParameter {
     28    protected AlgorithmParameter(AlgorithmParameter original, Cloner cloner)
     29      : base(original, cloner) {
     30      Alias = original.Alias;
     31      AlgorithmId = original.AlgorithmId;
     32      DataTypeId = original.DataTypeId;
     33    }
    2834    public AlgorithmParameter() {
    2935      Name = "New AlgorithmParameter";
     
    3440
    3541    public override IDeepCloneable Clone(Cloner cloner) {
    36       AlgorithmParameter clone = (AlgorithmParameter)base.Clone(cloner);
    37       clone.Alias = Alias;
    38       clone.AlgorithmId = AlgorithmId;
    39       clone.DataTypeId = DataTypeId;
    40       return clone;
     42      return new AlgorithmParameter(this, cloner);
    4143    }
    4244  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/DataType.cs

    r4566 r4918  
    2626  [Item("DataType", "An OKB data type.")]
    2727  public partial class DataType {
     28    protected DataType(DataType original, Cloner cloner)
     29      : base(original, cloner) {
     30      Name = original.Name;
     31      SqlName = original.SqlName;
     32      PlatformId = original.PlatformId;
     33    }
    2834    public DataType() {
    2935      Name = "New Data Type";
     
    3339
    3440    public override IDeepCloneable Clone(Cloner cloner) {
    35       DataType clone = (DataType)base.Clone(cloner);
    36       clone.Name = Name;
    37       clone.SqlName = SqlName;
    38       clone.PlatformId = PlatformId;
    39       return clone;
     41      return new DataType(this, cloner);
    4042    }
    4143
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/NamedOKBItem.cs

    r4456 r4918  
    2727  [Item("NamedOKBItem", "Base class for all named OKB items.")]
    2828  public partial class NamedOKBItem : INamedOKBItem {
     29    protected NamedOKBItem(NamedOKBItem original, Cloner cloner)
     30      : base(original, cloner) {
     31      Name = original.Name;
     32      Description = original.Description;
     33    }
     34    public NamedOKBItem() {
     35      Name = "New Item";
     36      Description = string.Empty;
     37    }
     38
    2939    public override IDeepCloneable Clone(Cloner cloner) {
    30       NamedOKBItem clone = (NamedOKBItem)base.Clone(cloner);
    31       clone.Name = Name;
    32       clone.Description = Description;
    33       return clone;
     40      return new NamedOKBItem(this, cloner);
    3441    }
    3542
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/OKBItem.cs

    r4566 r4918  
    6262    }
    6363
     64    protected OKBItem(OKBItem original, Cloner cloner) {
     65      cloner.RegisterClonedObject(original, this);
     66      modified = true;
     67    }
    6468    protected OKBItem() {
    6569      modified = true;
     
    7579    }
    7680    public virtual IDeepCloneable Clone(Cloner cloner) {
    77       OKBItem clone = (OKBItem)Activator.CreateInstance(this.GetType(), true);
    78       cloner.RegisterClonedObject(this, clone);
    79       return clone;
     81      return new OKBItem(this, cloner);
    8082    }
    8183
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/OKBServiceClient.cs

    r4591 r4918  
    5656
    5757    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
     58
    5859  }
    5960
     
    561562  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    562563  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     564  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.AlgorithmParameterFloatValue))]
     565  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.AlgorithmParameterStringValue))]
     566  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.AlgorithmParameterBlobValue))]
     567  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.AlgorithmParameterIntValue))]
     568  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.AlgorithmParameterBoolValue))]
    563569  public partial class AlgorithmParameterValue : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    564570
     
    632638  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    633639  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     640  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ProblemParameterFloatValue))]
     641  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ProblemParameterIntValue))]
     642  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ProblemParameterBlobValue))]
     643  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ProblemParameterBoolValue))]
     644  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ProblemParameterStringValue))]
    634645  public partial class ProblemParameterValue : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    635646
     
    702713  [System.Diagnostics.DebuggerStepThroughAttribute()]
    703714  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     715  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterFloatValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     716  public partial class AlgorithmParameterFloatValue : HeuristicLab.Clients.OKB.AlgorithmParameterValue {
     717
     718    private double ValueField;
     719
     720    [System.Runtime.Serialization.DataMemberAttribute()]
     721    public double Value {
     722      get {
     723        return this.ValueField;
     724      }
     725      set {
     726        if ((this.ValueField.Equals(value) != true)) {
     727          this.ValueField = value;
     728          this.RaisePropertyChanged("Value");
     729        }
     730      }
     731    }
     732  }
     733
     734  [System.Diagnostics.DebuggerStepThroughAttribute()]
     735  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     736  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterStringValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     737  public partial class AlgorithmParameterStringValue : HeuristicLab.Clients.OKB.AlgorithmParameterValue {
     738
     739    private string ValueField;
     740
     741    [System.Runtime.Serialization.DataMemberAttribute()]
     742    public string Value {
     743      get {
     744        return this.ValueField;
     745      }
     746      set {
     747        if ((object.ReferenceEquals(this.ValueField, value) != true)) {
     748          this.ValueField = value;
     749          this.RaisePropertyChanged("Value");
     750        }
     751      }
     752    }
     753  }
     754
     755  [System.Diagnostics.DebuggerStepThroughAttribute()]
     756  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     757  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterBlobValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     758  public partial class AlgorithmParameterBlobValue : HeuristicLab.Clients.OKB.AlgorithmParameterValue {
     759
     760    private byte[] ValueField;
     761
     762    [System.Runtime.Serialization.DataMemberAttribute()]
     763    public byte[] Value {
     764      get {
     765        return this.ValueField;
     766      }
     767      set {
     768        if ((object.ReferenceEquals(this.ValueField, value) != true)) {
     769          this.ValueField = value;
     770          this.RaisePropertyChanged("Value");
     771        }
     772      }
     773    }
     774  }
     775
     776  [System.Diagnostics.DebuggerStepThroughAttribute()]
     777  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     778  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterIntValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     779  public partial class AlgorithmParameterIntValue : HeuristicLab.Clients.OKB.AlgorithmParameterValue {
     780
     781    private long ValueField;
     782
     783    [System.Runtime.Serialization.DataMemberAttribute()]
     784    public long Value {
     785      get {
     786        return this.ValueField;
     787      }
     788      set {
     789        if ((this.ValueField.Equals(value) != true)) {
     790          this.ValueField = value;
     791          this.RaisePropertyChanged("Value");
     792        }
     793      }
     794    }
     795  }
     796
     797  [System.Diagnostics.DebuggerStepThroughAttribute()]
     798  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     799  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterBoolValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     800  public partial class AlgorithmParameterBoolValue : HeuristicLab.Clients.OKB.AlgorithmParameterValue {
     801
     802    private bool ValueField;
     803
     804    [System.Runtime.Serialization.DataMemberAttribute()]
     805    public bool Value {
     806      get {
     807        return this.ValueField;
     808      }
     809      set {
     810        if ((this.ValueField.Equals(value) != true)) {
     811          this.ValueField = value;
     812          this.RaisePropertyChanged("Value");
     813        }
     814      }
     815    }
     816  }
     817
     818  [System.Diagnostics.DebuggerStepThroughAttribute()]
     819  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     820  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterFloatValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     821  public partial class ProblemParameterFloatValue : HeuristicLab.Clients.OKB.ProblemParameterValue {
     822
     823    private double ValueField;
     824
     825    [System.Runtime.Serialization.DataMemberAttribute()]
     826    public double Value {
     827      get {
     828        return this.ValueField;
     829      }
     830      set {
     831        if ((this.ValueField.Equals(value) != true)) {
     832          this.ValueField = value;
     833          this.RaisePropertyChanged("Value");
     834        }
     835      }
     836    }
     837  }
     838
     839  [System.Diagnostics.DebuggerStepThroughAttribute()]
     840  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     841  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterIntValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     842  public partial class ProblemParameterIntValue : HeuristicLab.Clients.OKB.ProblemParameterValue {
     843
     844    private long ValueField;
     845
     846    [System.Runtime.Serialization.DataMemberAttribute()]
     847    public long Value {
     848      get {
     849        return this.ValueField;
     850      }
     851      set {
     852        if ((this.ValueField.Equals(value) != true)) {
     853          this.ValueField = value;
     854          this.RaisePropertyChanged("Value");
     855        }
     856      }
     857    }
     858  }
     859
     860  [System.Diagnostics.DebuggerStepThroughAttribute()]
     861  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     862  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterBlobValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     863  public partial class ProblemParameterBlobValue : HeuristicLab.Clients.OKB.ProblemParameterValue {
     864
     865    private byte[] ValueField;
     866
     867    [System.Runtime.Serialization.DataMemberAttribute()]
     868    public byte[] Value {
     869      get {
     870        return this.ValueField;
     871      }
     872      set {
     873        if ((object.ReferenceEquals(this.ValueField, value) != true)) {
     874          this.ValueField = value;
     875          this.RaisePropertyChanged("Value");
     876        }
     877      }
     878    }
     879  }
     880
     881  [System.Diagnostics.DebuggerStepThroughAttribute()]
     882  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     883  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterBoolValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     884  public partial class ProblemParameterBoolValue : HeuristicLab.Clients.OKB.ProblemParameterValue {
     885
     886    private bool ValueField;
     887
     888    [System.Runtime.Serialization.DataMemberAttribute()]
     889    public bool Value {
     890      get {
     891        return this.ValueField;
     892      }
     893      set {
     894        if ((this.ValueField.Equals(value) != true)) {
     895          this.ValueField = value;
     896          this.RaisePropertyChanged("Value");
     897        }
     898      }
     899    }
     900  }
     901
     902  [System.Diagnostics.DebuggerStepThroughAttribute()]
     903  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     904  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterStringValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     905  public partial class ProblemParameterStringValue : HeuristicLab.Clients.OKB.ProblemParameterValue {
     906
     907    private string ValueField;
     908
     909    [System.Runtime.Serialization.DataMemberAttribute()]
     910    public string Value {
     911      get {
     912        return this.ValueField;
     913      }
     914      set {
     915        if ((object.ReferenceEquals(this.ValueField, value) != true)) {
     916          this.ValueField = value;
     917          this.RaisePropertyChanged("Value");
     918        }
     919      }
     920    }
     921  }
     922
     923  [System.Diagnostics.DebuggerStepThroughAttribute()]
     924  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    704925  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     926  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ResultBlobValue))]
     927  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ResultBoolValue))]
     928  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ResultStringValue))]
     929  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ResultIntValue))]
     930  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.ResultFloatValue))]
    705931  public partial class ResultValue : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    706932
     
    773999  [System.Diagnostics.DebuggerStepThroughAttribute()]
    7741000  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     1001  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultBlobValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     1002  public partial class ResultBlobValue : HeuristicLab.Clients.OKB.ResultValue {
     1003
     1004    private byte[] ValueField;
     1005
     1006    [System.Runtime.Serialization.DataMemberAttribute()]
     1007    public byte[] Value {
     1008      get {
     1009        return this.ValueField;
     1010      }
     1011      set {
     1012        if ((object.ReferenceEquals(this.ValueField, value) != true)) {
     1013          this.ValueField = value;
     1014          this.RaisePropertyChanged("Value");
     1015        }
     1016      }
     1017    }
     1018  }
     1019
     1020  [System.Diagnostics.DebuggerStepThroughAttribute()]
     1021  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     1022  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultBoolValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     1023  public partial class ResultBoolValue : HeuristicLab.Clients.OKB.ResultValue {
     1024
     1025    private bool ValueField;
     1026
     1027    [System.Runtime.Serialization.DataMemberAttribute()]
     1028    public bool Value {
     1029      get {
     1030        return this.ValueField;
     1031      }
     1032      set {
     1033        if ((this.ValueField.Equals(value) != true)) {
     1034          this.ValueField = value;
     1035          this.RaisePropertyChanged("Value");
     1036        }
     1037      }
     1038    }
     1039  }
     1040
     1041  [System.Diagnostics.DebuggerStepThroughAttribute()]
     1042  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     1043  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultStringValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     1044  public partial class ResultStringValue : HeuristicLab.Clients.OKB.ResultValue {
     1045
     1046    private string ValueField;
     1047
     1048    [System.Runtime.Serialization.DataMemberAttribute()]
     1049    public string Value {
     1050      get {
     1051        return this.ValueField;
     1052      }
     1053      set {
     1054        if ((object.ReferenceEquals(this.ValueField, value) != true)) {
     1055          this.ValueField = value;
     1056          this.RaisePropertyChanged("Value");
     1057        }
     1058      }
     1059    }
     1060  }
     1061
     1062  [System.Diagnostics.DebuggerStepThroughAttribute()]
     1063  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     1064  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultIntValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     1065  public partial class ResultIntValue : HeuristicLab.Clients.OKB.ResultValue {
     1066
     1067    private long ValueField;
     1068
     1069    [System.Runtime.Serialization.DataMemberAttribute()]
     1070    public long Value {
     1071      get {
     1072        return this.ValueField;
     1073      }
     1074      set {
     1075        if ((this.ValueField.Equals(value) != true)) {
     1076          this.ValueField = value;
     1077          this.RaisePropertyChanged("Value");
     1078        }
     1079      }
     1080    }
     1081  }
     1082
     1083  [System.Diagnostics.DebuggerStepThroughAttribute()]
     1084  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     1085  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultFloatValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     1086  public partial class ResultFloatValue : HeuristicLab.Clients.OKB.ResultValue {
     1087
     1088    private double ValueField;
     1089
     1090    [System.Runtime.Serialization.DataMemberAttribute()]
     1091    public double Value {
     1092      get {
     1093        return this.ValueField;
     1094      }
     1095      set {
     1096        if ((this.ValueField.Equals(value) != true)) {
     1097          this.ValueField = value;
     1098          this.RaisePropertyChanged("Value");
     1099        }
     1100      }
     1101    }
     1102  }
     1103
     1104  [System.Diagnostics.DebuggerStepThroughAttribute()]
     1105  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    7751106  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
    7761107  public partial class ProblemData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/Platform.cs

    r4456 r4918  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324
     
    2526  [Item("Platform", "An OKB platform.")]
    2627  public partial class Platform {
     28    protected Platform(Platform original, Cloner cloner) : base(original, cloner) { }
    2729    public Platform() {
    2830      Name = "New Platform";
    2931    }
     32
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new Platform(this, cloner);
     35    }
    3036  }
    3137}
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/Problem.cs

    r4566 r4918  
    2626  [Item("Problem", "An OKB problem.")]
    2727  public partial class Problem {
     28    protected Problem(Problem original, Cloner cloner)
     29      : base(original, cloner) {
     30      PlatformId = original.PlatformId;
     31      ProblemClassId = original.ProblemClassId;
     32    }
    2833    public Problem() {
    2934      Name = "New Problem";
     
    3338
    3439    public override IDeepCloneable Clone(Cloner cloner) {
    35       Problem clone = (Problem)base.Clone(cloner);
    36       clone.PlatformId = PlatformId;
    37       clone.ProblemClassId = ProblemClassId;
    38       return clone;
     40      return new Problem(this, cloner);
    3941    }
    4042  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/ProblemClass.cs

    r4481 r4918  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324
     
    2526  [Item("ProblemClass", "An OKB problem class.")]
    2627  public partial class ProblemClass {
     28    protected ProblemClass(ProblemClass original, Cloner cloner) : base(original, cloner) { }
    2729    public ProblemClass() {
    2830      Name = "New Problem Class";
    2931    }
     32
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new ProblemClass(this, cloner);
     35    }
    3036  }
    3137}
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/ProblemParameter.cs

    r4566 r4918  
    2626  [Item("ProblemParameter", "An OKB problem parameter.")]
    2727  public partial class ProblemParameter {
     28    protected ProblemParameter(ProblemParameter original, Cloner cloner)
     29      : base(original, cloner) {
     30      Alias = original.Alias;
     31      ProblemId = original.ProblemId;
     32      DataTypeId = original.DataTypeId;
     33    }
    2834    public ProblemParameter() {
    2935      Name = "New ProblemParameter";
     
    3440
    3541    public override IDeepCloneable Clone(Cloner cloner) {
    36       ProblemParameter clone = (ProblemParameter)base.Clone(cloner);
    37       clone.Alias = Alias;
    38       clone.ProblemId = ProblemId;
    39       clone.DataTypeId = DataTypeId;
    40       return clone;
     42      return new ProblemParameter(this, cloner);
    4143    }
    4244  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/Result.cs

    r4566 r4918  
    2626  [Item("Result", "An OKB result.")]
    2727  public partial class Result {
     28    protected Result(Result original, Cloner cloner)
     29      : base(original, cloner) {
     30      Alias = original.Alias;
     31      AlgorithmId = original.AlgorithmId;
     32      DataTypeId = original.DataTypeId;
     33    }
    2834    public Result() {
    2935      Name = "New Result";
     
    3440
    3541    public override IDeepCloneable Clone(Cloner cloner) {
    36       Result clone = (Result)base.Clone(cloner);
    37       clone.Alias = Alias;
    38       clone.AlgorithmId = AlgorithmId;
    39       clone.DataTypeId = DataTypeId;
    40       return clone;
     42      return new Result(this, cloner);
    4143    }
    4244  }
Note: See TracChangeset for help on using the changeset viewer.