Package Domäne
Class C3PO
java.lang.Object
Domäne.Roboter
Domäne.C3PO
- All Implemented Interfaces:
Robot,RobotControl,RobotInstructions
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Domäne.Roboter
getLastException, getName, isPowerOn, speak, triggerPowerSwitch
-
Constructor Details
-
C3PO
-
-
Method Details
-
getId
public int getId()Description copied from interface:RobotControlGibt die ID (Seriennummer) des Roboters zurück.- Specified by:
getIdin interfaceRobotControl- Specified by:
getIdin classRoboter- Returns:
- Eine eindeutige Identifikation in Form einer Zahl.
-
think
Description copied from interface:RobotInstructionsSortiert ein Array von Zahlen. Die Reihenfolge hängt von dem Typ des Roboters ab.- Specified by:
thinkin interfaceRobotInstructions- Specified by:
thinkin classRoboter- Parameters:
zahlen- Zahlen, die sortiert werden sollen.- Returns:
- Sortierte Zahlen
- Throws:
RobotException- wenn der Roboter in einem ungültigen Zustand ist, oder das Array nicht seinen Vorstellungen entspricht.
-
getRobotType
- Specified by:
getRobotTypein classRoboter
-