Last change
on this file since 4682 was
4525,
checked in by cneumuel, 14 years ago
|
implemented basic crossover operator for ParameterSets. MetaOptimization is now functional on a basic level (Configuration and Crossing only works for IntValue Parameters) (#1215)
|
File size:
1.5 KB
|
Rev | Line | |
---|
[4516] | 1 | using 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;
|
---|
| 8 | using System.Windows.Forms;
|
---|
| 9 | using HeuristicLab.MainForm;
|
---|
| 10 | using HeuristicLab.Core.Views;
|
---|
| 11 | using HeuristicLab.Core;
|
---|
| 12 |
|
---|
| 13 | namespace HeuristicLab.Problems.MetaOptimization.Views {
|
---|
| 14 | /// <summary>
|
---|
| 15 | /// The visual representation of a <see cref="ParameterConfiguration"/>.
|
---|
| 16 | /// </summary>
|
---|
| 17 | [View("ParameterConfiguration View")]
|
---|
| 18 | [Content(typeof(IParameterConfiguration), true)]
|
---|
| 19 | public partial class ParameterConfigurationView : ItemView {
|
---|
| 20 | /// <summary>
|
---|
| 21 | /// Gets or sets the variable to represent visually.
|
---|
| 22 | /// </summary>
|
---|
| 23 | /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>.
|
---|
| 24 | /// No own data storage present.</remarks>
|
---|
| 25 | public new IParameterConfiguration Content {
|
---|
| 26 | get { return (IParameterConfiguration)base.Content; }
|
---|
| 27 | set { base.Content = value; }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | public ParameterConfigurationView() {
|
---|
| 31 | InitializeComponent();
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | protected override void OnContentChanged() {
|
---|
| 35 | base.OnContentChanged();
|
---|
| 36 | if (Content != null) {
|
---|
| 37 | viewHost.Content = Content.Parameter;
|
---|
| 38 | } else {
|
---|
| 39 | viewHost.Content = null;
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | protected override void SetEnabledStateOfControls() {
|
---|
| 44 | base.SetEnabledStateOfControls();
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | private void optimizeCheckBox_CheckedChanged(object sender, EventArgs e) {
|
---|
| 48 |
|
---|
| 49 | }
|
---|
| 50 | }
|
---|
| 51 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.