Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10828


Ignore:
Timestamp:
05/09/14 10:32:45 (11 years ago)
Author:
bburlacu
Message:

#1837: Added storable attributes to the SlidingWindowRange. Fixed small typo in SlidingWindow/SlidingWindowBestSolutionsCollectionHeatMapView.cs and added license information header.

Location:
branches/Sliding Window GP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SlidingWindow/SlidingWindowBestSolutionsCollectionHeatMapView.cs

    r10724 r10828  
    1 using System.Windows.Forms;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System.Windows.Forms;
    223using HeuristicLab.Analysis;
    324using HeuristicLab.Analysis.Views;
     
    1637      chartArea.AxisY.Title = "Best solution";
    1738      chartArea.AxisY.IsReversed = true;
    18       chartArea.AxisX.IsStartedFromZero = true;
     39      chartArea.AxisY.IsStartedFromZero = true;
    1940    }
    2041  }
  • branches/Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SlidingWindow/SlidingWindowBestSolutionsCollection.cs

    r10721 r10828  
    336336  }
    337337
     338  [StorableClass]
    338339  public class SlidingWindowRange : IEquatable<SlidingWindowRange> {
     340    [Storable]
    339341    private readonly Tuple<int, int> tuple;
    340342
    341343    public int Start { get { return tuple.Item1; } }
    342 
    343344    public int End { get { return tuple.Item2; } }
     345
     346    [StorableConstructor]
     347    private SlidingWindowRange(bool deserializable) { }
     348    private SlidingWindowRange() { }
    344349
    345350    public SlidingWindowRange(int start, int end) {
Note: See TracChangeset for help on using the changeset viewer.