Changeset 17533 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/ProbabilisticTSPData.cs
- Timestamp:
- 05/08/20 16:55:51 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/ProbabilisticTSPData.cs
r17525 r17533 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HEAL.Attic; … … 32 33 namespace HeuristicLab.Problems.PTSP { 33 34 [StorableType("dd2d0ecc-372e-46f1-846f-fb4ca2afa124")] 34 public interface IProbabilisticTSPData : INamedItem { 35 ITSPData TSPData { get; } 36 35 public interface IProbabilisticTSPData : ITSPData { 37 36 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(); 40 39 } 41 40 … … 89 88 }; 90 89 } 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 91 99 } 92 100 }
Note: See TracChangeset
for help on using the changeset viewer.