Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR is the log of changes for the Warehouse project #4

Open
wants to merge 25 commits into
base: 2001_Field
Choose a base branch
from

Conversation

madhephaestus
Copy link

No description provided.


}
public void verifyFoldersExist(){
String localDirectory = System.getProperty("user.home")+ File.separator+"Documents";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the location for this file should be a system property passed at runtime with the -D options. For testing this file should be in the version control with the code.

public void loadBorrowedInventory(){
JSONParser parser = new JSONParser();
try {
Object obj = parser.parse(new FileReader(System.getProperty("user.home")+ File.separator+"Documents"+File.separator+"WareHouseRobot"+File.separator+BorrowedInventoryLoc));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also a system property with the testing files int he source repo with this code

tempList.add(it);
}
Inventory.put("inventory", tempList);
try (FileWriter file = new FileWriter(System.getProperty("user.home")+ File.separator+"Documents"+File.separator+"WareHouseRobot"+File.separator+InventoryLoc)) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also a system property

Parent root = FXMLLoader.load(getClass().getResource("/fxml/MainScreen.fxml"));
primaryStage.setTitle("RBE 2001 Controller");
public void start(Stage stage) throws Exception {
theStage = stage;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The start screen needs to fail with an error if the robots re not online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants