Changeset 8301
- Timestamp:
- 07/18/12 16:15:20 (12 years ago)
- Location:
- branches/RoutePlanning
- Files:
-
- 7 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning.Test/Program.cs
r8293 r8301 9 9 //string filepath = @"..\..\OsmTestFiles\testRelation1.osm"; 10 10 XmlDataSource xmlDs = new XmlDataSource(filepath); 11 xmlDs.ReadData();11 //xmlDs.ReadData(); 12 12 } 13 13 } -
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/RoutePlanningProblem.cs
r8285 r8301 20 20 #endregion 21 21 22 using System.IO; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 26 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.RoutePlanning.Osm; 30 using HeuristicLab.Problems.RoutePlanning.Osm.Data; 28 31 29 32 namespace HeuristicLab.Problems.RoutePlanning { … … 33 36 public class RoutePlanningProblem : Problem { 34 37 private const string CoordinatesParameterName = "Coordinates"; 35 private const string FromParameterName = "From";36 private const string T oParameterName = "To";38 private const string SourceParameterName = "Source"; 39 private const string TargetParameterName = "Target"; 37 40 public string Filename { get; set; } 41 42 IDataSource dataSource; 43 Graph.Graph graph; 38 44 39 45 #region Parameter Properties … … 42 48 get { return (OptionalValueParameter<DoubleMatrix>)Parameters[CoordinatesParameterName]; } 43 49 } 44 public ValueParameter<IntValue> FromParameter {45 get { return (ValueParameter<IntValue>)Parameters[ FromParameterName]; }50 public ValueParameter<IntValue> SourceParameter { 51 get { return (ValueParameter<IntValue>)Parameters[SourceParameterName]; } 46 52 } 47 public ValueParameter<IntValue> T oParameter {48 get { return (ValueParameter<IntValue>)Parameters[T oParameterName]; }53 public ValueParameter<IntValue> TargetParameter { 54 get { return (ValueParameter<IntValue>)Parameters[TargetParameterName]; } 49 55 } 50 56 … … 58 64 } 59 65 60 public IntValue From{61 get { return FromParameter.Value; }62 set { FromParameter.Value = value; }66 public IntValue Source { 67 get { return SourceParameter.Value; } 68 set { SourceParameter.Value = value; } 63 69 } 64 70 65 public IntValue T o{66 get { return T oParameter.Value; }67 set { T oParameter.Value = value; }71 public IntValue Target { 72 get { return TargetParameter.Value; } 73 set { TargetParameter.Value = value; } 68 74 } 69 75 … … 86 92 public RoutePlanningProblem() { 87 93 Parameters.Add(new OptionalValueParameter<DoubleMatrix>(CoordinatesParameterName, "The x- and y-Coordinates of the cities.")); 88 Parameters.Add(new ValueParameter<IntValue>( FromParameterName, "From."));89 Parameters.Add(new ValueParameter<IntValue>(T oParameterName, "To."));94 Parameters.Add(new ValueParameter<IntValue>(SourceParameterName, "Source Node.")); 95 Parameters.Add(new ValueParameter<IntValue>(TargetParameterName, "Target Node.")); 90 96 91 97 RegisterEventHandlers(); … … 96 102 private void RegisterEventHandlers() { } 97 103 104 public void LoadData(string file) { 105 FileInfo f = new FileInfo(file); 106 dataSource = new XmlDataSource(file); 107 graph = new Graph.Graph(dataSource); 108 109 Name = f.Name; 110 111 OnReset(); 112 } 113 98 114 } 99 115 } -
branches/RoutePlanning/RoutePlanning.sln
r8293 r8301 7 7 EndProject 8 8 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.RoutePlanning.Test", "HeuristicLab.Problems.RoutePlanning.Test\HeuristicLab.Problems.RoutePlanning.Test.csproj", "{004241D1-2127-4489-9DFB-9F7707983371}" 9 EndProject 10 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Algorithms.GraphRouting", "HeuristicLab.Algorithms.GraphRouting\HeuristicLab.Algorithms.GraphRouting.csproj", "{4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}" 9 11 EndProject 10 12 Global … … 48 50 {004241D1-2127-4489-9DFB-9F7707983371}.Release|x86.ActiveCfg = Release|x86 49 51 {004241D1-2127-4489-9DFB-9F7707983371}.Release|x86.Build.0 = Release|x86 52 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 53 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Debug|Any CPU.Build.0 = Debug|Any CPU 54 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 55 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 56 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Debug|x86.ActiveCfg = Debug|Any CPU 57 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Release|Any CPU.ActiveCfg = Release|Any CPU 58 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Release|Any CPU.Build.0 = Release|Any CPU 59 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 60 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Release|Mixed Platforms.Build.0 = Release|Any CPU 61 {4FE72407-6CAA-4F41-9F2D-D45FDA19ED3C}.Release|x86.ActiveCfg = Release|Any CPU 50 62 EndGlobalSection 51 63 GlobalSection(SolutionProperties) = preSolution
Note: See TracChangeset
for help on using the changeset viewer.