Nexus6 (Pris) in RoboterLager hinzufügt. In der UI kann abgerufen werden
parent
7ffe3886ac
commit
0ff589db10
|
@ -6,10 +6,12 @@ import tpe.exceptions.roboter.exceptions.RobotException;
|
||||||
|
|
||||||
public class RobotFactory {
|
public class RobotFactory {
|
||||||
private String name;
|
private String name;
|
||||||
|
private Roboter pris = Nexus6.getInstance();
|
||||||
private HashMap <Integer, Roboter> roboterLager = new HashMap<>();
|
private HashMap <Integer, Roboter> roboterLager = new HashMap<>();
|
||||||
|
|
||||||
public RobotFactory (String name) {
|
public RobotFactory (String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
roboterLager.put(pris.getId(), pris);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int addRobot (RobotType robotType, String name) {
|
public int addRobot (RobotType robotType, String name) {
|
||||||
|
|
Loading…
Reference in New Issue