uk.ac.ed.simulator_pdb.model
Class SimRule
java.lang.Object
uk.ac.ed.simulator_pdb.model.SimRule
- public class SimRule
- extends java.lang.Object
Method Summary |
protected boolean |
compareDoubles(double arg1,
double arg2,
java.lang.String comparator)
|
protected boolean |
compareInts(int arg1,
int arg2,
java.lang.String comparator)
|
protected boolean |
comparePath(java.lang.String[] tokens,
SimBond thisBond,
SimBond thatBond)
|
protected boolean |
compareStrings(java.lang.String component,
java.lang.String[] tokens)
|
SimBond |
getBond()
|
SimRuleTemplate |
getTemplate()
|
void |
setBond(SimBond bond)
|
protected void |
setTemplate(SimRuleTemplate template)
|
java.lang.String |
test(SimBond thisBond,
SimBond thatBond,
double elapsed_time)
|
protected java.lang.String |
testCondition(java.lang.String condition,
SimBond thisBond,
SimBond thatBond)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimRule
public SimRule(SimRuleTemplate template)
getTemplate
public SimRuleTemplate getTemplate()
setTemplate
protected void setTemplate(SimRuleTemplate template)
setBond
public void setBond(SimBond bond)
getBond
public SimBond getBond()
test
public java.lang.String test(SimBond thisBond,
SimBond thatBond,
double elapsed_time)
testCondition
protected java.lang.String testCondition(java.lang.String condition,
SimBond thisBond,
SimBond thatBond)
comparePath
protected boolean comparePath(java.lang.String[] tokens,
SimBond thisBond,
SimBond thatBond)
compareInts
protected boolean compareInts(int arg1,
int arg2,
java.lang.String comparator)
compareStrings
protected boolean compareStrings(java.lang.String component,
java.lang.String[] tokens)
compareDoubles
protected boolean compareDoubles(double arg1,
double arg2,
java.lang.String comparator)