re-arrange isLooping() method
authoradam <adam@megacz.com>
Mon, 11 Feb 2008 15:05:37 +0000 (16:05 +0100)
committeradam <adam@megacz.com>
Mon, 11 Feb 2008 15:05:37 +0000 (16:05 +0100)
src/edu/berkeley/fleet/api/Instruction.java

index 788a3a1..2082f03 100644 (file)
@@ -6,7 +6,7 @@ public abstract class Instruction {
     public Instruction(Pump pump) { this.pump = pump; }
     public String toString() { return pump+": "; }
 
-    public boolean isLooping() { return false; }
+    public boolean isLooping() { return true; }
     public boolean isRepeating() { return false; }
     public boolean isStanding() { return false; }
     public boolean isSK() { return false; }
@@ -15,6 +15,7 @@ public abstract class Instruction {
     public static class Clog extends Instruction {
         public Clog(Pump pump) { super(pump); }
         public String toString() { return super.toString() + "clog;"; }
+        public boolean isLooping() { return false; }
     }
 
     public static class UnClog extends Instruction {