Browse Source

Added multiplePlayers() method to ModelType.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6891 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
7e61583c17
  1. 20
      prism/src/prism/ModelType.java

20
prism/src/prism/ModelType.java

@ -142,6 +142,26 @@ public enum ModelType {
return true;
}
/**
* Does this model have more than 1 player?
*/
public boolean multiplePlayers()
{
switch (this) {
case DTMC:
case CTMC:
case MDP:
case PTA:
case CTMDP:
return false;
case STPG:
case SMG:
return true;
}
// Should never happen
return true;
}
/**
* Does this model have probabilities or rates?
* @return "Probability" or "Rate"

Loading…
Cancel
Save