From 0ff589db10b3a8fd551f341b5d3e68c98548c44d Mon Sep 17 00:00:00 2001 From: Milan Lukic <2122158@stud.hs-mannheim.de> Date: Fri, 6 Jan 2023 15:18:46 +0100 Subject: [PATCH] =?UTF-8?q?Nexus6=20(Pris)=20in=20RoboterLager=20hinzuf?= =?UTF-8?q?=C3=BCgt.=20In=20der=20UI=20kann=20abgerufen=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Roboterfabrik/src/Domäne/RobotFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Roboterfabrik/src/Domäne/RobotFactory.java b/Roboterfabrik/src/Domäne/RobotFactory.java index 1f83742..dfa8b58 100644 --- a/Roboterfabrik/src/Domäne/RobotFactory.java +++ b/Roboterfabrik/src/Domäne/RobotFactory.java @@ -6,10 +6,12 @@ import tpe.exceptions.roboter.exceptions.RobotException; public class RobotFactory { private String name; + private Roboter pris = Nexus6.getInstance(); private HashMap roboterLager = new HashMap<>(); public RobotFactory (String name) { this.name = name; + roboterLager.put(pris.getId(), pris); } public int addRobot (RobotType robotType, String name) {