diff --git a/prism/src/jltl2ba/APSet.java b/prism/src/jltl2ba/APSet.java index a12791f3..d600c1c9 100644 --- a/prism/src/jltl2ba/APSet.java +++ b/prism/src/jltl2ba/APSet.java @@ -22,6 +22,8 @@ package jltl2ba; +import java.util.Collections; +import java.util.List; import java.util.Vector; import java.util.Iterator; import java.io.PrintStream; @@ -83,6 +85,15 @@ public class APSet implements Iterable return vector.contains(s); } + /** + * Returns an (unmodifiable) List view of this AP set. + * To modify this APSet, use the {@code addAP} method. + */ + public List asList() + { + return Collections.unmodifiableList(vector); + } + /** * Get the size of this set * @return the number of APs in this set.