2022-12-26 17:06:42 +01:00
|
|
|
import de.hsmannheim.informatik.name.domain.RobotFactory;
|
|
|
|
import de.hsmannheim.informatik.name.domain.RobotType;
|
2023-01-06 19:05:34 +01:00
|
|
|
import de.hsmannheim.informatik.name.domain.exceptions.RobotException;
|
2022-12-26 17:06:42 +01:00
|
|
|
import de.hsmannheim.informatik.name.domain.exceptions.RobotIllegalStateException;
|
2023-01-06 19:05:34 +01:00
|
|
|
import de.hsmannheim.informatik.name.domain.requirements.Robot;
|
|
|
|
|
2022-12-26 17:06:42 +01:00
|
|
|
import java.util.Random;
|
|
|
|
|
2022-12-20 10:32:34 +01:00
|
|
|
public class Main {
|
2023-01-06 19:05:34 +01:00
|
|
|
// public static void main(String[] args) throws RobotException {
|
|
|
|
// RobotFactory rf = new RobotFactory();
|
|
|
|
// RobotType R2D2 = RobotType.R2D2;
|
|
|
|
// RobotType C3P0 = RobotType.C3P0;
|
|
|
|
//// for (int i = 0; i < 10000; i++) {
|
|
|
|
//// if(rf.getRobot(R2D2, "TestR2D2") == null){
|
|
|
|
//// System.out.println("Error");
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
// Robot r1 = rf.getRobot(R2D2, "R2Test");
|
|
|
|
// System.out.println(r1.getName());
|
|
|
|
// try{
|
|
|
|
// r1.think(new int[]{1,2,42,5});
|
|
|
|
// } catch (RobotException re) {
|
|
|
|
// System.err.println(re.getRobotName());
|
|
|
|
// }
|
|
|
|
// System.out.println("finished R2D2");
|
|
|
|
// for (int i = 0; i < 10000; i++) {
|
|
|
|
// if(rf.getRobot(C3P0, "TestC3P0") == null){
|
|
|
|
// System.out.println("Error");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// System.out.println("finished C3P0");
|
|
|
|
// System.out.println("finished");
|
|
|
|
// }
|
2022-12-28 03:21:50 +01:00
|
|
|
|
2022-12-20 10:32:34 +01:00
|
|
|
}
|