minimale Anpassungen

master
Milan Lukic 2023-01-07 19:12:48 +01:00
parent b8de76edc5
commit 2e16367bcc
3 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import tpe.exceptions.roboter.exceptions.RobotException;
public class RobotFactory {
private String name;
private Roboter pris = Nexus6.getInstance();
private static HashMap <Integer, Roboter> roboterLager = new HashMap<>();
private HashMap <Integer, Roboter> roboterLager = new HashMap<>();
public RobotFactory (String name) {
this.name = name;
@ -87,7 +87,7 @@ public RobotFactory (String name) {
return roboterLager.size();
}
public static boolean istDieserRoboterDa(int id) {
public boolean istDieserRoboterDa(int id) {
return roboterLager.containsKey(id);
}
}

View File

@ -54,8 +54,8 @@ public class Factorysystem {
return robotFactory.datenDesRoboters(id);
}
public static boolean istDieserRoboterDa(int id) {
boolean istDa = RobotFactory.istDieserRoboterDa(id);
public boolean istDieserRoboterDa(int id) {
boolean istDa = robotFactory.istDieserRoboterDa(id);
return istDa;
}
}

View File

@ -137,7 +137,7 @@ public class Factory {
}
private boolean istDieserRoboterDa(int id) {
boolean istDa = Factorysystem.istDieserRoboterDa(id);
boolean istDa = factorysystem.istDieserRoboterDa(id);
return istDa;
}