Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/11 10:44:42 (14 years ago)
Author:
cneumuel
Message:

#1215

  • evaluation operator returns operatorgraph which creates a scope and an operation for each algorithm execution (each repetition and problem)
  • split ValueConfiguration into ParameterizedValueConfiguration and RangeValueConfiguration
Location:
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3

    • Property svn:ignore
      •  

        old new  
        33HeuristicLab.Problems.MetaOptimization.Views-3.3.csproj.user
        44HeuristicLabProblemsMetaOptimizationViewsPlugin.cs
         5*.vs10x
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/OptimizableView.cs

    r5087 r5653  
    11using System;
    2 using System.Collections.Generic;
    3 using System.ComponentModel;
    4 using System.Drawing;
    5 using System.Data;
    6 using System.Linq;
    7 using System.Text;
    82using HeuristicLab.Core.Views;
     3using HeuristicLab.Data;
    94using HeuristicLab.MainForm;
    10 using HeuristicLab.Parameters;
    11 using HeuristicLab.Core;
    12 using HeuristicLab.Data;
    135
    146namespace HeuristicLab.Problems.MetaOptimization.Views.ValueConfigurationViews {
     
    4739        if (Content.Optimize) {
    4840          this.viewHost.ViewType = null;
    49           if (Content is IParameterConfiguration) {
     41
     42          var pc = Content as IParameterConfiguration;
     43          var vc = Content as IValueConfiguration;
     44
     45          if (pc != null) {
    5046            this.viewHost.Content = ((IParameterConfiguration)Content).ValueConfigurations;
    51           } else if (Content is IValueConfiguration) {
    52             if (Content.ActualValue.ValueDataType == typeof(IntValue) ||
     47          } else if(vc != null) {
     48            var rvc = Content as RangeValueConfiguration;
     49            if (rvc != null) {
     50              if (Content.ActualValue.ValueDataType == typeof(IntValue) ||
    5351                Content.ActualValue.ValueDataType == typeof(DoubleValue) ||
    5452                Content.ActualValue.ValueDataType == typeof(PercentValue)) {
    55               this.viewHost.ViewsLabelVisible = true;
    56               this.viewHost.Content = ((IValueConfiguration)Content).RangeConstraint;
    57             } else if(Content.ActualValue.ValueDataType == typeof(BoolValue)) {
    58               this.viewHost.Content = null; // no configuration required
    59             } else {
     53                this.viewHost.ViewsLabelVisible = true;
     54                this.viewHost.Content = rvc.RangeConstraint;
     55              } else if (Content.ActualValue.ValueDataType == typeof(BoolValue)) {
     56                this.viewHost.Content = null; // no configuration required
     57              }
     58            }
     59
     60            var pvc = Content as ParameterizedValueConfiguration;
     61            if (pvc != null) {
    6062              this.viewHost.ViewsLabelVisible = false;
    61               this.viewHost.Content = ((IValueConfiguration)Content).ParameterConfigurations;
     63              this.viewHost.Content = pvc.ParameterConfigurations;
    6264            }
    6365          } else {
Note: See TracChangeset for help on using the changeset viewer.