Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/08/20 16:55:51 (4 years ago)
Author:
abeham
Message:

#2521: Unified architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/ProbabilisticTSPData.cs

    r17525 r17533  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    2425using HEAL.Attic;
     
    3233namespace HeuristicLab.Problems.PTSP {
    3334  [StorableType("dd2d0ecc-372e-46f1-846f-fb4ca2afa124")]
    34   public interface IProbabilisticTSPData : INamedItem {
    35     ITSPData TSPData { get; }
    36 
     35  public interface IProbabilisticTSPData : ITSPData {
    3736    double GetProbability(int city);
    38     IProbabilisticTSPSolution GetSolution(Permutation tspTour, double tourLength);
    39     PTSPData Export();
     37    new IProbabilisticTSPSolution GetSolution(Permutation tspTour, double tourLength);
     38    new PTSPData Export();
    4039  }
    4140
     
    8988      };
    9089    }
     90
     91    #region ITSPData members
     92    int ITSPData.Cities => TSPData.Cities;
     93    double ITSPData.GetDistance(int fromCity, int toCity) => TSPData.GetDistance(fromCity, toCity);
     94    double ITSPData.GetPathDistance(IEnumerable<int> path, bool closed) => TSPData.GetPathDistance(path, closed);
     95    ITSPSolution ITSPData.GetSolution(Permutation tspTour, double tourLength) => TSPData.GetSolution(tspTour, tourLength);
     96    TSPData ITSPData.Export() => TSPData.Export();
     97    DoubleMatrix ITSPData.GetCoordinatesOrDefault() => TSPData.GetCoordinatesOrDefault();
     98    #endregion
    9199  }
    92100}
Note: See TracChangeset for help on using the changeset viewer.