Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/19 15:41:46 (5 years ago)
Author:
abeham
Message:

#2521: Worked on PTSP refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman/3.3/TSPSolution.cs

    r17248 r17260  
    3030namespace HeuristicLab.Problems.TravelingSalesman {
    3131  [StorableType("f08a63d9-0b83-4944-9251-42925baeb872")]
    32   public interface ITSPSolution : IItem {
     32  public interface ITSPSolution : IItem, INotifyPropertyChanged {
    3333    DoubleMatrix Coordinates { get; }
    3434    Permutation Tour { get; }
     
    4141  [Item("TSP Solution", "Represents a tour of a Traveling Salesman Problem given in path representation which can be visualized in the GUI.")]
    4242  [StorableType("38d1aac3-3047-40d9-bcf9-4b3ca0b9f95c")]
    43   public sealed class TSPSolution : Item, ITSPSolution, INotifyPropertyChanged {
     43  public class TSPSolution : Item, ITSPSolution {
    4444    public static new Image StaticItemImage {
    4545      get { return HeuristicLab.Common.Resources.VSImageLibrary.Image; }
     
    7979
    8080    [StorableConstructor]
    81     private TSPSolution(StorableConstructorFlag _) : base(_) { }
    82     private TSPSolution(TSPSolution original, Cloner cloner)
     81    protected TSPSolution(StorableConstructorFlag _) : base(_) { }
     82    protected TSPSolution(TSPSolution original, Cloner cloner)
    8383      : base(original, cloner) {
    8484      this.coordinates = cloner.Clone(original.coordinates);
     
    108108
    109109    public event PropertyChangedEventHandler PropertyChanged;
    110     private void OnPropertyChanged(string property) {
     110    protected void OnPropertyChanged(string property) {
    111111      PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));
    112112    }
Note: See TracChangeset for help on using the changeset viewer.