Skip to content

Commit

Permalink
userguide refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NuiS4ncE committed Mar 15, 2021
1 parent bf07e40 commit e38d755
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
[Reports](https://github.com/NuiS4ncE/PathfindingLab/tree/master/documentation/reports)
</br>
[Test documentation](https://github.com/NuiS4ncE/PathfindingLab/blob/master/documentation/testdocumentation.md)

</br>
[User guide]()
</br>
[Release]()
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jar {
manifest {
attributes 'Main-Class': 'PathfindingLab.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory()? it : zipTree(it) }
}

}


Expand Down
Empty file removed documentation/reports/userguide.md
Empty file.
41 changes: 41 additions & 0 deletions documentation/userguide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# User guide

Download the zip file, unzip the files and run the command from terminal in PathfindingLab directory:

`./gradlew jar`

Go to the directory where the jar file is located by writing:

`cd build/libs`


and write the command:

`java -jar PathfindingLab.jar`

## Opening a map

Maps are included with the files and can be located by pressing the button
__Open__ and finding a map from the directory.

## Choosing the algorithm

The algorithm is chosen by using the drop-down list under the __Open__ button.

## Setting start and end points

You can set the start point for the path by toggling the __Start__ button
and clicking on a spot on the map. End point can be set the same way by toggling the __End__ button.

## Running the algorithm

The algorithm is run by pressing the __Run__ button.

## Clearing the map

The map can be cleared by pressing the __Clear__ button.

## Closing the application

The application can be closed by pressing the __X__ in the top-right corner
or pressing the __Exit__ button.
1 change: 1 addition & 0 deletions src/main/java/PathfindingLab/algorithms/IDAStar.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import static java.lang.Math.abs;
import static java.lang.Math.sqrt;

//This algorithm doesn't work therefore the class doesn't work either.
public class IDAStar {

Node startNode, routeFinal, visitedNode;
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/PathfindingLab/ui/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public ComboBox<String> comboBoxFilter() {
ComboBox<String> comboBox = new ComboBox<>();
comboBox.getItems().add("Dijkstra");
comboBox.getItems().add("AStar");
comboBox.getItems().add("IDAStar");
//comboBox.getItems().add("IDAStar");
comboBox.setEditable(false);
comboBox.setValue("");

Expand Down Expand Up @@ -305,8 +305,6 @@ public MyList<Node> printRoute(DijkstraPath dijkstraPath, AStar aStar, IDAStar i
} else {
System.out.println("Route not found! " + routeNodes.toString());
}
System.out.println(routeNodes.toString());
System.out.println("WHAT");
return routeNodes;
}

Expand Down

0 comments on commit e38d755

Please sign in to comment.