|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jess.Test1
Holds a single test in a Pattern on the LHS of a Rule.
(C) 2005 Sandia National Laboratories
Field Summary |
Fields inherited from interface jess.TestBase |
EQ, NEQ |
Constructor Summary | |
Test1(int test,
int sub_idx,
Value slot_value)
|
|
Test1(int test,
int sub_idx,
Value slot_value,
int conjunction)
Create a single test. |
|
Test1(int test,
Value slot_value)
|
|
Test1(int test,
Value slot_value,
int conjunction)
Create a single test. |
Method Summary | |
java.lang.Object |
accept(Visitor jv)
A proper accept() implementation should call one of the visitXXX() methods on the Visitor. |
java.lang.Object |
clone()
|
boolean |
doTest(Context context)
Perform the actual test. |
boolean |
equals(java.lang.Object o)
|
int |
getConjunction()
|
int |
getMultiSlotIndex()
|
int |
getTest()
|
Value |
getValue()
|
void |
setMultiSlotIndex(int subIndex)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Test1(int test, int sub_idx, Value slot_value, int conjunction)
test
- TestBase.EQ or TestBase.NEQsub_idx
- The subfield of a multislotslot_value
- An object test againstconjunction
- RU.AND or RU.ORpublic Test1(int test, Value slot_value, int conjunction)
test
- TestBase.EQ or TestBase.NEQslot_value
- An object test againstconjunction
- RU.AND or RU.ORpublic Test1(int test, int sub_idx, Value slot_value)
public Test1(int test, Value slot_value)
Method Detail |
public java.lang.Object clone()
public int getTest()
public Value getValue()
public int getMultiSlotIndex()
public void setMultiSlotIndex(int subIndex)
public int getConjunction()
public boolean doTest(Context context) throws JessException
TestBase
doTest
in interface TestBase
context
- The execution context in which to evaluate the test
JessException
- If anything goes wrongpublic boolean equals(java.lang.Object o)
public java.lang.Object accept(Visitor jv)
Visitable
accept
in interface Visitable
jv
- a visitor to invoke
public java.lang.String toString()
|
© 2006 Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |