Browse Source

Comments.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@1800 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 16 years ago
parent
commit
142f33ca52
  1. 8
      prism/src/parser/ast/Module.java

8
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<String> 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);

Loading…
Cancel
Save