Changeset 13503 for trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Timestamp:
- 01/12/16 17:15:11 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Files:
-
- 8 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/RunCreationClient.cs
r12012 r13503 61 61 algorithms.AddRange(CallRunCreationService<List<Algorithm>>(s => s.GetAlgorithms("HeuristicLab 3.3"))); 62 62 problems.AddRange(CallRunCreationService<List<Problem>>(s => s.GetProblems("HeuristicLab 3.3"))); 63 } 64 finally { 63 } finally { 65 64 OnRefreshed(); 66 65 } … … 70 69 try { 71 70 Refresh(); 72 } 73 catch (Exception ex) { 71 } catch (Exception ex) { 74 72 return ex; 75 73 } … … 101 99 #endregion 102 100 101 #region Characteristic Methods 102 public static void SetCharacteristicValue(long problemId, string characteristicName, Value v) { 103 CallRunCreationService(s => s.SetCharacteristicValue(problemId, characteristicName, v)); 104 } 105 #endregion 106 103 107 #region Events 104 108 public event EventHandler Refreshing; … … 119 123 try { 120 124 call(client); 121 } 122 finally { 125 } finally { 123 126 try { 124 127 client.Close(); 125 } 126 catch (Exception) { 128 } catch (Exception) { 127 129 client.Abort(); 128 130 } … … 133 135 try { 134 136 return call(client); 135 } 136 finally { 137 } finally { 137 138 try { 138 139 client.Close(); 139 } 140 catch (Exception) { 140 } catch (Exception) { 141 141 client.Abort(); 142 142 } -
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/ServiceClient/RunCreationServiceClient.cs
r8055 r13503 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319. 2614 // Runtime Version:4.0.30319.34209 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 653 653 [System.Runtime.Serialization.DataContractAttribute(Name="Value", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" + 654 654 "aTransfer")] 655 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation. BinaryValue))]655 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.IntValue))] 656 656 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.LongValue))] 657 657 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.FloatValue))] 658 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.PercentValue))] 658 659 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.TimeSpanValue))] 659 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.IntValue))]660 660 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.BoolValue))] 661 661 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.DoubleValue))] 662 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.PercentValue))]663 662 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.StringValue))] 663 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.BinaryValue))] 664 664 public partial class Value : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 665 665 { … … 731 731 [System.Diagnostics.DebuggerStepThroughAttribute()] 732 732 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 733 [System.Runtime.Serialization.DataContractAttribute(Name=" BinaryValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +734 "aTransfer")] 735 public partial class BinaryValue : HeuristicLab.Clients.OKB.RunCreation.Value736 { 737 738 private byte[]ValueField;739 740 [System.Runtime.Serialization.DataMemberAttribute()] 741 public byte[]Value733 [System.Runtime.Serialization.DataContractAttribute(Name="IntValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" + 734 "aTransfer")] 735 public partial class IntValue : HeuristicLab.Clients.OKB.RunCreation.Value 736 { 737 738 private int ValueField; 739 740 [System.Runtime.Serialization.DataMemberAttribute()] 741 public int Value 742 742 { 743 743 get … … 747 747 set 748 748 { 749 if (( object.ReferenceEquals(this.ValueField,value) != true))749 if ((this.ValueField.Equals(value) != true)) 750 750 { 751 751 this.ValueField = value; … … 812 812 [System.Diagnostics.DebuggerStepThroughAttribute()] 813 813 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 814 [System.Runtime.Serialization.DataContractAttribute(Name=" TimeSpanValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +815 "aTransfer")] 816 public partial class TimeSpanValue : HeuristicLab.Clients.OKB.RunCreation.Value817 { 818 819 private longValueField;820 821 [System.Runtime.Serialization.DataMemberAttribute()] 822 public longValue814 [System.Runtime.Serialization.DataContractAttribute(Name="PercentValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" + 815 "aTransfer")] 816 public partial class PercentValue : HeuristicLab.Clients.OKB.RunCreation.Value 817 { 818 819 private double ValueField; 820 821 [System.Runtime.Serialization.DataMemberAttribute()] 822 public double Value 823 823 { 824 824 get … … 839 839 [System.Diagnostics.DebuggerStepThroughAttribute()] 840 840 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 841 [System.Runtime.Serialization.DataContractAttribute(Name=" IntValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +842 "aTransfer")] 843 public partial class IntValue : HeuristicLab.Clients.OKB.RunCreation.Value844 { 845 846 private intValueField;847 848 [System.Runtime.Serialization.DataMemberAttribute()] 849 public intValue841 [System.Runtime.Serialization.DataContractAttribute(Name="TimeSpanValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" + 842 "aTransfer")] 843 public partial class TimeSpanValue : HeuristicLab.Clients.OKB.RunCreation.Value 844 { 845 846 private long ValueField; 847 848 [System.Runtime.Serialization.DataMemberAttribute()] 849 public long Value 850 850 { 851 851 get … … 920 920 [System.Diagnostics.DebuggerStepThroughAttribute()] 921 921 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 922 [System.Runtime.Serialization.DataContractAttribute(Name=" PercentValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +923 "aTransfer")] 924 public partial class PercentValue : HeuristicLab.Clients.OKB.RunCreation.Value925 { 926 927 private doubleValueField;928 929 [System.Runtime.Serialization.DataMemberAttribute()] 930 public doubleValue922 [System.Runtime.Serialization.DataContractAttribute(Name="StringValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" + 923 "aTransfer")] 924 public partial class StringValue : HeuristicLab.Clients.OKB.RunCreation.Value 925 { 926 927 private string ValueField; 928 929 [System.Runtime.Serialization.DataMemberAttribute()] 930 public string Value 931 931 { 932 932 get … … 936 936 set 937 937 { 938 if (( this.ValueField.Equals(value) != true))938 if ((object.ReferenceEquals(this.ValueField, value) != true)) 939 939 { 940 940 this.ValueField = value; … … 947 947 [System.Diagnostics.DebuggerStepThroughAttribute()] 948 948 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 949 [System.Runtime.Serialization.DataContractAttribute(Name=" StringValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +950 "aTransfer")] 951 public partial class StringValue : HeuristicLab.Clients.OKB.RunCreation.Value952 { 953 954 private stringValueField;955 956 [System.Runtime.Serialization.DataMemberAttribute()] 957 public stringValue949 [System.Runtime.Serialization.DataContractAttribute(Name="BinaryValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" + 950 "aTransfer")] 951 public partial class BinaryValue : HeuristicLab.Clients.OKB.RunCreation.Value 952 { 953 954 private byte[] ValueField; 955 956 [System.Runtime.Serialization.DataMemberAttribute()] 957 public byte[] Value 958 958 { 959 959 get … … 968 968 this.RaisePropertyChanged("Value"); 969 969 } 970 } 971 } 972 } 973 974 [System.Diagnostics.DebuggerStepThroughAttribute()] 975 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 976 [System.Runtime.Serialization.DataContractAttribute(Name="MissingProblem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation")] 977 public partial class MissingProblem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 978 { 979 980 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 981 982 private string MessageField; 983 984 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 985 { 986 get 987 { 988 return this.extensionDataField; 989 } 990 set 991 { 992 this.extensionDataField = value; 993 } 994 } 995 996 [System.Runtime.Serialization.DataMemberAttribute()] 997 public string Message 998 { 999 get 1000 { 1001 return this.MessageField; 1002 } 1003 set 1004 { 1005 if ((object.ReferenceEquals(this.MessageField, value) != true)) 1006 { 1007 this.MessageField = value; 1008 this.RaisePropertyChanged("Message"); 1009 } 1010 } 1011 } 1012 1013 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1014 1015 protected void RaisePropertyChanged(string propertyName) 1016 { 1017 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1018 if ((propertyChanged != null)) 1019 { 1020 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1021 } 1022 } 1023 } 1024 1025 [System.Diagnostics.DebuggerStepThroughAttribute()] 1026 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1027 [System.Runtime.Serialization.DataContractAttribute(Name="UnknownCharacteristicType", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation")] 1028 public partial class UnknownCharacteristicType : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1029 { 1030 1031 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1032 1033 private string MessageField; 1034 1035 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 1036 { 1037 get 1038 { 1039 return this.extensionDataField; 1040 } 1041 set 1042 { 1043 this.extensionDataField = value; 1044 } 1045 } 1046 1047 [System.Runtime.Serialization.DataMemberAttribute()] 1048 public string Message 1049 { 1050 get 1051 { 1052 return this.MessageField; 1053 } 1054 set 1055 { 1056 if ((object.ReferenceEquals(this.MessageField, value) != true)) 1057 { 1058 this.MessageField = value; 1059 this.RaisePropertyChanged("Message"); 1060 } 1061 } 1062 } 1063 1064 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1065 1066 protected void RaisePropertyChanged(string propertyName) 1067 { 1068 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1069 if ((propertyChanged != null)) 1070 { 1071 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 970 1072 } 971 1073 } … … 980 1082 System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Algorithm> GetAlgorithms(string platformName); 981 1083 1084 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetAlgorithms", ReplyAction="http://tempuri.org/IRunCreationService/GetAlgorithmsResponse")] 1085 System.Threading.Tasks.Task<System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Algorithm>> GetAlgorithmsAsync(string platformName); 1086 982 1087 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetAlgorithmData", ReplyAction="http://tempuri.org/IRunCreationService/GetAlgorithmDataResponse")] 983 1088 byte[] GetAlgorithmData(long algorithmId); 984 1089 1090 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetAlgorithmData", ReplyAction="http://tempuri.org/IRunCreationService/GetAlgorithmDataResponse")] 1091 System.Threading.Tasks.Task<byte[]> GetAlgorithmDataAsync(long algorithmId); 1092 985 1093 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetProblems", ReplyAction="http://tempuri.org/IRunCreationService/GetProblemsResponse")] 986 1094 System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Problem> GetProblems(string platformName); 987 1095 1096 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetProblems", ReplyAction="http://tempuri.org/IRunCreationService/GetProblemsResponse")] 1097 System.Threading.Tasks.Task<System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Problem>> GetProblemsAsync(string platformName); 1098 988 1099 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetProblemData", ReplyAction="http://tempuri.org/IRunCreationService/GetProblemDataResponse")] 989 1100 byte[] GetProblemData(long problemId); 990 1101 1102 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/GetProblemData", ReplyAction="http://tempuri.org/IRunCreationService/GetProblemDataResponse")] 1103 System.Threading.Tasks.Task<byte[]> GetProblemDataAsync(long problemId); 1104 991 1105 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/AddRun", ReplyAction="http://tempuri.org/IRunCreationService/AddRunResponse")] 992 1106 void AddRun(HeuristicLab.Clients.OKB.RunCreation.Run run); 1107 1108 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/AddRun", ReplyAction="http://tempuri.org/IRunCreationService/AddRunResponse")] 1109 System.Threading.Tasks.Task AddRunAsync(HeuristicLab.Clients.OKB.RunCreation.Run run); 1110 1111 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/SetCharacteristicValue", ReplyAction="http://tempuri.org/IRunCreationService/SetCharacteristicValueResponse")] 1112 [System.ServiceModel.FaultContractAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.MissingProblem), Action="http://tempuri.org/IRunCreationService/SetCharacteristicValueMissingProblemFault", Name="MissingProblem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation")] 1113 [System.ServiceModel.FaultContractAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.UnknownCharacteristicType), Action="http://tempuri.org/IRunCreationService/SetCharacteristicValueUnknownCharacteristi" + 1114 "cTypeFault", Name="UnknownCharacteristicType", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation")] 1115 void SetCharacteristicValue(long problemId, string characteristicName, HeuristicLab.Clients.OKB.RunCreation.Value value); 1116 1117 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunCreationService/SetCharacteristicValue", ReplyAction="http://tempuri.org/IRunCreationService/SetCharacteristicValueResponse")] 1118 System.Threading.Tasks.Task SetCharacteristicValueAsync(long problemId, string characteristicName, HeuristicLab.Clients.OKB.RunCreation.Value value); 993 1119 } 994 1120 … … 1032 1158 } 1033 1159 1160 public System.Threading.Tasks.Task<System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Algorithm>> GetAlgorithmsAsync(string platformName) 1161 { 1162 return base.Channel.GetAlgorithmsAsync(platformName); 1163 } 1164 1034 1165 public byte[] GetAlgorithmData(long algorithmId) 1035 1166 { … … 1037 1168 } 1038 1169 1170 public System.Threading.Tasks.Task<byte[]> GetAlgorithmDataAsync(long algorithmId) 1171 { 1172 return base.Channel.GetAlgorithmDataAsync(algorithmId); 1173 } 1174 1039 1175 public System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Problem> GetProblems(string platformName) 1040 1176 { … … 1042 1178 } 1043 1179 1180 public System.Threading.Tasks.Task<System.Collections.Generic.List<HeuristicLab.Clients.OKB.RunCreation.Problem>> GetProblemsAsync(string platformName) 1181 { 1182 return base.Channel.GetProblemsAsync(platformName); 1183 } 1184 1044 1185 public byte[] GetProblemData(long problemId) 1045 1186 { … … 1047 1188 } 1048 1189 1190 public System.Threading.Tasks.Task<byte[]> GetProblemDataAsync(long problemId) 1191 { 1192 return base.Channel.GetProblemDataAsync(problemId); 1193 } 1194 1049 1195 public void AddRun(HeuristicLab.Clients.OKB.RunCreation.Run run) 1050 1196 { 1051 1197 base.Channel.AddRun(run); 1052 1198 } 1199 1200 public System.Threading.Tasks.Task AddRunAsync(HeuristicLab.Clients.OKB.RunCreation.Run run) 1201 { 1202 return base.Channel.AddRunAsync(run); 1203 } 1204 1205 public void SetCharacteristicValue(long problemId, string characteristicName, HeuristicLab.Clients.OKB.RunCreation.Value value) 1206 { 1207 base.Channel.SetCharacteristicValue(problemId, characteristicName, value); 1208 } 1209 1210 public System.Threading.Tasks.Task SetCharacteristicValueAsync(long problemId, string characteristicName, HeuristicLab.Clients.OKB.RunCreation.Value value) 1211 { 1212 return base.Channel.SetCharacteristicValueAsync(problemId, characteristicName, value); 1213 } 1053 1214 } 1054 1215 }
Note: See TracChangeset
for help on using the changeset viewer.