Project Timeline
Files
- Presentation
- Note: This only has documentation for the database as there is no explanation inside of the project files as per the structure.
Database Documentation
- Plain Project Files
- Note: In order to use this project, you will need to update the DatabaseHandler file with SSH login info as well as Database credentials.
Android Studio Project
-
File Descriptions:
- DatabaseHandler.java - Establishes a SSH & Database connection, then pulls down and formats the data into a JSONArray of the beacons.
- GraphHandler.java - Creates the Graph of the beacons, takes the JSONArray as input. Will then solve the graph based on start/end MAC addresses.
- MainActivity.java - Only Activity in the project, handles all permissions and creates the bitmap/imageview on start when beacons are pulled back.
- RangeHandler.java - This is where we scan for beacons, function is called each time we recieve new information from the array of beacons, which either updates the start beacon or is sent to the routing manager.
- RoutingManager.java - This is where we handle the routing logic. Each time we scan for beacons, every 0.5s, we have a main function that is called that handles the logic of the routing.
Canvas will be updated every time new directions are inputted as well.
-
Here's a diagram of the flow of the project: