Almost full implementation of Scanner UI. Two tests not passing, but safety commit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user