Browse Source

Add TransitionList.getChoiceModuleOrAction().

accumulation-v4.7
Dave Parker 6 years ago
parent
commit
4c75a22a4e
  1. 9
      prism/src/simulator/TransitionList.java

9
prism/src/simulator/TransitionList.java

@ -205,6 +205,15 @@ public class TransitionList
return getChoiceOfTransition(index).getModuleOrActionIndex();
}
/**
* Get a string describing the action/module of a choice, specified by its index.
* (form is "module" or "[action]")
*/
public String getChoiceModuleOrAction(int index)
{
return getChoice(index).getModuleOrAction();
}
/**
* Get the index of the action/module of a choice, specified by its index.
* (-i for independent in ith module, i for synchronous on ith action)

Loading…
Cancel
Save