... | ... | @@ -175,7 +175,7 @@ and several non-executable classes whose methods are called from GoogleEarthTwee |
|
|
|
|
|
Although this class could not be completed until we had created all other classes, we will begin with this class since it provides a neat summary of how all components for our project come together.
|
|
|
|
|
|
As stated above, we aimed to make the whole programme run smoothly without the user having to figure out which classes to execute and in which order. We hope that it may demonstrate how we applied our newly obtained knowledge about modularity, to make the whole programme run smoothly and without the user having to figure our which classes to execute and in which order. To see the main class [GoogleEarthTweetMapper.java](https://git.sbg.ac.at/s1080384/EoT/-/blob/main/Java%20Codes/Final%20Version/GoogleEarthTweetMapper.java) in the correct order.
|
|
|
We hope that it may demonstrate how we applied our newly obtained knowledge about modularity, to make the whole programme run smoothly and without the user having to figure our which classes to execute and in which order. To see the main class [GoogleEarthTweetMapper.java](https://git.sbg.ac.at/s1080384/EoT/-/blob/main/Java%20Codes/Final%20Version/GoogleEarthTweetMapper.java) in the correct order.
|
|
|
|
|
|
<details><summary>See the Code for the GoogleEarthTweetMapper.java class here</summary>
|
|
|
|
... | ... | @@ -241,7 +241,7 @@ public class GoogleEarthTweetMapper { |
|
|
|
|
|
## User Input 1
|
|
|
|
|
|
The .askUser1() method is called at the very beginning of the main class to set the directory. the directory needs to be declared at the very beginning since multiple other variables incorporate the directory, and all the following classes and methods build upon it. In this method, we included a
|
|
|
The .askUser1() method is called at the very beginning of the main class to set the directory. The directory needs to be declared at the very beginning since multiple other variables incorporate the directory, and all the following classes and methods build upon it. In this method, we included a
|
|
|
default directory, to make the programme works either way. We set the default directory to "C:/Users/Public/Documents", which is given on any PC. Nonetheless, we wanted to let the user specify a different directory if they prefer that. Now, the user can communicate with the program and tell it where to store all the files. To deal with any spaces in file paths, we set the scanner method to .nextLine(), and to check if the entered file path exists we added a control mechanism in the form of an if-else-loop that confirms whether the given directory is a real one, i. e. whether it exists, or else it asks the user again to set a new directory. This was implemented in the non-executable [user_Input.java](https://git.sbg.ac.at/s1080384/EoT/-/blob/main/Java%20Codes/Final%20Version/User_input.java) class.
|
|
|
|
|
|
<details><summary>See the Code for the userInput.java class here</summary>
|
... | ... | |