Almost full implementation of Scanner UI. Two tests not passing, but safety commit

This commit is contained in:
2026-01-04 16:09:48 +01:00
parent a875f24e83
commit c85d55ce7d
22 changed files with 368 additions and 68 deletions

View File

@@ -17,8 +17,7 @@ public class AssignmentManager {
taskMap = new HashMap<>();
int workerIdCounter = 1000;
int taskIdCounter = 0;
userInterface = new UserCommands();
userInterface.start();
userInterface = new UserCommands(this);
}
public int createWorker(String name) {
@@ -80,5 +79,12 @@ public class AssignmentManager {
public UserCommands getUserCommands() {
return userInterface;
}
public void startCLI() {
userInterface.start();
}
public void stopCLI() {
userInterface.stop();
}
}