Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/12 19:06:17 (13 years ago)
Author:
ascheibe
Message:

#1174 added support for PercentValue

Location:
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/Convert.cs

    r7385 r7573  
    6262      } else if (source.ValueName.Type == DA.ValueNameType.Double) {
    6363        return new DT.DoubleValue { Name = source.ValueName.Name, DataType = Convert.ToDto(source.DataType), Value = source.DoubleValue.GetValueOrDefault() };
     64      } else if (source.ValueName.Type == DA.ValueNameType.Percent) {
     65        return new DT.PercentValue { Name = source.ValueName.Name, DataType = Convert.ToDto(source.DataType), Value = source.DoubleValue.GetValueOrDefault() };
    6466      } else if (source.ValueName.Type == DA.ValueNameType.String) {
    6567        return new DT.StringValue { Name = source.ValueName.Name, DataType = Convert.ToDto(source.DataType), Value = source.StringValue };
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/DataTransfer/Filter.cs

    r7331 r7573  
    3333  [KnownType(typeof(NameOrdinalComparisonFloatFilter))]
    3434  [KnownType(typeof(NameOrdinalComparisonDoubleFilter))]
     35  [KnownType(typeof(NameOrdinalComparisonPercentFilter))]
    3536  [KnownType(typeof(NameOrdinalComparisonIntFilter))]
    3637  [KnownType(typeof(NameOrdinalComparisonLongFilter))]
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/DataTransfer/Value.cs

    r7331 r7573  
    3131  [KnownType(typeof(StringValue))]
    3232  [KnownType(typeof(BinaryValue))]
     33  [KnownType(typeof(PercentValue))]
    3334  public abstract class Value {
    3435    [DataMember]
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/QueryService.cs

    r7385 r7573  
    8787            name
    8888          ));
     89        foreach (string name in okb.ValueNames.Where(x => (x.Category == ValueNameCategory.Parameter) && (x.Type == ValueNameType.Percent)).Select(x => x.Name).Distinct())
     90          filters.Add(new NameOrdinalComparisonPercentFilter(
     91            typeof(PercentValueFilter).AssemblyQualifiedName,
     92            "Parameter " + name + " Value",
     93            name
     94          ));
    8995        foreach (string name in okb.ValueNames.Where(x => (x.Category == ValueNameCategory.Parameter) && (x.Type == ValueNameType.String)).Select(x => x.Name).Distinct())
    9096          filters.Add(new NameStringComparisonFilter(
     
    144150            name
    145151          ));
     152        foreach (string name in okb.ValueNames.Where(x => (x.Category == ValueNameCategory.Result) && (x.Type == ValueNameType.Percent)).Select(x => x.Name).Distinct())
     153          filters.Add(new NameOrdinalComparisonPercentFilter(
     154            typeof(PercentValueFilter).AssemblyQualifiedName,
     155            "Result " + name + " Value",
     156            name
     157          ));
    146158        foreach (string name in okb.ValueNames.Where(x => (x.Category == ValueNameCategory.Result) && (x.Type == ValueNameType.String)).Select(x => x.Name).Distinct())
    147159          filters.Add(new NameStringComparisonFilter(
Note: See TracChangeset for help on using the changeset viewer.