Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7589


Ignore:
Timestamp:
03/08/12 20:44:53 (13 years ago)
Author:
ascheibe
Message:

#1174 values of returned runs can now be limited

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  
    206206    <Compile Include="Query\QueryMenuItem.cs" />
    207207    <Compile Include="Query\ServiceClient\CombinedFilter.cs" />
     208    <Compile Include="Query\ServiceClient\ValueName.cs" />
    208209    <Compile Include="Query\ServiceClient\OrdinalComparisonTimeSpanFilter.cs" />
    209210    <Compile Include="Query\ServiceClient\NameOrdinalComparisonTimeSpanFilter.cs" />
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/QueryClient.cs

    r7331 r7589  
    4343      get { return filters; }
    4444    }
     45    private List<ValueName> valueNames;
     46    public IEnumerable<ValueName> ValueNames {
     47      get { return valueNames; }
     48    }
    4549    #endregion
    4650
    4751    private QueryClient() {
    4852      filters = new List<Filter>();
     53      valueNames = new List<ValueName>();
    4954    }
    5055
     
    5560      try {
    5661        filters.AddRange(CallQueryService<List<Filter>>(s => s.GetFilters()));
     62        valueNames.AddRange(CallQueryService<List<ValueName>>(s => s.GetValueNames()));
    5763      }
    5864      finally {
     
    8692    public IEnumerable<Run> GetRuns(IEnumerable<long> ids, bool includeBinaryValues) {
    8793      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()));
    8897    }
    8998    #endregion
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/ServiceClient/QueryServiceClient.cs

    r7574 r7589  
    1919        "fer")]
    2020    [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))]
    2123    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonTimeSpanFilter))]
    2224    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonTimeSpanFilter))]
     
    2830    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonFloatFilter))]
    2931    [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))]
    3232    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonPercentFilter))]
    3333    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonPercentFilter))]
    3434    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringComparisonFilter))]
     35    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonFilter))]
    3536    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.StringComparisonAvailableValuesFilter))]
    3637    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonAvailableValuesFilter))]
    37     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameStringComparisonFilter))]
    3838    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.CombinedFilter))]
    3939    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.EqualityComparisonFilter))]
     
    113113    [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +
    114114        "fer")]
     115    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter))]
     116    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))]
    115117    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonTimeSpanFilter))]
    116118    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonTimeSpanFilter))]
     
    122124    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonFloatFilter))]
    123125    [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))]
    126126    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.OrdinalComparisonPercentFilter))]
    127127    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonPercentFilter))]
     
    151151    [System.Diagnostics.DebuggerStepThroughAttribute()]
    152152    [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")]
    153208    [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonTimeSpanFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +
    154209        "fer")]
     
    398453    [System.Diagnostics.DebuggerStepThroughAttribute()]
    399454    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    400     [System.Runtime.Serialization.DataContractAttribute(Name="OrdinalComparisonDoubleFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +
    401         "fer")]
    402     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.Query.NameOrdinalComparisonDoubleFilter))]
    403     public partial class OrdinalComparisonDoubleFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonFilter
     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
    404459    {
    405460       
     
    426481    [System.Diagnostics.DebuggerStepThroughAttribute()]
    427482    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    428     [System.Runtime.Serialization.DataContractAttribute(Name="NameOrdinalComparisonDoubleFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +
    429         "fer")]
    430     public partial class NameOrdinalComparisonDoubleFilter : HeuristicLab.Clients.OKB.Query.OrdinalComparisonDoubleFilter
     483    [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
    431486    {
    432487       
     
    453508    [System.Diagnostics.DebuggerStepThroughAttribute()]
    454509    [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
    465541        {
    466542            get
     
    470546            set
    471547            {
    472                 if ((this.ValueField.Equals(value) != true))
     548                if ((object.ReferenceEquals(this.ValueField, value) != true))
    473549                {
    474550                    this.ValueField = value;
     
    481557    [System.Diagnostics.DebuggerStepThroughAttribute()]
    482558    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    483     [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
     559    [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
    486562    {
    487563       
     
    508584    [System.Diagnostics.DebuggerStepThroughAttribute()]
    509585    [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.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
    541         {
    542             get
    543             {
    544                 return this.ValueField;
    545             }
    546             set
    547             {
    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")]
    559586    [System.Runtime.Serialization.DataContractAttribute(Name="StringComparisonAvailableValuesFilter", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +
    560587        "fer")]
     
    588615        "fer")]
    589616    public partial class NameStringComparisonAvailableValuesFilter : HeuristicLab.Clients.OKB.Query.StringComparisonAvailableValuesFilter
    590     {
    591        
    592         private string NameField;
    593        
    594         [System.Runtime.Serialization.DataMemberAttribute()]
    595         public string Name
    596         {
    597             get
    598             {
    599                 return this.NameField;
    600             }
    601             set
    602             {
    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.StringComparisonFilter
    617617    {
    618618       
     
    13451345    [System.Runtime.Serialization.DataContractAttribute(Name="Value", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.Query.DataTrans" +
    13461346        "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))]
    13471350    [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))]
    13491355    [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))]
    13561356    public partial class Value : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
    13571357    {
     
    14941494    [System.Diagnostics.DebuggerStepThroughAttribute()]
    14951495    [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.Value
    1499     {
    1500        
    1501         private bool ValueField;
    1502        
    1503         [System.Runtime.Serialization.DataMemberAttribute()]
    1504         public bool Value
     1496    [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
    15051505        {
    15061506            get
     
    15101510            set
    15111511            {
    1512                 if ((this.ValueField.Equals(value) != true))
     1512                if ((object.ReferenceEquals(this.ValueField, value) != true))
    15131513                {
    15141514                    this.ValueField = value;
     
    15211521    [System.Diagnostics.DebuggerStepThroughAttribute()]
    15221522    [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.Value
    1526     {
    1527        
    1528         private long ValueField;
    1529        
    1530         [System.Runtime.Serialization.DataMemberAttribute()]
    1531         public long Value
     1523    [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
    15321532        {
    15331533            get
     
    15481548    [System.Diagnostics.DebuggerStepThroughAttribute()]
    15491549    [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.Value
    1553     {
    1554        
    1555         private int ValueField;
    1556        
    1557         [System.Runtime.Serialization.DataMemberAttribute()]
    1558         public int Value
     1550    [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
    15591559        {
    15601560            get
     
    15751575    [System.Diagnostics.DebuggerStepThroughAttribute()]
    15761576    [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.Value
    1580     {
    1581        
    1582         private long ValueField;
    1583        
    1584         [System.Runtime.Serialization.DataMemberAttribute()]
    1585         public long Value
     1577    [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
    15861586        {
    15871587            get
     
    16021602    [System.Diagnostics.DebuggerStepThroughAttribute()]
    16031603    [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.Value
    1607     {
    1608        
    1609         private float ValueField;
    1610        
    1611         [System.Runtime.Serialization.DataMemberAttribute()]
    1612         public float Value
     1604    [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
    16131613        {
    16141614            get
     
    16291629    [System.Diagnostics.DebuggerStepThroughAttribute()]
    16301630    [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.Value
    1634     {
    1635        
    1636         private double ValueField;
    1637        
    1638         [System.Runtime.Serialization.DataMemberAttribute()]
    1639         public double Value
     1631    [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
    16401640        {
    16411641            get
     
    16451645            set
    16461646            {
    1647                 if ((this.ValueField.Equals(value) != true))
     1647                if ((object.ReferenceEquals(this.ValueField, value) != true))
    16481648                {
    16491649                    this.ValueField = value;
     
    16561656    [System.Diagnostics.DebuggerStepThroughAttribute()]
    16571657    [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.Value
    1661     {
    1662        
    1663         private string ValueField;
    1664        
    1665         [System.Runtime.Serialization.DataMemberAttribute()]
    1666         public string Value
     1658    [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
    16671667        {
    16681668            get
     
    16721672            set
    16731673            {
    1674                 if ((object.ReferenceEquals(this.ValueField, value) != true))
     1674                if ((this.ValueField.Equals(value) != true))
    16751675                {
    16761676                    this.ValueField = value;
     
    16831683    [System.Diagnostics.DebuggerStepThroughAttribute()]
    16841684    [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.Value
    1688     {
    1689        
    1690         private byte[] ValueField;
    1691        
    1692         [System.Runtime.Serialization.DataMemberAttribute()]
    1693         public byte[] Value
     1685    [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
    16941694        {
    16951695            get
     
    16991699            set
    17001700            {
    1701                 if ((object.ReferenceEquals(this.ValueField, value) != true))
     1701                if ((this.ValueField.Equals(value) != true))
    17021702                {
    17031703                    this.ValueField = value;
     
    17101710    [System.Diagnostics.DebuggerStepThroughAttribute()]
    17111711    [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.Value
    1715     {
    1716        
    1717         private double ValueField;
    1718        
    1719         [System.Runtime.Serialization.DataMemberAttribute()]
    1720         public double Value
     1712    [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
    17211721        {
    17221722            get
     
    17331733            }
    17341734        }
     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,
    17351837    }
    17361838   
     
    17511853        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IQueryService/GetRuns", ReplyAction="http://tempuri.org/IQueryService/GetRunsResponse")]
    17521854        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();
    17531861    }
    17541862   
     
    18061914            return base.Channel.GetRuns(ids, includeBinaryValues);
    18071915        }
     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        }
    18081926    }
    18091927}
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/Views/QueryView.Designer.cs

    r7331 r7589  
    5050      this.runCollectionView = new HeuristicLab.Optimization.Views.RunCollectionView();
    5151      this.splitContainer = new System.Windows.Forms.SplitContainer();
     52      this.filterTabControl = new System.Windows.Forms.TabControl();
     53      this.filterTabPage = new System.Windows.Forms.TabPage();
    5254      this.filtersGroupBox = new System.Windows.Forms.GroupBox();
    5355      this.filterPanel = new System.Windows.Forms.Panel();
    5456      this.refreshFiltersButton = new System.Windows.Forms.Button();
     57      this.constraintsTabPage = new System.Windows.Forms.TabPage();
    5558      this.resultsGroupBox = new System.Windows.Forms.GroupBox();
    5659      this.includeBinaryValuesCheckBox = new System.Windows.Forms.CheckBox();
     
    6164      this.filtersInfoPanel = new System.Windows.Forms.Panel();
    6265      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();
    6369      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
    6470      this.splitContainer.Panel1.SuspendLayout();
    6571      this.splitContainer.Panel2.SuspendLayout();
    6672      this.splitContainer.SuspendLayout();
     73      this.filterTabControl.SuspendLayout();
     74      this.filterTabPage.SuspendLayout();
    6775      this.filtersGroupBox.SuspendLayout();
     76      this.constraintsTabPage.SuspendLayout();
    6877      this.resultsGroupBox.SuspendLayout();
    6978      this.resultsInfoPanel.SuspendLayout();
     
    106115      // splitContainer.Panel1
    107116      //
    108       this.splitContainer.Panel1.Controls.Add(this.filtersGroupBox);
     117      this.splitContainer.Panel1.Controls.Add(this.filterTabControl);
    109118      //
    110119      // splitContainer.Panel2
     
    115124      this.splitContainer.TabIndex = 0;
    116125      //
     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      //
    117150      // filtersGroupBox
    118151      //
     
    122155      this.filtersGroupBox.Controls.Add(this.filterPanel);
    123156      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);
    125158      this.filtersGroupBox.Name = "filtersGroupBox";
    126       this.filtersGroupBox.Size = new System.Drawing.Size(838, 279);
     159      this.filtersGroupBox.Size = new System.Drawing.Size(812, 238);
    127160      this.filtersGroupBox.TabIndex = 0;
    128161      this.filtersGroupBox.TabStop = false;
     
    136169      this.filterPanel.Location = new System.Drawing.Point(6, 19);
    137170      this.filterPanel.Name = "filterPanel";
    138       this.filterPanel.Size = new System.Drawing.Size(796, 254);
     171      this.filterPanel.Size = new System.Drawing.Size(770, 213);
    139172      this.filterPanel.TabIndex = 1;
    140173      //
     
    143176      this.refreshFiltersButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    144177      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);
    146179      this.refreshFiltersButton.Name = "refreshFiltersButton";
    147180      this.refreshFiltersButton.Size = new System.Drawing.Size(24, 24);
     
    149182      this.refreshFiltersButton.UseVisualStyleBackColor = true;
    150183      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;
    151197      //
    152198      // resultsGroupBox
     
    245291      this.filtersInfoLabel.Text = "Loading Filters ...";
    246292      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);
    247328      //
    248329      // QueryView
     
    259340      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
    260341      this.splitContainer.ResumeLayout(false);
     342      this.filterTabControl.ResumeLayout(false);
     343      this.filterTabPage.ResumeLayout(false);
    261344      this.filtersGroupBox.ResumeLayout(false);
     345      this.constraintsTabPage.ResumeLayout(false);
    262346      this.resultsGroupBox.ResumeLayout(false);
    263347      this.resultsGroupBox.PerformLayout();
     
    285369    private System.Windows.Forms.Button refreshFiltersButton;
    286370    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;
    287377
    288378  }
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Query/Views/QueryView.cs

    r7573 r7589  
    2121
    2222using System;
     23using System.Collections;
     24using System.Collections.Generic;
    2325using System.IO;
    2426using System.Linq;
     
    7577    private void LoadResultsAsync(int batchSize) {
    7678      bool includeBinaryValues = includeBinaryValuesCheckBox.Checked;
     79      IEnumerable<ValueName> valueNames = constraintsCheckedListBox.CheckedItems.Cast<ValueName>();
    7780
    7881      Cursor = Cursors.AppStarting;
     
    99102        while (ids.Count() > 0) {
    100103          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          }
    102109          ids = ids.Skip(batchSize);
    103110          Invoke(new Action(() => {
     
    146153      } else {
    147154        CreateFilterView();
     155        CreateConstraintsView();
    148156        filtersInfoPanel.Visible = false;
    149157        splitContainer.Enabled = true;
     
    179187        }
    180188      }
     189    }
     190
     191    private void CreateConstraintsView() {
     192      constraintsCheckedListBox.Items.Clear();
     193      constraintsCheckedListBox.Items.AddRange(QueryClient.Instance.ValueNames.ToArray());
     194      SetCheckedState(true);
    181195    }
    182196
     
    221235      return null;
    222236    }
     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    }
    223255  }
    224256}
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB.DataAccess/3.3/ValueNameCategory.cs

    r7331 r7589  
    2020#endregion
    2121
     22using System.Runtime.Serialization;
    2223namespace HeuristicLab.Services.OKB.DataAccess {
     24  [DataContract]
    2325  public enum ValueNameCategory {
     26    [EnumMember]
    2427    Parameter = 0,
     28    [EnumMember]
    2529    Result = 1
    2630  }
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/HeuristicLab.Services.OKB-3.3.csproj

    r7574 r7589  
    147147    <Compile Include="Query\DataTransfer\BoolValue.cs" />
    148148    <Compile Include="Query\DataTransfer\CombinedFilter.cs" />
     149    <Compile Include="Query\DataTransfer\ValueName.cs" />
    149150    <Compile Include="Query\DataTransfer\NameOrdinalComparisonTimeSpanFilter.cs" />
    150151    <Compile Include="Query\DataTransfer\OrdinalComparisonTimeSpanFilter.cs" />
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/Convert.cs

    r7574 r7589  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    2425using DA = HeuristicLab.Services.OKB.DataAccess;
     
    3233      dto.ParameterValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Parameter).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray();
    3334      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();
    3443      return dto;
    3544    }
     
    7483      }
    7584    }
     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    }
    7690  }
    7791}
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/IQueryService.cs

    r7331 r7589  
    4242    [OperationContract]
    4343    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();
    4450  }
    4551}
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/QueryService.cs

    r7574 r7589  
    258258    }
    259259
     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
    260276    private IQueryable<DataAccess.Run> FilterRuns(IQueryable<DataAccess.Run> runs, Filter filter) {
    261277      IFilter f = (IFilter)Activator.CreateInstance(Type.GetType(filter.FilterTypeName), filter);
Note: See TracChangeset for help on using the changeset viewer.