2022-12-27 11:09:41 +01:00
|
|
|
package tpe.exceptions.roboter;
|
|
|
|
|
2023-01-07 14:15:53 +01:00
|
|
|
import tpe.exceptions.RobotException;
|
2023-01-07 11:19:18 +01:00
|
|
|
|
|
|
|
public class Nexus6 implements RobotControl, RobotInstructions {
|
2023-01-07 18:48:00 +01:00
|
|
|
private RobotType robotType;
|
2023-01-07 11:19:18 +01:00
|
|
|
private static int id=19281982;
|
|
|
|
private static String name="Pris";
|
|
|
|
private static boolean powerSwitch=false;
|
|
|
|
private static Nexus6 instance = new Nexus6(id, name, powerSwitch);
|
2023-01-07 18:48:00 +01:00
|
|
|
|
2023-01-07 11:19:18 +01:00
|
|
|
|
|
|
|
private Nexus6(int id, String name, boolean powerSwitch) {
|
|
|
|
super();
|
2023-01-07 18:48:00 +01:00
|
|
|
robotType= RobotType.NEXUS6;
|
2023-01-07 11:19:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public static Nexus6 getInstance() {
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getId() {
|
|
|
|
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void triggerPowerSwitch() {
|
|
|
|
powerSwitch=false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isPowerOn() {
|
|
|
|
return powerSwitch;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public RobotException getLastException() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
|
|
|
}
|
2022-12-27 11:09:41 +01:00
|
|
|
|
|
|
|
}
|