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

59 lines
1023 B
Java

package tpe.exceptions.roboter;
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;
}
}