public class Robot implements Controllable { private int batteryLevel; private Behavior[] behaviors; // These are the Controllable-related methods public void turnLeft() { /* ...*/ } public void turnRight() { /* ...*/ } public void moveForward() { /* ...*/ } public void moveBackward() { /* ...*/ } // There will likely also be some other methods // which are robot-specific public Behavior computeDesiredBehavior() { /* ...*/ } public int readSensor(Sensor x) { /* ...*/ } //... }