X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FSequence.java;h=3ac811e392283b8ed34f15ab6f070a32e2b84f16;hp=2eddfc4f01b1dcd163a6c11ea07ffa9ccef06846;hb=1a249057cbfd2180910e46672eafee3af46ae470;hpb=df32ec862cecf0851a7f7342582b5786d04a4771 diff --git a/src/edu/berkeley/sbp/Sequence.java b/src/edu/berkeley/sbp/Sequence.java index 2eddfc4..3ac811e 100644 --- a/src/edu/berkeley/sbp/Sequence.java +++ b/src/edu/berkeley/sbp/Sequence.java @@ -46,13 +46,11 @@ public abstract class Sequence extends Element implements Iterable { //////////////////////////////////////////////////////////////////////////////// public Element noFollow = null; - public String name = null; - public void setName(String name) { this.name = name; } - public final Topology noFollow() { return noFollow==null ? null : noFollow.toAtom(); } + public final Topology noFollow() { return noFollow==null ? null : Atom.toAtom(noFollow); } Topology toAtom() { if (elements.length!=1) throw new RuntimeException("cannot invoke toAtom() on a Sequence with " + elements.length + " elements: " + this); - return elements[0].toAtom(); + return Atom.toAtom(elements[0]); } protected final Element[] elements;