RoboterFabrik/Roboter/tpe/exceptions/roboter/Nexus6.java

59 lines
1023 B
Java
Raw Normal View History

2022-12-27 11:09:41 +01:00
package tpe.exceptions.roboter;
2023-01-07 14:15:53 +01:00
import tpe.exceptions.RobotException;
public class Nexus6 implements RobotControl, RobotInstructions {
private static int id=19281982;
private static String name="Pris";
private static boolean powerSwitch=false;
private static Nexus6 instance = new Nexus6(id, name, powerSwitch);
private Nexus6(int id, String name, boolean powerSwitch) {
super();
}
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
}