Changeset 7589
- Timestamp:
- 03/08/12 20:44:53 (13 years ago)
- Location:
- branches/OKB (trunk integration)
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/HeuristicLab.Clients.OKB-3.3.csproj
r7584 r7589 206 206 <Compile Include="Query\QueryMenuItem.cs" /> 207 207 <Compile Include="Query\ServiceClient\CombinedFilter.cs" /> 208 <Compile Include="Query\ServiceClient\ValueName.cs" /> 208 209 <Compile Include="Query\ServiceClient\OrdinalComparisonTimeSpanFilter.cs" /> 209 210 <Compile Include="Query\ServiceClient\NameOrdinalComparisonTimeSpanFilter.cs" /> -
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/QueryClient.cs
r7331 r7589 43 43 get { return filters; } 44 44 } 45 private List<ValueName> valueNames; 46 public IEnumerable<ValueName> ValueNames { 47 get { return valueNames; } 48 } 45 49 #endregion 46 50 47 51 private QueryClient() { 48 52 filters = new List<Filter>(); 53 valueNames = new List<ValueName>(); 49 54 } 50 55 … … 55 60 try { 56 61 filters.AddRange(CallQueryService<List<Filter>>(s => s.GetFilters())); 62 valueNames.AddRange(CallQueryService<List<ValueName>>(s => s.GetValueNames())); 57 63 } 58 64 finally { … … 86 92 public IEnumerable<Run> GetRuns(IEnumerable<long> ids, bool includeBinaryValues) { 87 93 return CallQueryService<IEnumerable<Run>>(s => s.GetRuns(ids.ToList(), includeBinaryValues)); 94 } 95 public IEnumerable<Run> GetRunsWithValues(IEnumerable<long> ids, bool includeBinaryValues, IEnumerable<ValueName> vn) { 96 return CallQueryService<IEnumerable<Run>>(s => s.GetRunsWithValues(ids.ToList(), includeBinaryValues, vn.ToList())); 88 97 } 89 98 #endregion -
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/ServiceClient/QueryServiceClient.cs
r7574 r7589 19 19 "fer")] 20 20 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonFilter))] 21 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter))] 22 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))] 21 23 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonTimeSpanFilter))] 22 24 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonTimeSpanFilter))] … … 28 30 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonFloatFilter))] 29 31 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonFloatFilter))] 30 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter))]31 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))]32 32 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonPercentFilter))] 33 33 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonPercentFilter))] 34 34 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringComparisonFilter))] 35 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonFilter))] 35 36 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringComparisonAvailableValuesFilter))] 36 37 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonAvailableValuesFilter))] 37 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonFilter))]38 38 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.CombinedFilter))] 39 39 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.EqualityComparisonFilter))] … … 113 113 [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 114 114 "fer")] 115 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter))] 116 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))] 115 117 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonTimeSpanFilter))] 116 118 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonTimeSpanFilter))] … … 122 124 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonFloatFilter))] 123 125 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonFloatFilter))] 124 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter))]125 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))]126 126 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonPercentFilter))] 127 127 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonPercentFilter))] … … 151 151 [System.Diagnostics.DebuggerStepThroughAttribute()] 152 152 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 153 [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonDoubleFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 154 "fer")] 155 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))] 156 public partial class OrdinalComparisonDoubleFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonFilter 157 { 158 159 private double ValueField; 160 161 [System.Runtime.Serialization.DataMemberAttribute()] 162 public double Value 163 { 164 get 165 { 166 return this.ValueField; 167 } 168 set 169 { 170 if ((this.ValueField.Equals(value) != true)) 171 { 172 this.ValueField = value; 173 this.RaisePropertyChanged("Value"); 174 } 175 } 176 } 177 } 178 179 [System.Diagnostics.DebuggerStepThroughAttribute()] 180 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 181 [System.Runtime.Serialization.DataContractAttribute(Name="NameOrdinalComparisonDoubleFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 182 "fer")] 183 public partial class NameOrdinalComparisonDoubleFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter 184 { 185 186 private string NameField; 187 188 [System.Runtime.Serialization.DataMemberAttribute()] 189 public string Name 190 { 191 get 192 { 193 return this.NameField; 194 } 195 set 196 { 197 if ((object.ReferenceEquals(this.NameField, value) != true)) 198 { 199 this.NameField = value; 200 this.RaisePropertyChanged("Name"); 201 } 202 } 203 } 204 } 205 206 [System.Diagnostics.DebuggerStepThroughAttribute()] 207 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 153 208 [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonTimeSpanFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 154 209 "fer")] … … 398 453 [System.Diagnostics.DebuggerStepThroughAttribute()] 399 454 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 400 [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparison DoubleFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +401 "fer")] 402 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparison DoubleFilter))]403 public partial class OrdinalComparison DoubleFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonFilter455 [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonPercentFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 456 "fer")] 457 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonPercentFilter))] 458 public partial class OrdinalComparisonPercentFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonFilter 404 459 { 405 460 … … 426 481 [System.Diagnostics.DebuggerStepThroughAttribute()] 427 482 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 428 [System.Runtime.Serialization.DataContractAttribute(Name="NameOrdinalComparison DoubleFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +429 "fer")] 430 public partial class NameOrdinalComparison DoubleFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter483 [System.Runtime.Serialization.DataContractAttribute(Name="NameOrdinalComparisonPercentFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 484 "fer")] 485 public partial class NameOrdinalComparisonPercentFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonPercentFilter 431 486 { 432 487 … … 453 508 [System.Diagnostics.DebuggerStepThroughAttribute()] 454 509 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 455 [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonPercentFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 456 "fer")] 457 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonPercentFilter))] 458 public partial class OrdinalComparisonPercentFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonFilter 459 { 460 461 private double ValueField; 462 463 [System.Runtime.Serialization.DataMemberAttribute()] 464 public double Value 510 [System.Runtime.Serialization.DataContractAttribute(Name="StringComparisonFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 511 "fer")] 512 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonFilter))] 513 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringComparisonAvailableValuesFilter))] 514 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonAvailableValuesFilter))] 515 public partial class StringComparisonFilter : HeuristicLab.Clients.OKB.Query.Filter 516 { 517 518 private HeuristicLab.Clients.OKB.Query.StringComparison ComparisonField; 519 520 private string ValueField; 521 522 [System.Runtime.Serialization.DataMemberAttribute()] 523 public HeuristicLab.Clients.OKB.Query.StringComparison Comparison 524 { 525 get 526 { 527 return this.ComparisonField; 528 } 529 set 530 { 531 if ((this.ComparisonField.Equals(value) != true)) 532 { 533 this.ComparisonField = value; 534 this.RaisePropertyChanged("Comparison"); 535 } 536 } 537 } 538 539 [System.Runtime.Serialization.DataMemberAttribute()] 540 public string Value 465 541 { 466 542 get … … 470 546 set 471 547 { 472 if (( this.ValueField.Equals(value) != true))548 if ((object.ReferenceEquals(this.ValueField, value) != true)) 473 549 { 474 550 this.ValueField = value; … … 481 557 [System.Diagnostics.DebuggerStepThroughAttribute()] 482 558 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 483 [System.Runtime.Serialization.DataContractAttribute(Name="Name OrdinalComparisonPercentFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +484 "fer")] 485 public partial class Name OrdinalComparisonPercentFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonPercentFilter559 [System.Runtime.Serialization.DataContractAttribute(Name="NameStringComparisonFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 560 "fer")] 561 public partial class NameStringComparisonFilter : HeuristicLab.Clients.OKB.Query.StringComparisonFilter 486 562 { 487 563 … … 508 584 [System.Diagnostics.DebuggerStepThroughAttribute()] 509 585 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 510 [System.Runtime.Serialization.DataContractAttribute(Name="StringComparisonFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +511 "fer")]512 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringComparisonAvailableValuesFilter))]513 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonAvailableValuesFilter))]514 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonFilter))]515 public partial class StringComparisonFilter : HeuristicLab.Clients.OKB.Query.Filter516 {517 518 private HeuristicLab.Clients.OKB.Query.StringComparison ComparisonField;519 520 private string ValueField;521 522 [System.Runtime.Serialization.DataMemberAttribute()]523 public HeuristicLab.Clients.OKB.Query.StringComparison Comparison524 {525 get526 {527 return this.ComparisonField;528 }529 set530 {531 if ((this.ComparisonField.Equals(value) != true))532 {533 this.ComparisonField = value;534 this.RaisePropertyChanged("Comparison");535 }536 }537 }538 539 [System.Runtime.Serialization.DataMemberAttribute()]540 public string Value541 {542 get543 {544 return this.ValueField;545 }546 set547 {548 if ((object.ReferenceEquals(this.ValueField, value) != true))549 {550 this.ValueField = value;551 this.RaisePropertyChanged("Value");552 }553 }554 }555 }556 557 [System.Diagnostics.DebuggerStepThroughAttribute()]558 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]559 586 [System.Runtime.Serialization.DataContractAttribute(Name="StringComparisonAvailableValuesFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 560 587 "fer")] … … 588 615 "fer")] 589 616 public partial class NameStringComparisonAvailableValuesFilter : HeuristicLab.Clients.OKB.Query.StringComparisonAvailableValuesFilter 590 {591 592 private string NameField;593 594 [System.Runtime.Serialization.DataMemberAttribute()]595 public string Name596 {597 get598 {599 return this.NameField;600 }601 set602 {603 if ((object.ReferenceEquals(this.NameField, value) != true))604 {605 this.NameField = value;606 this.RaisePropertyChanged("Name");607 }608 }609 }610 }611 612 [System.Diagnostics.DebuggerStepThroughAttribute()]613 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]614 [System.Runtime.Serialization.DataContractAttribute(Name="NameStringComparisonFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +615 "fer")]616 public partial class NameStringComparisonFilter : HeuristicLab.Clients.OKB.Query.StringComparisonFilter617 617 { 618 618 … … 1345 1345 [System.Runtime.Serialization.DataContractAttribute(Name="Value", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1346 1346 "fer")] 1347 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringValue))] 1348 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.PercentValue))] 1349 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.LongValue))] 1347 1350 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.BoolValue))] 1348 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.LongValue))] 1351 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.DoubleValue))] 1352 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.BinaryValue))] 1353 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.FloatValue))] 1354 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.TimeSpanValue))] 1349 1355 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.IntValue))] 1350 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.TimeSpanValue))]1351 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.FloatValue))]1352 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.DoubleValue))]1353 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringValue))]1354 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.BinaryValue))]1355 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.PercentValue))]1356 1356 public partial class Value : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1357 1357 { … … 1494 1494 [System.Diagnostics.DebuggerStepThroughAttribute()] 1495 1495 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1496 [System.Runtime.Serialization.DataContractAttribute(Name=" BoolValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1497 "fer")] 1498 public partial class BoolValue : HeuristicLab.Clients.OKB.Query.Value1499 { 1500 1501 private boolValueField;1502 1503 [System.Runtime.Serialization.DataMemberAttribute()] 1504 public boolValue1496 [System.Runtime.Serialization.DataContractAttribute(Name="StringValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1497 "fer")] 1498 public partial class StringValue : HeuristicLab.Clients.OKB.Query.Value 1499 { 1500 1501 private string ValueField; 1502 1503 [System.Runtime.Serialization.DataMemberAttribute()] 1504 public string Value 1505 1505 { 1506 1506 get … … 1510 1510 set 1511 1511 { 1512 if (( this.ValueField.Equals(value) != true))1512 if ((object.ReferenceEquals(this.ValueField, value) != true)) 1513 1513 { 1514 1514 this.ValueField = value; … … 1521 1521 [System.Diagnostics.DebuggerStepThroughAttribute()] 1522 1522 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1523 [System.Runtime.Serialization.DataContractAttribute(Name=" LongValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1524 "fer")] 1525 public partial class LongValue : HeuristicLab.Clients.OKB.Query.Value1526 { 1527 1528 private longValueField;1529 1530 [System.Runtime.Serialization.DataMemberAttribute()] 1531 public longValue1523 [System.Runtime.Serialization.DataContractAttribute(Name="PercentValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1524 "fer")] 1525 public partial class PercentValue : HeuristicLab.Clients.OKB.Query.Value 1526 { 1527 1528 private double ValueField; 1529 1530 [System.Runtime.Serialization.DataMemberAttribute()] 1531 public double Value 1532 1532 { 1533 1533 get … … 1548 1548 [System.Diagnostics.DebuggerStepThroughAttribute()] 1549 1549 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1550 [System.Runtime.Serialization.DataContractAttribute(Name=" IntValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1551 "fer")] 1552 public partial class IntValue : HeuristicLab.Clients.OKB.Query.Value1553 { 1554 1555 private intValueField;1556 1557 [System.Runtime.Serialization.DataMemberAttribute()] 1558 public intValue1550 [System.Runtime.Serialization.DataContractAttribute(Name="LongValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1551 "fer")] 1552 public partial class LongValue : HeuristicLab.Clients.OKB.Query.Value 1553 { 1554 1555 private long ValueField; 1556 1557 [System.Runtime.Serialization.DataMemberAttribute()] 1558 public long Value 1559 1559 { 1560 1560 get … … 1575 1575 [System.Diagnostics.DebuggerStepThroughAttribute()] 1576 1576 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1577 [System.Runtime.Serialization.DataContractAttribute(Name=" TimeSpanValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1578 "fer")] 1579 public partial class TimeSpanValue : HeuristicLab.Clients.OKB.Query.Value1580 { 1581 1582 private longValueField;1583 1584 [System.Runtime.Serialization.DataMemberAttribute()] 1585 public longValue1577 [System.Runtime.Serialization.DataContractAttribute(Name="BoolValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1578 "fer")] 1579 public partial class BoolValue : HeuristicLab.Clients.OKB.Query.Value 1580 { 1581 1582 private bool ValueField; 1583 1584 [System.Runtime.Serialization.DataMemberAttribute()] 1585 public bool Value 1586 1586 { 1587 1587 get … … 1602 1602 [System.Diagnostics.DebuggerStepThroughAttribute()] 1603 1603 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1604 [System.Runtime.Serialization.DataContractAttribute(Name=" FloatValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1605 "fer")] 1606 public partial class FloatValue : HeuristicLab.Clients.OKB.Query.Value1607 { 1608 1609 private floatValueField;1610 1611 [System.Runtime.Serialization.DataMemberAttribute()] 1612 public floatValue1604 [System.Runtime.Serialization.DataContractAttribute(Name="DoubleValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1605 "fer")] 1606 public partial class DoubleValue : HeuristicLab.Clients.OKB.Query.Value 1607 { 1608 1609 private double ValueField; 1610 1611 [System.Runtime.Serialization.DataMemberAttribute()] 1612 public double Value 1613 1613 { 1614 1614 get … … 1629 1629 [System.Diagnostics.DebuggerStepThroughAttribute()] 1630 1630 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1631 [System.Runtime.Serialization.DataContractAttribute(Name=" DoubleValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1632 "fer")] 1633 public partial class DoubleValue : HeuristicLab.Clients.OKB.Query.Value1634 { 1635 1636 private doubleValueField;1637 1638 [System.Runtime.Serialization.DataMemberAttribute()] 1639 public doubleValue1631 [System.Runtime.Serialization.DataContractAttribute(Name="BinaryValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1632 "fer")] 1633 public partial class BinaryValue : HeuristicLab.Clients.OKB.Query.Value 1634 { 1635 1636 private byte[] ValueField; 1637 1638 [System.Runtime.Serialization.DataMemberAttribute()] 1639 public byte[] Value 1640 1640 { 1641 1641 get … … 1645 1645 set 1646 1646 { 1647 if (( this.ValueField.Equals(value) != true))1647 if ((object.ReferenceEquals(this.ValueField, value) != true)) 1648 1648 { 1649 1649 this.ValueField = value; … … 1656 1656 [System.Diagnostics.DebuggerStepThroughAttribute()] 1657 1657 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1658 [System.Runtime.Serialization.DataContractAttribute(Name=" StringValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1659 "fer")] 1660 public partial class StringValue : HeuristicLab.Clients.OKB.Query.Value1661 { 1662 1663 private stringValueField;1664 1665 [System.Runtime.Serialization.DataMemberAttribute()] 1666 public stringValue1658 [System.Runtime.Serialization.DataContractAttribute(Name="FloatValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1659 "fer")] 1660 public partial class FloatValue : HeuristicLab.Clients.OKB.Query.Value 1661 { 1662 1663 private float ValueField; 1664 1665 [System.Runtime.Serialization.DataMemberAttribute()] 1666 public float Value 1667 1667 { 1668 1668 get … … 1672 1672 set 1673 1673 { 1674 if (( object.ReferenceEquals(this.ValueField,value) != true))1674 if ((this.ValueField.Equals(value) != true)) 1675 1675 { 1676 1676 this.ValueField = value; … … 1683 1683 [System.Diagnostics.DebuggerStepThroughAttribute()] 1684 1684 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1685 [System.Runtime.Serialization.DataContractAttribute(Name=" BinaryValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1686 "fer")] 1687 public partial class BinaryValue : HeuristicLab.Clients.OKB.Query.Value1688 { 1689 1690 private byte[]ValueField;1691 1692 [System.Runtime.Serialization.DataMemberAttribute()] 1693 public byte[]Value1685 [System.Runtime.Serialization.DataContractAttribute(Name="TimeSpanValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1686 "fer")] 1687 public partial class TimeSpanValue : HeuristicLab.Clients.OKB.Query.Value 1688 { 1689 1690 private long ValueField; 1691 1692 [System.Runtime.Serialization.DataMemberAttribute()] 1693 public long Value 1694 1694 { 1695 1695 get … … 1699 1699 set 1700 1700 { 1701 if (( object.ReferenceEquals(this.ValueField,value) != true))1701 if ((this.ValueField.Equals(value) != true)) 1702 1702 { 1703 1703 this.ValueField = value; … … 1710 1710 [System.Diagnostics.DebuggerStepThroughAttribute()] 1711 1711 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1712 [System.Runtime.Serialization.DataContractAttribute(Name=" PercentValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +1713 "fer")] 1714 public partial class PercentValue : HeuristicLab.Clients.OKB.Query.Value1715 { 1716 1717 private doubleValueField;1718 1719 [System.Runtime.Serialization.DataMemberAttribute()] 1720 public doubleValue1712 [System.Runtime.Serialization.DataContractAttribute(Name="IntValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1713 "fer")] 1714 public partial class IntValue : HeuristicLab.Clients.OKB.Query.Value 1715 { 1716 1717 private int ValueField; 1718 1719 [System.Runtime.Serialization.DataMemberAttribute()] 1720 public int Value 1721 1721 { 1722 1722 get … … 1733 1733 } 1734 1734 } 1735 } 1736 1737 [System.Diagnostics.DebuggerStepThroughAttribute()] 1738 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1739 [System.Runtime.Serialization.DataContractAttribute(Name="ValueName", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" + 1740 "fer")] 1741 public partial class ValueName : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1742 { 1743 1744 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1745 1746 private HeuristicLab.Clients.OKB.Query.ValueNameCategory CategoryField; 1747 1748 private long IdField; 1749 1750 private string NameField; 1751 1752 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 1753 { 1754 get 1755 { 1756 return this.extensionDataField; 1757 } 1758 set 1759 { 1760 this.extensionDataField = value; 1761 } 1762 } 1763 1764 [System.Runtime.Serialization.DataMemberAttribute()] 1765 public HeuristicLab.Clients.OKB.Query.ValueNameCategory Category 1766 { 1767 get 1768 { 1769 return this.CategoryField; 1770 } 1771 set 1772 { 1773 if ((this.CategoryField.Equals(value) != true)) 1774 { 1775 this.CategoryField = value; 1776 this.RaisePropertyChanged("Category"); 1777 } 1778 } 1779 } 1780 1781 [System.Runtime.Serialization.DataMemberAttribute()] 1782 public long Id 1783 { 1784 get 1785 { 1786 return this.IdField; 1787 } 1788 set 1789 { 1790 if ((this.IdField.Equals(value) != true)) 1791 { 1792 this.IdField = value; 1793 this.RaisePropertyChanged("Id"); 1794 } 1795 } 1796 } 1797 1798 [System.Runtime.Serialization.DataMemberAttribute()] 1799 public string Name 1800 { 1801 get 1802 { 1803 return this.NameField; 1804 } 1805 set 1806 { 1807 if ((object.ReferenceEquals(this.NameField, value) != true)) 1808 { 1809 this.NameField = value; 1810 this.RaisePropertyChanged("Name"); 1811 } 1812 } 1813 } 1814 1815 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1816 1817 protected void RaisePropertyChanged(string propertyName) 1818 { 1819 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1820 if ((propertyChanged != null)) 1821 { 1822 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1823 } 1824 } 1825 } 1826 1827 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1828 [System.Runtime.Serialization.DataContractAttribute(Name="ValueNameCategory", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess")] 1829 public enum ValueNameCategory : int 1830 { 1831 1832 [System.Runtime.Serialization.EnumMemberAttribute()] 1833 Parameter = 0, 1834 1835 [System.Runtime.Serialization.EnumMemberAttribute()] 1836 Result = 1, 1735 1837 } 1736 1838 … … 1751 1853 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IQueryService/GetRuns", ReplyAction="http://tempuri.org/IQueryService/GetRunsResponse")] 1752 1854 System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.Run> GetRuns(System.Collections.Generic.List<long> ids, bool includeBinaryValues); 1855 1856 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IQueryService/GetRunsWithValues", ReplyAction="http://tempuri.org/IQueryService/GetRunsWithValuesResponse")] 1857 System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.Run> GetRunsWithValues(System.Collections.Generic.List<long> ids, bool includeBinaryValues, System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.ValueName> valueNames); 1858 1859 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IQueryService/GetValueNames", ReplyAction="http://tempuri.org/IQueryService/GetValueNamesResponse")] 1860 System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.ValueName> GetValueNames(); 1753 1861 } 1754 1862 … … 1806 1914 return base.Channel.GetRuns(ids, includeBinaryValues); 1807 1915 } 1916 1917 public System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.Run> GetRunsWithValues(System.Collections.Generic.List<long> ids, bool includeBinaryValues, System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.ValueName> valueNames) 1918 { 1919 return base.Channel.GetRunsWithValues(ids, includeBinaryValues, valueNames); 1920 } 1921 1922 public System.Collections.Generic.List<HeuristicLab.Clients.OKB.Query.ValueName> GetValueNames() 1923 { 1924 return base.Channel.GetValueNames(); 1925 } 1808 1926 } 1809 1927 } -
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/Views/QueryView.Designer.cs
r7331 r7589 50 50 this.runCollectionView = new HeuristicLab.Optimization.Views.RunCollectionView(); 51 51 this.splitContainer = new System.Windows.Forms.SplitContainer(); 52 this.filterTabControl = new System.Windows.Forms.TabControl(); 53 this.filterTabPage = new System.Windows.Forms.TabPage(); 52 54 this.filtersGroupBox = new System.Windows.Forms.GroupBox(); 53 55 this.filterPanel = new System.Windows.Forms.Panel(); 54 56 this.refreshFiltersButton = new System.Windows.Forms.Button(); 57 this.constraintsTabPage = new System.Windows.Forms.TabPage(); 55 58 this.resultsGroupBox = new System.Windows.Forms.GroupBox(); 56 59 this.includeBinaryValuesCheckBox = new System.Windows.Forms.CheckBox(); … … 61 64 this.filtersInfoPanel = new System.Windows.Forms.Panel(); 62 65 this.filtersInfoLabel = new System.Windows.Forms.Label(); 66 this.constraintsCheckedListBox = new System.Windows.Forms.CheckedListBox(); 67 this.selectAllButton = new System.Windows.Forms.Button(); 68 this.deselectAllButton = new System.Windows.Forms.Button(); 63 69 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 64 70 this.splitContainer.Panel1.SuspendLayout(); 65 71 this.splitContainer.Panel2.SuspendLayout(); 66 72 this.splitContainer.SuspendLayout(); 73 this.filterTabControl.SuspendLayout(); 74 this.filterTabPage.SuspendLayout(); 67 75 this.filtersGroupBox.SuspendLayout(); 76 this.constraintsTabPage.SuspendLayout(); 68 77 this.resultsGroupBox.SuspendLayout(); 69 78 this.resultsInfoPanel.SuspendLayout(); … … 106 115 // splitContainer.Panel1 107 116 // 108 this.splitContainer.Panel1.Controls.Add(this.filter sGroupBox);117 this.splitContainer.Panel1.Controls.Add(this.filterTabControl); 109 118 // 110 119 // splitContainer.Panel2 … … 115 124 this.splitContainer.TabIndex = 0; 116 125 // 126 // filterTabControl 127 // 128 this.filterTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 129 | System.Windows.Forms.AnchorStyles.Left) 130 | System.Windows.Forms.AnchorStyles.Right))); 131 this.filterTabControl.Controls.Add(this.filterTabPage); 132 this.filterTabControl.Controls.Add(this.constraintsTabPage); 133 this.filterTabControl.Location = new System.Drawing.Point(3, 3); 134 this.filterTabControl.Name = "filterTabControl"; 135 this.filterTabControl.SelectedIndex = 0; 136 this.filterTabControl.Size = new System.Drawing.Size(832, 276); 137 this.filterTabControl.TabIndex = 1; 138 // 139 // filterTabPage 140 // 141 this.filterTabPage.Controls.Add(this.filtersGroupBox); 142 this.filterTabPage.Location = new System.Drawing.Point(4, 22); 143 this.filterTabPage.Name = "filterTabPage"; 144 this.filterTabPage.Padding = new System.Windows.Forms.Padding(3); 145 this.filterTabPage.Size = new System.Drawing.Size(824, 250); 146 this.filterTabPage.TabIndex = 0; 147 this.filterTabPage.Text = "Filter"; 148 this.filterTabPage.UseVisualStyleBackColor = true; 149 // 117 150 // filtersGroupBox 118 151 // … … 122 155 this.filtersGroupBox.Controls.Add(this.filterPanel); 123 156 this.filtersGroupBox.Controls.Add(this.refreshFiltersButton); 124 this.filtersGroupBox.Location = new System.Drawing.Point( 0, 0);157 this.filtersGroupBox.Location = new System.Drawing.Point(6, 6); 125 158 this.filtersGroupBox.Name = "filtersGroupBox"; 126 this.filtersGroupBox.Size = new System.Drawing.Size(8 38, 279);159 this.filtersGroupBox.Size = new System.Drawing.Size(812, 238); 127 160 this.filtersGroupBox.TabIndex = 0; 128 161 this.filtersGroupBox.TabStop = false; … … 136 169 this.filterPanel.Location = new System.Drawing.Point(6, 19); 137 170 this.filterPanel.Name = "filterPanel"; 138 this.filterPanel.Size = new System.Drawing.Size(7 96, 254);171 this.filterPanel.Size = new System.Drawing.Size(770, 213); 139 172 this.filterPanel.TabIndex = 1; 140 173 // … … 143 176 this.refreshFiltersButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 144 177 this.refreshFiltersButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh; 145 this.refreshFiltersButton.Location = new System.Drawing.Point( 808, 21);178 this.refreshFiltersButton.Location = new System.Drawing.Point(782, 21); 146 179 this.refreshFiltersButton.Name = "refreshFiltersButton"; 147 180 this.refreshFiltersButton.Size = new System.Drawing.Size(24, 24); … … 149 182 this.refreshFiltersButton.UseVisualStyleBackColor = true; 150 183 this.refreshFiltersButton.Click += new System.EventHandler(this.refreshFiltersButton_Click); 184 // 185 // constraintsTabPage 186 // 187 this.constraintsTabPage.Controls.Add(this.deselectAllButton); 188 this.constraintsTabPage.Controls.Add(this.selectAllButton); 189 this.constraintsTabPage.Controls.Add(this.constraintsCheckedListBox); 190 this.constraintsTabPage.Location = new System.Drawing.Point(4, 22); 191 this.constraintsTabPage.Name = "constraintsTabPage"; 192 this.constraintsTabPage.Padding = new System.Windows.Forms.Padding(3); 193 this.constraintsTabPage.Size = new System.Drawing.Size(824, 250); 194 this.constraintsTabPage.TabIndex = 1; 195 this.constraintsTabPage.Text = "Downloaded Values"; 196 this.constraintsTabPage.UseVisualStyleBackColor = true; 151 197 // 152 198 // resultsGroupBox … … 245 291 this.filtersInfoLabel.Text = "Loading Filters ..."; 246 292 this.filtersInfoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 293 // 294 // constraintsCheckedListBox 295 // 296 this.constraintsCheckedListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 297 | System.Windows.Forms.AnchorStyles.Left) 298 | System.Windows.Forms.AnchorStyles.Right))); 299 this.constraintsCheckedListBox.CheckOnClick = true; 300 this.constraintsCheckedListBox.FormattingEnabled = true; 301 this.constraintsCheckedListBox.Location = new System.Drawing.Point(6, 6); 302 this.constraintsCheckedListBox.Name = "constraintsCheckedListBox"; 303 this.constraintsCheckedListBox.Size = new System.Drawing.Size(812, 214); 304 this.constraintsCheckedListBox.Sorted = true; 305 this.constraintsCheckedListBox.TabIndex = 0; 306 // 307 // selectAllButton 308 // 309 this.selectAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 310 this.selectAllButton.Location = new System.Drawing.Point(6, 221); 311 this.selectAllButton.Name = "selectAllButton"; 312 this.selectAllButton.Size = new System.Drawing.Size(75, 23); 313 this.selectAllButton.TabIndex = 1; 314 this.selectAllButton.Text = "Select all"; 315 this.selectAllButton.UseVisualStyleBackColor = true; 316 this.selectAllButton.Click += new System.EventHandler(this.selectAllButton_Click); 317 // 318 // deselectAllButton 319 // 320 this.deselectAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 321 this.deselectAllButton.Location = new System.Drawing.Point(88, 221); 322 this.deselectAllButton.Name = "deselectAllButton"; 323 this.deselectAllButton.Size = new System.Drawing.Size(75, 23); 324 this.deselectAllButton.TabIndex = 2; 325 this.deselectAllButton.Text = "Deselect all"; 326 this.deselectAllButton.UseVisualStyleBackColor = true; 327 this.deselectAllButton.Click += new System.EventHandler(this.deselectAllButton_Click); 247 328 // 248 329 // QueryView … … 259 340 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); 260 341 this.splitContainer.ResumeLayout(false); 342 this.filterTabControl.ResumeLayout(false); 343 this.filterTabPage.ResumeLayout(false); 261 344 this.filtersGroupBox.ResumeLayout(false); 345 this.constraintsTabPage.ResumeLayout(false); 262 346 this.resultsGroupBox.ResumeLayout(false); 263 347 this.resultsGroupBox.PerformLayout(); … … 285 369 private System.Windows.Forms.Button refreshFiltersButton; 286 370 private System.Windows.Forms.CheckBox includeBinaryValuesCheckBox; 371 private System.Windows.Forms.TabControl filterTabControl; 372 private System.Windows.Forms.TabPage filterTabPage; 373 private System.Windows.Forms.TabPage constraintsTabPage; 374 private System.Windows.Forms.Button deselectAllButton; 375 private System.Windows.Forms.Button selectAllButton; 376 private System.Windows.Forms.CheckedListBox constraintsCheckedListBox; 287 377 288 378 } -
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/Views/QueryView.cs
r7573 r7589 21 21 22 22 using System; 23 using System.Collections; 24 using System.Collections.Generic; 23 25 using System.IO; 24 26 using System.Linq; … … 75 77 private void LoadResultsAsync(int batchSize) { 76 78 bool includeBinaryValues = includeBinaryValuesCheckBox.Checked; 79 IEnumerable<ValueName> valueNames = constraintsCheckedListBox.CheckedItems.Cast<ValueName>(); 77 80 78 81 Cursor = Cursors.AppStarting; … … 99 102 while (ids.Count() > 0) { 100 103 cancellationToken.ThrowIfCancellationRequested(); 101 runs.AddRange(QueryClient.Instance.GetRuns(ids.Take(batchSize), includeBinaryValues).Select(x => ConvertToOptimizationRun(x))); 104 if (AllValueNamesChecked()) { 105 runs.AddRange(QueryClient.Instance.GetRuns(ids.Take(batchSize), includeBinaryValues).Select(x => ConvertToOptimizationRun(x))); 106 } else { 107 runs.AddRange(QueryClient.Instance.GetRunsWithValues(ids.Take(batchSize), includeBinaryValues, valueNames).Select(x => ConvertToOptimizationRun(x))); 108 } 102 109 ids = ids.Skip(batchSize); 103 110 Invoke(new Action(() => { … … 146 153 } else { 147 154 CreateFilterView(); 155 CreateConstraintsView(); 148 156 filtersInfoPanel.Visible = false; 149 157 splitContainer.Enabled = true; … … 179 187 } 180 188 } 189 } 190 191 private void CreateConstraintsView() { 192 constraintsCheckedListBox.Items.Clear(); 193 constraintsCheckedListBox.Items.AddRange(QueryClient.Instance.ValueNames.ToArray()); 194 SetCheckedState(true); 181 195 } 182 196 … … 221 235 return null; 222 236 } 237 238 private void SetCheckedState(bool val) { 239 for (int i = 0; i < constraintsCheckedListBox.Items.Count; i++) { 240 constraintsCheckedListBox.SetItemChecked(i, val); 241 } 242 } 243 244 private bool AllValueNamesChecked() { 245 return constraintsCheckedListBox.Items.Count == constraintsCheckedListBox.CheckedItems.Count; 246 } 247 248 private void selectAllButton_Click(object sender, EventArgs e) { 249 SetCheckedState(true); 250 } 251 252 private void deselectAllButton_Click(object sender, EventArgs e) { 253 SetCheckedState(false); 254 } 223 255 } 224 256 } -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB.DataAccess/3.3/ValueNameCategory.cs
r7331 r7589 20 20 #endregion 21 21 22 using System.Runtime.Serialization; 22 23 namespace HeuristicLab.Services.OKB.DataAccess { 24 [DataContract] 23 25 public enum ValueNameCategory { 26 [EnumMember] 24 27 Parameter = 0, 28 [EnumMember] 25 29 Result = 1 26 30 } -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/HeuristicLab.Services.OKB-3.3.csproj
r7574 r7589 147 147 <Compile Include="Query\DataTransfer\BoolValue.cs" /> 148 148 <Compile Include="Query\DataTransfer\CombinedFilter.cs" /> 149 <Compile Include="Query\DataTransfer\ValueName.cs" /> 149 150 <Compile Include="Query\DataTransfer\NameOrdinalComparisonTimeSpanFilter.cs" /> 150 151 <Compile Include="Query\DataTransfer\OrdinalComparisonTimeSpanFilter.cs" /> -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/Convert.cs
r7574 r7589 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using DA = HeuristicLab.Services.OKB.DataAccess; … … 32 33 dto.ParameterValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Parameter).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray(); 33 34 dto.ResultValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Result).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray(); 35 return dto; 36 } 37 38 public static DT.Run ToDto(DA.Run source, bool includeBinaryValues, IEnumerable<DT.ValueName> valueNames) { 39 if (source == null) return null; 40 var dto = new DT.Run { Id = source.Id, Algorithm = Convert.ToDto(source.Algorithm), Problem = Convert.ToDto(source.Problem), CreatedDate = source.CreatedDate, ClientId = source.ClientId, UserId = source.UserId }; 41 dto.ParameterValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Parameter && valueNames.Count(y => y.Name == x.ValueName.Name) > 0).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray(); 42 dto.ResultValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Result && valueNames.Count(y => y.Name == x.ValueName.Name) > 0).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray(); 34 43 return dto; 35 44 } … … 74 83 } 75 84 } 85 86 public static DT.ValueName ToDto(DA.ValueName source) { 87 if (source == null) return null; 88 return new DT.ValueName() { Id = source.Id, Category = source.Category, Name = source.Name }; 89 } 76 90 } 77 91 } -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/IQueryService.cs
r7331 r7589 42 42 [OperationContract] 43 43 IEnumerable<Run> GetRuns(IEnumerable<long> ids, bool includeBinaryValues); 44 45 [OperationContract] 46 IEnumerable<Run> GetRunsWithValues(IEnumerable<long> ids, bool includeBinaryValues, IEnumerable<DataTransfer.ValueName> valueNames); 47 48 [OperationContract] 49 IEnumerable<ValueName> GetValueNames(); 44 50 } 45 51 } -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/QueryService.cs
r7574 r7589 258 258 } 259 259 260 public IEnumerable<DataTransfer.Run> GetRunsWithValues(IEnumerable<long> ids, bool includeBinaryValues, IEnumerable<DataTransfer.ValueName> valueNames) { 261 using (OKBDataContext okb = new OKBDataContext()) { 262 DataLoadOptions dlo = new DataLoadOptions(); 263 // TODO: specify LoadWiths 264 okb.LoadOptions = dlo; 265 266 return okb.Runs.Where(x => ids.Contains(x.Id)).Select(x => Convert.ToDto(x, includeBinaryValues, valueNames)).ToArray(); 267 } 268 } 269 270 public IEnumerable<DataTransfer.ValueName> GetValueNames() { 271 using (OKBDataContext okb = new OKBDataContext()) { 272 return okb.ValueNames.Select(x => Convert.ToDto(x)).ToArray(); 273 } 274 } 275 260 276 private IQueryable<DataAccess.Run> FilterRuns(IQueryable<DataAccess.Run> runs, Filter filter) { 261 277 IFilter f = (IFilter)Activator.CreateInstance(Type.GetType(filter.FilterTypeName), filter);
Note: See TracChangeset
for help on using the changeset viewer.