updated Auswahlmenü für Roboterkontrolle
parent
56e37abd70
commit
0f4c343fce
|
@ -6,9 +6,16 @@ import facade.FactorySystem;
|
|||
import infrastructure.Persistenz;
|
||||
import utility.robot_exceptions.RobotException;
|
||||
|
||||
import java.sql.SQLOutput;
|
||||
import java.util.Arrays;
|
||||
import java.util.Scanner;
|
||||
|
||||
/*
|
||||
TODOS:
|
||||
- namen der ROboter abfragen
|
||||
- Seriennummer der Roboter abfragen
|
||||
- Typ der Roboter abfragen
|
||||
*/
|
||||
public class UI {
|
||||
|
||||
private FactorySystem fs;
|
||||
|
@ -122,7 +129,10 @@ public class UI {
|
|||
System.out.println("Sie haben folgende optionen: ");
|
||||
System.out.println("-1- --- Roboter " + (!fs.searchForRobot(idInput).isPowerOn() ? "Einschalten " : "Ausschalten " ) + " ---");
|
||||
System.out.println("-2- -- Sortieren einer Liste --");
|
||||
System.out.println("-3- ---------- Exit -----------");
|
||||
System.out.println("-3- ----- Namen ausgeben ------");
|
||||
System.out.println("-4- ------ ID ausgeben --------");
|
||||
System.out.println("-5- ------ Typ ausgeben -------");
|
||||
System.out.println("-6- ---------- Exit -----------");
|
||||
System.out.print(" > ");
|
||||
//User options
|
||||
try {
|
||||
|
@ -149,7 +159,7 @@ public class UI {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 3: break mainloop;
|
||||
case 6: break mainloop;
|
||||
default:
|
||||
System.out.println("Keine valide Option"); break;
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue