package josx.platform.rcx; /********* * mimic some of the LeJOS Motor class * ***/ public class Motor { public static Motor A = new Motor("A"); public static Motor B = new Motor("B"); public static Motor C = new Motor("C"); private String itsName; Motor(String name){ itsName = name; } public void setPower(int p){ System.out.println(" Setting motor " + itsName + "'s power to " + p); } public void stop(){ System.out.println(" Stopping motor " + itsName); } public void forward(){ System.out.println(" Turning motor " + itsName + " forward"); } public void backward(){ System.out.println(" Turning motor " + itsName + " backward"); } }