From 452ab03ce9584581e32f94ef30ca8fd08565f542 Mon Sep 17 00:00:00 2001 From: 2120940 <2120940@stud.hs-mannheim.de> Date: Tue, 27 Dec 2022 11:09:41 +0100 Subject: [PATCH] Robotertypen --- Roboter/tpe/exceptions/roboter/C3PO.java | 49 ++++++++++++++++++++++ Roboter/tpe/exceptions/roboter/Nexus6.java | 5 +++ Roboter/tpe/exceptions/roboter/R2D2.java | 49 ++++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 Roboter/tpe/exceptions/roboter/C3PO.java create mode 100644 Roboter/tpe/exceptions/roboter/Nexus6.java create mode 100644 Roboter/tpe/exceptions/roboter/R2D2.java diff --git a/Roboter/tpe/exceptions/roboter/C3PO.java b/Roboter/tpe/exceptions/roboter/C3PO.java new file mode 100644 index 0000000..f1e9788 --- /dev/null +++ b/Roboter/tpe/exceptions/roboter/C3PO.java @@ -0,0 +1,49 @@ +package tpe.exceptions.roboter; + +import tpe.exceptions.roboter.exceptions.RobotException; + +public class C3PO implements RobotControl, RobotInstructions{ + + @Override + public String speak(int[] zahlen) { + // TODO Auto-generated method stub + return null; + } + + @Override + public int[] think(int[] zahlen) { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getId() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public String getName() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void triggerPowerSwitch() { + // TODO Auto-generated method stub + + } + + @Override + public boolean isPowerOn() { + // TODO Auto-generated method stub + return false; + } + + @Override + public RobotException getLastException() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/Roboter/tpe/exceptions/roboter/Nexus6.java b/Roboter/tpe/exceptions/roboter/Nexus6.java new file mode 100644 index 0000000..6bf4d7c --- /dev/null +++ b/Roboter/tpe/exceptions/roboter/Nexus6.java @@ -0,0 +1,5 @@ +package tpe.exceptions.roboter; + +public class Nexus6 { + +} diff --git a/Roboter/tpe/exceptions/roboter/R2D2.java b/Roboter/tpe/exceptions/roboter/R2D2.java new file mode 100644 index 0000000..cb44df9 --- /dev/null +++ b/Roboter/tpe/exceptions/roboter/R2D2.java @@ -0,0 +1,49 @@ +package tpe.exceptions.roboter; + +import tpe.exceptions.roboter.exceptions.RobotException; + +public class R2D2 implements RobotControl, RobotInstructions { + + @Override + public int getId() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public String getName() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void triggerPowerSwitch() { + // TODO Auto-generated method stub + + } + + @Override + public boolean isPowerOn() { + // TODO Auto-generated method stub + return false; + } + + @Override + public RobotException getLastException() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String speak(int[] zahlen) { + // TODO Auto-generated method stub + return null; + } + + @Override + public int[] think(int[] zahlen) { + // TODO Auto-generated method stub + return null; + } + +}