Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/11/10 01:32:03 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

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

Legend:

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

    r4587 r4591  
    144144          else if (item is Result)
    145145            item.Id = CallAdminService<long>(s => s.AddResult((Result)item));
     146          else if (item is Experiment)
     147            item.Id = CallAdminService<long>(s => s.AddExperiment((Experiment)item));
     148          else if (item is Run)
     149            item.Id = CallAdminService<long>(s => s.AddRun((Run)item));
    146150        } else {
    147151          if (item is Platform)
     
    163167          else if (item is Result)
    164168            CallAdminService(s => s.UpdateResult((Result)item));
     169          else if (item is Experiment)
     170            item.Id = CallAdminService<long>(s => s.AddExperiment((Experiment)item));
     171          else if (item is Run)
     172            item.Id = CallAdminService<long>(s => s.AddRun((Run)item));
    165173        }
    166174        return true;
     
    315323
    316324    #region Run Methods
    317     public bool AddRun(long algorithmId, long problemId, Run run) {
     325    public bool AddRun(long algorithmId, long problemId, HeuristicLab.Optimization.Run run) {
    318326      try {
    319327        IAlgorithm algorithm = run.Algorithm;
     
    321329
    322330        ItemCollection<AlgorithmParameter> algorithmParameters = GetAlgorithmParameters(algorithmId);
    323         AddAlgorithmParamters(algorithmId, algorithmParameters, algorithm, "");
     331        List<AlgorithmParameterValue> algorithmParameterValues = CollectAlgorithmParameterValues(algorithmId, algorithmParameters, algorithm, "");
    324332        ItemCollection<ProblemParameter> problemParameters = GetProblemParameters(problemId);
    325         AddProblemParamters(problemId, problemParameters, problem, "");
     333        List<ProblemParameterValue> problemParameterValues = CollectProblemParamterValues(problemId, problemParameters, problem, "");
     334        ItemCollection<Result> results = GetResults(algorithmId);
     335        List<ResultValue> resultValues = CollectResultValues(algorithmId, results, algorithm);
     336
     337        Experiment exp = new Experiment();
     338        exp.AlgorithmId = algorithmId;
     339        exp.ProblemId = problemId;
     340        exp.AlgorithmParameterValues = algorithmParameterValues.ToArray();
     341        exp.ProblemParameterValues = problemParameterValues.ToArray();
     342        exp.Store();
     343
     344        Run r = new Run();
     345        r.ExperimentId = exp.Id;
     346        r.ClientId = Guid.NewGuid();
     347        r.FinishedDate = DateTime.Now;
     348        r.RandomSeed = ((IntValue)((IValueParameter)run.Parameters["Seed"]).Value).Value;
     349        r.ResultValues = resultValues.ToArray();
     350        r.Store();
    326351
    327352        return true;
     
    333358    }
    334359
    335     private void AddAlgorithmParamters(long algorithmId, ItemCollection<AlgorithmParameter> parameters, IParameterizedItem item, string prefix) {
     360    private List<AlgorithmParameterValue> CollectAlgorithmParameterValues(long algorithmId, ItemCollection<AlgorithmParameter> parameters, IParameterizedItem item, string prefix) {
     361      List<AlgorithmParameterValue> values = new List<AlgorithmParameterValue>();
    336362      foreach (IValueParameter param in item.Parameters.OfType<IValueParameter>()) {
    337         if (param.GetsCollected && (param.Value != null) && (parameters.FirstOrDefault(x => x.Name == prefix + param.Name) == null)) {
    338           AlgorithmParameter p = new AlgorithmParameter();
    339           p.Name = prefix + param.Name;
    340           p.Alias = prefix + param.Name;
    341           p.Description = param.Description;
    342           p.AlgorithmId = algorithmId;
    343           p.DataTypeId = ConvertToDataType(param.DataType).Id;
    344           p.Store();
    345           parameters.Add(p);
    346         }
     363        if (param.GetsCollected && (param.Value != null)) {
     364          AlgorithmParameter p = parameters.FirstOrDefault(x => x.Name == prefix + param.Name);
     365          if (p == null) {
     366            p = new AlgorithmParameter();
     367            p.Name = prefix + param.Name;
     368            p.Alias = prefix + param.Name;
     369            p.Description = param.Description;
     370            p.AlgorithmId = algorithmId;
     371            p.DataTypeId = ConvertToDataType(param.DataType).Id;
     372            p.Store();
     373            parameters.Add(p);
     374          }
     375          AlgorithmParameterValue value = null;
     376          // TODO
     377          value.AlgorithmParameterId = p.Id;
     378          value.DataTypeId = ConvertToDataType(param.Value.GetType()).Id;
     379        }
     380
    347381        if (param.Value is IParameterizedItem)
    348           AddAlgorithmParamters(algorithmId, parameters, (IParameterizedItem)param.Value, (string.IsNullOrEmpty(prefix) ? param.Name : prefix + param.Name) + ".");
    349       }
    350     }
    351     private void AddProblemParamters(long problemId, ItemCollection<ProblemParameter> parameters, IParameterizedItem item, string prefix) {
     382          values.AddRange(CollectAlgorithmParameterValues(algorithmId, parameters, (IParameterizedItem)param.Value, (string.IsNullOrEmpty(prefix) ? param.Name : prefix + param.Name) + "."));
     383      }
     384      return values;
     385    }
     386    private List<ProblemParameterValue> CollectProblemParamterValues(long problemId, ItemCollection<ProblemParameter> parameters, IParameterizedItem item, string prefix) {
     387      List<ProblemParameterValue> values = new List<ProblemParameterValue>();
    352388      foreach (IValueParameter param in item.Parameters.OfType<IValueParameter>()) {
    353389        if (param.GetsCollected && (param.Value != null) && (parameters.FirstOrDefault(x => x.Name == prefix + param.Name) == null)) {
     
    362398        }
    363399        if (param.Value is IParameterizedItem)
    364           AddProblemParamters(problemId, parameters, (IParameterizedItem)param.Value, (string.IsNullOrEmpty(prefix) ? param.Name : prefix + param.Name) + ".");
    365       }
     400          values.AddRange(CollectProblemParamterValues(problemId, parameters, (IParameterizedItem)param.Value, (string.IsNullOrEmpty(prefix) ? param.Name : prefix + param.Name) + "."));
     401      }
     402      return values;
     403    }
     404    private List<ResultValue> CollectResultValues(long algorithmId, ItemCollection<Result> results, IAlgorithm algorithm) {
     405      List<ResultValue> values = new List<ResultValue>();
     406      foreach (IResult result in algorithm.Results) {
     407        if ((result.Value != null) && (results.FirstOrDefault(x => x.Name == result.Name) == null)) {
     408          Result r = new Result();
     409          r.Name = result.Name;
     410          r.Alias = result.Name;
     411          r.Description = result.Description;
     412          r.AlgorithmId = algorithmId;
     413          r.DataTypeId = ConvertToDataType(result.DataType).Id;
     414          r.Store();
     415          results.Add(r);
     416        }
     417      }
     418      return values;
    366419    }
    367420    #endregion
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBExperiment.cs

    r4587 r4591  
    320320    private void Runs_ItemsAdded(object sender, Collections.CollectionItemsChangedEventArgs<IRun> e) {
    321321      try {
    322         foreach (Run run in e.Items)
     322        foreach (HeuristicLab.Optimization.Run run in e.Items)
    323323          OKBClient.Instance.AddRun(AlgorithmId, ProblemId, run);
    324324      }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/OKBServiceClient.cs

    r4587 r4591  
    1515  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    1616  [System.Runtime.Serialization.DataContractAttribute(Name = "OKBItem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     17  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Experiment))]
     18  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Run))]
    1719  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.DataType))]
    1820  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.NamedOKBItem))]
     
    5860  [System.Diagnostics.DebuggerStepThroughAttribute()]
    5961  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     62  [System.Runtime.Serialization.DataContractAttribute(Name = "Experiment", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     63  public partial class Experiment : HeuristicLab.Clients.OKB.OKBItem {
     64
     65    private long AlgorithmIdField;
     66
     67    private HeuristicLab.Clients.OKB.AlgorithmParameterValue[] AlgorithmParameterValuesField;
     68
     69    private long ProblemIdField;
     70
     71    private HeuristicLab.Clients.OKB.ProblemParameterValue[] ProblemParameterValuesField;
     72
     73    [System.Runtime.Serialization.DataMemberAttribute()]
     74    public long AlgorithmId {
     75      get {
     76        return this.AlgorithmIdField;
     77      }
     78      set {
     79        if ((this.AlgorithmIdField.Equals(value) != true)) {
     80          this.AlgorithmIdField = value;
     81          this.RaisePropertyChanged("AlgorithmId");
     82        }
     83      }
     84    }
     85
     86    [System.Runtime.Serialization.DataMemberAttribute()]
     87    public HeuristicLab.Clients.OKB.AlgorithmParameterValue[] AlgorithmParameterValues {
     88      get {
     89        return this.AlgorithmParameterValuesField;
     90      }
     91      set {
     92        if ((object.ReferenceEquals(this.AlgorithmParameterValuesField, value) != true)) {
     93          this.AlgorithmParameterValuesField = value;
     94          this.RaisePropertyChanged("AlgorithmParameterValues");
     95        }
     96      }
     97    }
     98
     99    [System.Runtime.Serialization.DataMemberAttribute()]
     100    public long ProblemId {
     101      get {
     102        return this.ProblemIdField;
     103      }
     104      set {
     105        if ((this.ProblemIdField.Equals(value) != true)) {
     106          this.ProblemIdField = value;
     107          this.RaisePropertyChanged("ProblemId");
     108        }
     109      }
     110    }
     111
     112    [System.Runtime.Serialization.DataMemberAttribute()]
     113    public HeuristicLab.Clients.OKB.ProblemParameterValue[] ProblemParameterValues {
     114      get {
     115        return this.ProblemParameterValuesField;
     116      }
     117      set {
     118        if ((object.ReferenceEquals(this.ProblemParameterValuesField, value) != true)) {
     119          this.ProblemParameterValuesField = value;
     120          this.RaisePropertyChanged("ProblemParameterValues");
     121        }
     122      }
     123    }
     124  }
     125
     126  [System.Diagnostics.DebuggerStepThroughAttribute()]
     127  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     128  [System.Runtime.Serialization.DataContractAttribute(Name = "Run", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     129  public partial class Run : HeuristicLab.Clients.OKB.OKBItem {
     130
     131    private System.Guid ClientIdField;
     132
     133    private long ExperimentIdField;
     134
     135    private System.Nullable<System.DateTime> FinishedDateField;
     136
     137    private int RandomSeedField;
     138
     139    private HeuristicLab.Clients.OKB.ResultValue[] ResultValuesField;
     140
     141    private System.Guid UserIdField;
     142
     143    [System.Runtime.Serialization.DataMemberAttribute()]
     144    public System.Guid ClientId {
     145      get {
     146        return this.ClientIdField;
     147      }
     148      set {
     149        if ((this.ClientIdField.Equals(value) != true)) {
     150          this.ClientIdField = value;
     151          this.RaisePropertyChanged("ClientId");
     152        }
     153      }
     154    }
     155
     156    [System.Runtime.Serialization.DataMemberAttribute()]
     157    public long ExperimentId {
     158      get {
     159        return this.ExperimentIdField;
     160      }
     161      set {
     162        if ((this.ExperimentIdField.Equals(value) != true)) {
     163          this.ExperimentIdField = value;
     164          this.RaisePropertyChanged("ExperimentId");
     165        }
     166      }
     167    }
     168
     169    [System.Runtime.Serialization.DataMemberAttribute()]
     170    public System.Nullable<System.DateTime> FinishedDate {
     171      get {
     172        return this.FinishedDateField;
     173      }
     174      set {
     175        if ((this.FinishedDateField.Equals(value) != true)) {
     176          this.FinishedDateField = value;
     177          this.RaisePropertyChanged("FinishedDate");
     178        }
     179      }
     180    }
     181
     182    [System.Runtime.Serialization.DataMemberAttribute()]
     183    public int RandomSeed {
     184      get {
     185        return this.RandomSeedField;
     186      }
     187      set {
     188        if ((this.RandomSeedField.Equals(value) != true)) {
     189          this.RandomSeedField = value;
     190          this.RaisePropertyChanged("RandomSeed");
     191        }
     192      }
     193    }
     194
     195    [System.Runtime.Serialization.DataMemberAttribute()]
     196    public HeuristicLab.Clients.OKB.ResultValue[] ResultValues {
     197      get {
     198        return this.ResultValuesField;
     199      }
     200      set {
     201        if ((object.ReferenceEquals(this.ResultValuesField, value) != true)) {
     202          this.ResultValuesField = value;
     203          this.RaisePropertyChanged("ResultValues");
     204        }
     205      }
     206    }
     207
     208    [System.Runtime.Serialization.DataMemberAttribute()]
     209    public System.Guid UserId {
     210      get {
     211        return this.UserIdField;
     212      }
     213      set {
     214        if ((this.UserIdField.Equals(value) != true)) {
     215          this.UserIdField = value;
     216          this.RaisePropertyChanged("UserId");
     217        }
     218      }
     219    }
     220  }
     221
     222  [System.Diagnostics.DebuggerStepThroughAttribute()]
     223  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    60224  [System.Runtime.Serialization.DataContractAttribute(Name = "DataType", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
    61225  public partial class DataType : HeuristicLab.Clients.OKB.OKBItem {
     
    396560  [System.Diagnostics.DebuggerStepThroughAttribute()]
    397561  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    398   [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
    399   public partial class ProblemData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     562  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmParameterValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     563  public partial class AlgorithmParameterValue : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    400564
    401565    private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
    402566
    403     private byte[] DataField;
     567    private long AlgorithmParameterIdField;
    404568
    405569    private long DataTypeIdField;
    406570
    407     private long ProblemIdField;
     571    private long ExperimentIdField;
    408572
    409573    public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
     
    417581
    418582    [System.Runtime.Serialization.DataMemberAttribute()]
    419     public byte[] Data {
    420       get {
    421         return this.DataField;
    422       }
    423       set {
    424         if ((object.ReferenceEquals(this.DataField, value) != true)) {
    425           this.DataField = value;
    426           this.RaisePropertyChanged("Data");
     583    public long AlgorithmParameterId {
     584      get {
     585        return this.AlgorithmParameterIdField;
     586      }
     587      set {
     588        if ((this.AlgorithmParameterIdField.Equals(value) != true)) {
     589          this.AlgorithmParameterIdField = value;
     590          this.RaisePropertyChanged("AlgorithmParameterId");
    427591        }
    428592      }
     
    443607
    444608    [System.Runtime.Serialization.DataMemberAttribute()]
    445     public long ProblemId {
    446       get {
    447         return this.ProblemIdField;
    448       }
    449       set {
    450         if ((this.ProblemIdField.Equals(value) != true)) {
    451           this.ProblemIdField = value;
    452           this.RaisePropertyChanged("ProblemId");
     609    public long ExperimentId {
     610      get {
     611        return this.ExperimentIdField;
     612      }
     613      set {
     614        if ((this.ExperimentIdField.Equals(value) != true)) {
     615          this.ExperimentIdField = value;
     616          this.RaisePropertyChanged("ExperimentId");
    453617        }
    454618      }
     
    467631  [System.Diagnostics.DebuggerStepThroughAttribute()]
    468632  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    469   [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
    470   public partial class AlgorithmData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     633  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemParameterValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     634  public partial class ProblemParameterValue : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    471635
    472636    private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
    473637
    474     private long AlgorithmIdField;
    475 
    476     private byte[] DataField;
    477 
    478638    private long DataTypeIdField;
    479639
     640    private long ExperimentIdField;
     641
     642    private long ProblemParameterIdField;
     643
    480644    public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
    481645      get {
     
    484648      set {
    485649        this.extensionDataField = value;
    486       }
    487     }
    488 
    489     [System.Runtime.Serialization.DataMemberAttribute()]
    490     public long AlgorithmId {
    491       get {
    492         return this.AlgorithmIdField;
    493       }
    494       set {
    495         if ((this.AlgorithmIdField.Equals(value) != true)) {
    496           this.AlgorithmIdField = value;
    497           this.RaisePropertyChanged("AlgorithmId");
    498         }
    499       }
    500     }
    501 
    502     [System.Runtime.Serialization.DataMemberAttribute()]
    503     public byte[] Data {
    504       get {
    505         return this.DataField;
    506       }
    507       set {
    508         if ((object.ReferenceEquals(this.DataField, value) != true)) {
    509           this.DataField = value;
    510           this.RaisePropertyChanged("Data");
    511         }
    512650      }
    513651    }
     
    522660          this.DataTypeIdField = value;
    523661          this.RaisePropertyChanged("DataTypeId");
     662        }
     663      }
     664    }
     665
     666    [System.Runtime.Serialization.DataMemberAttribute()]
     667    public long ExperimentId {
     668      get {
     669        return this.ExperimentIdField;
     670      }
     671      set {
     672        if ((this.ExperimentIdField.Equals(value) != true)) {
     673          this.ExperimentIdField = value;
     674          this.RaisePropertyChanged("ExperimentId");
     675        }
     676      }
     677    }
     678
     679    [System.Runtime.Serialization.DataMemberAttribute()]
     680    public long ProblemParameterId {
     681      get {
     682        return this.ProblemParameterIdField;
     683      }
     684      set {
     685        if ((this.ProblemParameterIdField.Equals(value) != true)) {
     686          this.ProblemParameterIdField = value;
     687          this.RaisePropertyChanged("ProblemParameterId");
    524688        }
    525689      }
     
    536700  }
    537701
     702  [System.Diagnostics.DebuggerStepThroughAttribute()]
     703  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     704  [System.Runtime.Serialization.DataContractAttribute(Name = "ResultValue", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     705  public partial class ResultValue : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     706
     707    private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
     708
     709    private long DataTypeIdField;
     710
     711    private long ResultIdField;
     712
     713    private long RunIdField;
     714
     715    public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
     716      get {
     717        return this.extensionDataField;
     718      }
     719      set {
     720        this.extensionDataField = value;
     721      }
     722    }
     723
     724    [System.Runtime.Serialization.DataMemberAttribute()]
     725    public long DataTypeId {
     726      get {
     727        return this.DataTypeIdField;
     728      }
     729      set {
     730        if ((this.DataTypeIdField.Equals(value) != true)) {
     731          this.DataTypeIdField = value;
     732          this.RaisePropertyChanged("DataTypeId");
     733        }
     734      }
     735    }
     736
     737    [System.Runtime.Serialization.DataMemberAttribute()]
     738    public long ResultId {
     739      get {
     740        return this.ResultIdField;
     741      }
     742      set {
     743        if ((this.ResultIdField.Equals(value) != true)) {
     744          this.ResultIdField = value;
     745          this.RaisePropertyChanged("ResultId");
     746        }
     747      }
     748    }
     749
     750    [System.Runtime.Serialization.DataMemberAttribute()]
     751    public long RunId {
     752      get {
     753        return this.RunIdField;
     754      }
     755      set {
     756        if ((this.RunIdField.Equals(value) != true)) {
     757          this.RunIdField = value;
     758          this.RaisePropertyChanged("RunId");
     759        }
     760      }
     761    }
     762
     763    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
     764
     765    protected void RaisePropertyChanged(string propertyName) {
     766      System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
     767      if ((propertyChanged != null)) {
     768        propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
     769      }
     770    }
     771  }
     772
     773  [System.Diagnostics.DebuggerStepThroughAttribute()]
     774  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     775  [System.Runtime.Serialization.DataContractAttribute(Name = "ProblemData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     776  public partial class ProblemData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     777
     778    private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
     779
     780    private byte[] DataField;
     781
     782    private long DataTypeIdField;
     783
     784    private long ProblemIdField;
     785
     786    public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
     787      get {
     788        return this.extensionDataField;
     789      }
     790      set {
     791        this.extensionDataField = value;
     792      }
     793    }
     794
     795    [System.Runtime.Serialization.DataMemberAttribute()]
     796    public byte[] Data {
     797      get {
     798        return this.DataField;
     799      }
     800      set {
     801        if ((object.ReferenceEquals(this.DataField, value) != true)) {
     802          this.DataField = value;
     803          this.RaisePropertyChanged("Data");
     804        }
     805      }
     806    }
     807
     808    [System.Runtime.Serialization.DataMemberAttribute()]
     809    public long DataTypeId {
     810      get {
     811        return this.DataTypeIdField;
     812      }
     813      set {
     814        if ((this.DataTypeIdField.Equals(value) != true)) {
     815          this.DataTypeIdField = value;
     816          this.RaisePropertyChanged("DataTypeId");
     817        }
     818      }
     819    }
     820
     821    [System.Runtime.Serialization.DataMemberAttribute()]
     822    public long ProblemId {
     823      get {
     824        return this.ProblemIdField;
     825      }
     826      set {
     827        if ((this.ProblemIdField.Equals(value) != true)) {
     828          this.ProblemIdField = value;
     829          this.RaisePropertyChanged("ProblemId");
     830        }
     831      }
     832    }
     833
     834    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
     835
     836    protected void RaisePropertyChanged(string propertyName) {
     837      System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
     838      if ((propertyChanged != null)) {
     839        propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
     840      }
     841    }
     842  }
     843
     844  [System.Diagnostics.DebuggerStepThroughAttribute()]
     845  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     846  [System.Runtime.Serialization.DataContractAttribute(Name = "AlgorithmData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataTransfer")]
     847  public partial class AlgorithmData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     848
     849    private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
     850
     851    private long AlgorithmIdField;
     852
     853    private byte[] DataField;
     854
     855    private long DataTypeIdField;
     856
     857    public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
     858      get {
     859        return this.extensionDataField;
     860      }
     861      set {
     862        this.extensionDataField = value;
     863      }
     864    }
     865
     866    [System.Runtime.Serialization.DataMemberAttribute()]
     867    public long AlgorithmId {
     868      get {
     869        return this.AlgorithmIdField;
     870      }
     871      set {
     872        if ((this.AlgorithmIdField.Equals(value) != true)) {
     873          this.AlgorithmIdField = value;
     874          this.RaisePropertyChanged("AlgorithmId");
     875        }
     876      }
     877    }
     878
     879    [System.Runtime.Serialization.DataMemberAttribute()]
     880    public byte[] Data {
     881      get {
     882        return this.DataField;
     883      }
     884      set {
     885        if ((object.ReferenceEquals(this.DataField, value) != true)) {
     886          this.DataField = value;
     887          this.RaisePropertyChanged("Data");
     888        }
     889      }
     890    }
     891
     892    [System.Runtime.Serialization.DataMemberAttribute()]
     893    public long DataTypeId {
     894      get {
     895        return this.DataTypeIdField;
     896      }
     897      set {
     898        if ((this.DataTypeIdField.Equals(value) != true)) {
     899          this.DataTypeIdField = value;
     900          this.RaisePropertyChanged("DataTypeId");
     901        }
     902      }
     903    }
     904
     905    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
     906
     907    protected void RaisePropertyChanged(string propertyName) {
     908      System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
     909      if ((propertyChanged != null)) {
     910        propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
     911      }
     912    }
     913  }
     914
    538915  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    539916  [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "HeuristicLab.Clients.OKB.IOKBService")]
     
    549926    void DeleteResult(long id);
    550927
     928    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/GetExperiment", ReplyAction = "http://tempuri.org/IOKBService/GetExperimentResponse")]
     929    HeuristicLab.Clients.OKB.Experiment GetExperiment(long id);
     930
     931    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/GetExperiments", ReplyAction = "http://tempuri.org/IOKBService/GetExperimentsResponse")]
     932    HeuristicLab.Clients.OKB.Experiment[] GetExperiments(long algorithmId, long problemId);
     933
     934    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/AddExperiment", ReplyAction = "http://tempuri.org/IOKBService/AddExperimentResponse")]
     935    long AddExperiment(HeuristicLab.Clients.OKB.Experiment dto);
     936
     937    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/DeleteExperiment", ReplyAction = "http://tempuri.org/IOKBService/DeleteExperimentResponse")]
     938    void DeleteExperiment(long id);
     939
     940    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/GetRun", ReplyAction = "http://tempuri.org/IOKBService/GetRunResponse")]
     941    HeuristicLab.Clients.OKB.Run GetRun(long id);
     942
     943    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/GetRuns", ReplyAction = "http://tempuri.org/IOKBService/GetRunsResponse")]
     944    HeuristicLab.Clients.OKB.Run[] GetRuns(long experimentId);
     945
     946    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/AddRun", ReplyAction = "http://tempuri.org/IOKBService/AddRunResponse")]
     947    long AddRun(HeuristicLab.Clients.OKB.Run dto);
     948
     949    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/DeleteRun", ReplyAction = "http://tempuri.org/IOKBService/DeleteRunResponse")]
     950    void DeleteRun(long id);
     951
    551952    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IOKBService/GetAlgorithmParameters", ReplyAction = "http://tempuri.org/IOKBService/GetAlgorithmParametersResponse")]
    552953    HeuristicLab.Clients.OKB.AlgorithmParameter[] GetAlgorithmParameters(long algorithmId);
     
    7391140    }
    7401141
     1142    public HeuristicLab.Clients.OKB.Experiment GetExperiment(long id) {
     1143      return base.Channel.GetExperiment(id);
     1144    }
     1145
     1146    public HeuristicLab.Clients.OKB.Experiment[] GetExperiments(long algorithmId, long problemId) {
     1147      return base.Channel.GetExperiments(algorithmId, problemId);
     1148    }
     1149
     1150    public long AddExperiment(HeuristicLab.Clients.OKB.Experiment dto) {
     1151      return base.Channel.AddExperiment(dto);
     1152    }
     1153
     1154    public void DeleteExperiment(long id) {
     1155      base.Channel.DeleteExperiment(id);
     1156    }
     1157
     1158    public HeuristicLab.Clients.OKB.Run GetRun(long id) {
     1159      return base.Channel.GetRun(id);
     1160    }
     1161
     1162    public HeuristicLab.Clients.OKB.Run[] GetRuns(long experimentId) {
     1163      return base.Channel.GetRuns(experimentId);
     1164    }
     1165
     1166    public long AddRun(HeuristicLab.Clients.OKB.Run dto) {
     1167      return base.Channel.AddRun(dto);
     1168    }
     1169
     1170    public void DeleteRun(long id) {
     1171      base.Channel.DeleteRun(id);
     1172    }
     1173
    7411174    public HeuristicLab.Clients.OKB.AlgorithmParameter[] GetAlgorithmParameters(long algorithmId) {
    7421175      return base.Channel.GetAlgorithmParameters(algorithmId);
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/app.config

    r4549 r4591  
    77                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
    88                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
    9                     maxBufferPoolSize="524288" maxReceivedMessageSize="200000000"
     9                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    1010                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
    1111                    allowCookies="false">
    12                     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="200000000"
     12                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    1313                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    1414                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
Note: See TracChangeset for help on using the changeset viewer.