Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3164


Ignore:
Timestamp:
03/22/10 10:33:44 (15 years ago)
Author:
svonolfe
Message:

Renamed OneMax to OneMaxProblem and OneMaxView to OneMaxProblemView (#916)

Location:
trunk/sources
Files:
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.OneMax.Views/3.3/OneMaxProblemView.Designer.cs

    r3163 r3164  
    11namespace HeuristicLab.Problems.OneMax.Views {
    2   partial class OneMaxView {
     2  partial class OneMaxProblemView {
    33    /// <summary>
    44    /// Required designer variable.
  • trunk/sources/HeuristicLab.Problems.OneMax.Views/3.3/OneMaxProblemView.cs

    r3163 r3164  
    1010
    1111namespace 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; }
     12  [View("OneMaxProblem View")]
     13  [Content(typeof(OneMaxProblem), true)]
     14  public partial class OneMaxProblemView : ProblemView {
     15    public new OneMaxProblem Content {
     16      get { return (OneMaxProblem)base.Content; }
    1717      set { base.Content = value; }
    1818    }
     
    2121    /// Initializes a new instance of <see cref="ItemBaseView"/>.
    2222    /// </summary>
    23     public OneMaxView() {
     23    public OneMaxProblemView() {
    2424      InitializeComponent();
    2525    }
     
    2828    /// </summary>
    2929    /// <param name="item">The item that should be displayed.</param>
    30     public OneMaxView(OneMax content)
     30    public OneMaxProblemView(OneMaxProblem content)
    3131      : this() {
    3232      Content = content;
  • trunk/sources/HeuristicLab.Problems.OneMax/3.3/OnemaxProblem.cs

    r3163 r3164  
    3434
    3535namespace HeuristicLab.Problems.OneMax {
    36   [Item("OneMax", "Represents a OneMax Problem.")]
     36  [Item("OneMaxProblem", "Represents a OneMax Problem.")]
    3737  [Creatable("Problems")]
    3838  [StorableClass]
    39   public sealed class OneMax : ParameterizedNamedItem, ISingleObjectiveProblem {
     39  public sealed class OneMaxProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
    4040    public override Image ItemImage {
    4141      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
     
    116116    #endregion
    117117
    118     public OneMax()
     118    public OneMaxProblem()
    119119      : base() {
    120120      RandomBinaryVectorCreator creator = new RandomBinaryVectorCreator();
     
    137137
    138138    [StorableConstructor]
    139     private OneMax(bool deserializing) : base() { }
     139    private OneMaxProblem(bool deserializing) : base() { }
    140140
    141141    public override IDeepCloneable Clone(Cloner cloner) {
    142       OneMax clone = (OneMax)base.Clone(cloner);
     142      OneMaxProblem clone = (OneMaxProblem)base.Clone(cloner);
    143143      clone.Initialize();
    144144      return clone;
Note: See TracChangeset for help on using the changeset viewer.