X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FInput.java;h=9948ae40a2b69bf8cf42cd7198a214a35ef019b6;hp=846fd9a7b60de45439cc7650913e8121e6f1c75a;hb=82f9b8d4a2fadb14cb004e5cc9f14944458f2e6c;hpb=e12a3098c6ed3cbfa6493870af3688f833c4f8ac diff --git a/src/edu/berkeley/sbp/Input.java b/src/edu/berkeley/sbp/Input.java index 846fd9a..9948ae4 100644 --- a/src/edu/berkeley/sbp/Input.java +++ b/src/edu/berkeley/sbp/Input.java @@ -18,20 +18,10 @@ public interface Input { /** a location between tokens in the input stream */ public static interface Location extends Comparable { public String toString(); + public Region createRegion(Location loc); } - public static class Region /* implements Topology> */ { - public final Loc start; - public final Loc end; - public Region(Loc a, Loc b) { - switch(a.compareTo(b)) { - case -1: - case 0: start=a; end=b; return; - case 1: start=b; end=a; return; - default: throw new Error("impossible"); - } - } - } + public static interface Region /* implements Topology> */ { } }