Relocated Import
This commit is contained in:
parent
66f4641fb7
commit
d29ab7e01e
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\astar\astar.csproj" />
|
<ProjectReference Include="..\astar\astar.csproj" />
|
||||||
|
<ProjectReference Include="..\Graph\Graph.csproj" />
|
||||||
|
<ProjectReference Include="..\OpenStreetMap Importer\OpenStreetMap Importer.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1 +1,3 @@
|
|||||||
new astar.Astar();
|
Logging.Logger logger = new Logging.Logger(Logging.LogType.Console, Logging.loglevel.DEBUG);
|
||||||
|
Dictionary<UInt64, Graph.Node> nodes = OpenStreetMap_Importer.Importer.Import(ref logger);
|
||||||
|
new astar.Astar(nodes, ref logger);
|
@ -1,6 +1,5 @@
|
|||||||
using Logging;
|
using Logging;
|
||||||
using Graph;
|
using Graph;
|
||||||
using OpenStreetMap_Importer;
|
|
||||||
|
|
||||||
namespace astar
|
namespace astar
|
||||||
{
|
{
|
||||||
@ -11,10 +10,9 @@ namespace astar
|
|||||||
/*
|
/*
|
||||||
* Loads the graph, chooses two nodes at random and calls a*
|
* Loads the graph, chooses two nodes at random and calls a*
|
||||||
*/
|
*/
|
||||||
public Astar()
|
public Astar(Dictionary<UInt64, Node> nodes, ref Logger logger)
|
||||||
{
|
{
|
||||||
this.logger = new Logger(LogType.Console, loglevel.DEBUG);
|
this.logger = logger;
|
||||||
Dictionary<UInt64, Node> nodes = Importer.Import(ref logger);
|
|
||||||
Random r = new Random();
|
Random r = new Random();
|
||||||
List<Node> path = new List<Node>();
|
List<Node> path = new List<Node>();
|
||||||
while(path.Count < 1)
|
while(path.Count < 1)
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Graph\Graph.csproj" />
|
<ProjectReference Include="..\Graph\Graph.csproj" />
|
||||||
<ProjectReference Include="..\Logging\Logging.csproj" />
|
<ProjectReference Include="..\Logging\Logging.csproj" />
|
||||||
<ProjectReference Include="..\OpenStreetMap Importer\OpenStreetMap Importer.csproj" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user