Browse Source

Added PRISM keywords to ModelType.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2093 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 15 years ago
parent
commit
349db63940
  1. 23
      prism/src/prism/ModelType.java

23
prism/src/prism/ModelType.java

@ -28,6 +28,29 @@ public enum ModelType {
return "";
}
/**
* Get the PRISM keyword for this model type.
*/
public String keyword()
{
switch (this) {
case CTMC:
return "ctmc";
case CTMDP:
return "ctmdp";
case DTMC:
return "dtmc";
case MDP:
return "mdp";
case PTA:
return "pta";
case STPG:
return "stpg";
}
// Should never happen
return "";
}
/**
* Do the transitions in a choice sum to 1 for this model type?
*/

Loading…
Cancel
Save