Last change
on this file since 3155 was
3065,
checked in by svonolfe, 15 years ago
|
Added OneMax problem to test the BinaryVector operators (#916)
|
File size:
1012 bytes
|
Rev | Line | |
---|
[3065] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Data;
|
---|
| 5 | using System.Drawing;
|
---|
| 6 | using System.Text;
|
---|
| 7 | using System.Windows.Forms;
|
---|
| 8 | using HeuristicLab.Optimization.Views;
|
---|
| 9 | using HeuristicLab.MainForm;
|
---|
| 10 |
|
---|
| 11 | namespace HeuristicLab.Problems.OneMax.Views {
|
---|
| 12 | [View("OneMax View")]
|
---|
| 13 | [Content(typeof(OneMax), true)]
|
---|
| 14 | public partial class OneMaxView : ProblemView {
|
---|
| 15 | public new OneMax Content {
|
---|
| 16 | get { return (OneMax)base.Content; }
|
---|
| 17 | set { base.Content = value; }
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | /// <summary>
|
---|
| 21 | /// Initializes a new instance of <see cref="ItemBaseView"/>.
|
---|
| 22 | /// </summary>
|
---|
| 23 | public OneMaxView() {
|
---|
| 24 | InitializeComponent();
|
---|
| 25 | }
|
---|
| 26 | /// <summary>
|
---|
| 27 | /// Intializes a new instance of <see cref="ItemBaseView"/> with the given <paramref name="item"/>.
|
---|
| 28 | /// </summary>
|
---|
| 29 | /// <param name="item">The item that should be displayed.</param>
|
---|
| 30 | public OneMaxView(OneMax content)
|
---|
| 31 | : this() {
|
---|
| 32 | Content = content;
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.