| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Test1
Holds a single test in a Pattern on the LHS of a Rule.
 (C) 2006 Sandia National Laboratories
| Field Summary | 
| Fields inherited from interface jess.TestBase | 
| EQ, NEQ | 
| Constructor Summary | |
| Test1(int test,
      java.lang.String slot,
      int sub_idx,
      Value slot_value) | |
| Test1(int test,
      java.lang.String slot,
      int sub_idx,
      Value slot_value,
      int conjunction)Create a single test. | |
| Test1(int test,
      java.lang.String slot,
      Value slot_value) | |
| Test1(int test,
      java.lang.String slot,
      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() | 
|  java.lang.String | getSlotName() | 
|  int | getTest() | 
|  Value | getValue() | 
|  void | setMultiSlotIndex(int subIndex) | 
|  void | setSlotName(java.lang.String slotName) | 
|  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,
             java.lang.String slot,
             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.OR
public Test1(int test,
             java.lang.String slot,
             Value slot_value,
             int conjunction)
test - TestBase.EQ or TestBase.NEQslot_value - An object test againstconjunction - RU.AND or RU.OR
public Test1(int test,
             java.lang.String slot,
             int sub_idx,
             Value slot_value)
public Test1(int test,
             java.lang.String slot,
             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 TestBasecontext - 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 Visitablejv - a visitor to invoke
public java.lang.String toString()
public void setSlotName(java.lang.String slotName)
public java.lang.String getSlotName()
| 
 | © 2007 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||