From 142f33ca52cf6eec03f4feebcbe90ce6fca1a810 Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Thu, 11 Mar 2010 22:17:48 +0000 Subject: [PATCH] Comments. git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@1800 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism/src/parser/ast/Module.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prism/src/parser/ast/Module.java b/prism/src/parser/ast/Module.java index c4b15384..ec98aaf3 100644 --- a/prism/src/parser/ast/Module.java +++ b/prism/src/parser/ast/Module.java @@ -174,6 +174,11 @@ public class Module extends ASTElement return baseModule; } + /** + * Get the set of synchronising actions of this module, i.e. its alphabet. + * Note that the definition of alphabet is syntactic: existence of an a-labelled command in this + * module ensures that a is in the alphabet, regardless of whether the guard is true. + */ public Vector getAllSynchs() { int i, n; @@ -187,6 +192,9 @@ public class Module extends ASTElement return allSynchs; } + /** + * Check if action label 's' is in the alphabet of this module. + */ public boolean usesSynch(String s) { return getAllSynchs().contains(s);