Project For the Course Digital Logic Design II in the American University in Cairo.
From the src directory:
- Run the code from the GUI/Main.class using your favorite IDE or command interpreter.
- You will be prompted to enter the grids width, height and vias cost in the console.
- Then enter the source and target coordinates (Please note that the coordinates start from index 0).
- The path will then be displayed on a beautiful GUI and both the cost and the CPU Time will be in the console (will make it in the GUI later). To enter new cells, just press on new cells from the GUI and repeat step 3.
- And when you are done just close the window.
In the Documentation directory, go to index.html and a JavaDoc of all my classes will be available.
The project contains 2 packages:
-
Algorithm package:
Algorithm.AStar class contains the actual functions needed for the A* algorithm to work. It uses the Algorithm.Node class.
Algorithm.Maze class is an interface between the main and the com.AStar class. I have done it to abstract details from the Algorithm.AStar class.
Algorithm.Utils class has a set of helper functions to improve the readability of the other main classes. -
GUI Package:
GUI.Main class runs the Algorithm.Main to have the result of the algorithm and displays it on screen. GUI.Controller is a medium for the Algorithm.Main to transfer data to the GUI.Main.