|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.statespace.external.prism.PRISMUtil
public class PRISMUtil
PRISM utils.
Nested Class Summary | |
---|---|
static class |
PRISMUtil.Range
Data class for ranges (and constants). |
Field Summary | |
---|---|
static String |
PRISM_ARGS_KEY
|
static String |
PRISM_EXPERIMENT_KEY
|
static String |
PRISM_PATH_KEY
|
static String |
STATE_VARIABLE
|
Constructor Summary | |
---|---|
PRISMUtil()
|
Method Summary | |
---|---|
static String |
expandLabels(String template,
StateSpaceIndex index,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static Map<String,String> |
getAllProbs(StateSpace stateSpace,
boolean force)
Get all probabilities for a state space. |
static Map<String,String> |
getAllRates(StateSpace stateSpace,
boolean force)
Get all rates for a state space. |
static String |
getConstants(StateSpace stateSpace)
|
static String |
getModelHeader(String modelType)
|
static String |
getPRISMArgs(StateSpace stateSpace)
Get the PRISM arguments property. |
static String |
getPRISMExperiment(StateSpace stateSpace)
Get the PRISM experiment parameter. |
static File |
getPRISMPath(StateSpace stateSpace)
Get the PRISM path property. |
static String |
getPRISMState(int index,
String extra,
boolean successor)
|
static String |
getPRISMStates(List<State> states)
|
static String |
getProb(StateSpace stateSpace,
Rule rule,
int index)
Get the probability of a rule, as specified in the state space properties. |
static Map<String,List<Rule>> |
getProbabilisticRules(StateSpace stateSpace)
Partition the rules of a state space into probabilistic rules, based on their names. |
static PRISMUtil.Range |
getProbAsRange(StateSpace stateSpace,
Rule rule,
int index)
Get the probability of a rule, as specified in the state space properties. |
static String |
getProbKey(Rule rule,
int index)
Get the properties key for rule probabilities. |
static String |
getProbVar(int index)
Get the variable name for a rule probability. |
static String |
getRate(StateSpace stateSpace,
Rule rule)
Get the rate of a rule, as specified in the state space properties. |
static PRISMUtil.Range |
getRateAsRange(StateSpace stateSpace,
Rule rule)
Get the rate of a rule, as specified in the state space properties. |
static String |
getRateKey(Rule rule)
Get the properties key for rule rates. |
static String |
getVariableDeclarations(int size,
boolean explicit)
|
protected static Process |
invokePRISM(StateSpace stateSpace,
File modelFile,
File formulaFile,
String[] args,
Map<String,String> constants,
boolean allowExperiments,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke PRISM on a state space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STATE_VARIABLE
public static final String PRISM_PATH_KEY
public static final String PRISM_ARGS_KEY
public static final String PRISM_EXPERIMENT_KEY
Constructor Detail |
---|
public PRISMUtil()
Method Detail |
---|
protected static Process invokePRISM(StateSpace stateSpace, File modelFile, File formulaFile, String[] args, Map<String,String> constants, boolean allowExperiments, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
stateSpace
- State space.args
- Arguments.monitor
- Monitor.
Exception
- On errors.public static String expandLabels(String template, StateSpaceIndex index, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
Exception
public static String getRateKey(Rule rule)
public static String getRate(StateSpace stateSpace, Rule rule)
public static PRISMUtil.Range getRateAsRange(StateSpace stateSpace, Rule rule) throws ParseException
ParseException
public static Map<String,String> getAllRates(StateSpace stateSpace, boolean force)
stateSpace
- The state space.force
- Whether the rate must be specified.
public static String getProbKey(Rule rule, int index)
public static String getProbVar(int index)
public static String getProb(StateSpace stateSpace, Rule rule, int index)
public static PRISMUtil.Range getProbAsRange(StateSpace stateSpace, Rule rule, int index) throws ParseException
ParseException
public static Map<String,String> getAllProbs(StateSpace stateSpace, boolean force)
stateSpace
- The state space.force
- Whether the probability must be specified.
public static Map<String,List<Rule>> getProbabilisticRules(StateSpace stateSpace)
stateSpace
- State space.
public static String getConstants(StateSpace stateSpace)
public static File getPRISMPath(StateSpace stateSpace)
stateSpace
- State space.
null
)public static String getPRISMArgs(StateSpace stateSpace)
stateSpace
- State space.
null
)public static String getPRISMExperiment(StateSpace stateSpace)
stateSpace
- State space.
null
)public static String getVariableDeclarations(int size, boolean explicit)
public static String getModelHeader(String modelType)
public static String getPRISMState(int index, String extra, boolean successor)
public static String getPRISMStates(List<State> states)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |