uk.ac.ed.simulator_pdb.model
Class SimRuleTemplate
java.lang.Object
uk.ac.ed.simulator_pdb.model.TemplateFileObject
uk.ac.ed.simulator_pdb.model.SimRuleTemplate
- public class SimRuleTemplate
- extends TemplateFileObject
Field Summary |
static int |
ADD
|
static int |
BLOCK
|
static int |
DROP
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ADD
public static final int ADD
- See Also:
- Constant Field Values
BLOCK
public static final int BLOCK
- See Also:
- Constant Field Values
DROP
public static final int DROP
- See Also:
- Constant Field Values
SimRuleTemplate
public SimRuleTemplate(java.lang.String id)
getIfClauses
public java.lang.String[] getIfClauses()
addIfClause
public void addIfClause(java.lang.String clause)
removeIfClause
public void removeIfClause(java.lang.String clause)
setRule
public void setRule(int type,
java.lang.String[] if_clauses)
setType
public void setType(int type)
getType
public int getType()
addLikelyhood
public void addLikelyhood(double probability,
double time)
removeLikelyhood
public void removeLikelyhood(SimRuleTemplate.Likelyhood likely)
getLikelyhoods
public SimRuleTemplate.Likelyhood[] getLikelyhoods()
getProbabilityAtTime
public double getProbabilityAtTime(double time)