Small commit while writing tests
This commit is contained in:
@@ -10,12 +10,15 @@ public class AssignmentManager {
|
||||
Map<Integer, Task> taskMap;
|
||||
int workerIdCounter;
|
||||
int taskIdCounter;
|
||||
UserCommands userInterface;
|
||||
|
||||
public AssignmentManager() {
|
||||
workerMap = new HashMap<>();
|
||||
taskMap = new HashMap<>();
|
||||
int workerIdCounter = 1000;
|
||||
int taskIdCounter = 0;
|
||||
userInterface = new UserCommands();
|
||||
userInterface.start();
|
||||
}
|
||||
|
||||
public int createWorker(String name) {
|
||||
|
||||
9
src/main/java/hhn/temp/project/Main.java
Normal file
9
src/main/java/hhn/temp/project/Main.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package hhn.temp.project;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
AssignmentManager manager = new AssignmentManager();
|
||||
}
|
||||
}
|
||||
20
src/main/java/hhn/temp/project/UserCommands.java
Normal file
20
src/main/java/hhn/temp/project/UserCommands.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package hhn.temp.project;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class UserCommands {
|
||||
public void start() {
|
||||
boolean close = false;
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
while (!close) {
|
||||
System.out.println("Type '?' or 'help' for a list of commands");
|
||||
System.out.println("Please enter a command:");
|
||||
String input = scanner.nextLine();
|
||||
handleInput(input);
|
||||
}
|
||||
scanner.close();
|
||||
}
|
||||
public void handleInput(String input) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user