Skip to content

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