jess
Class Test1

java.lang.Object
  |
  +--jess.Test1

public class Test1
extends java.lang.Object
implements Test, java.io.Serializable

Holds a single test in a Pattern on the LHS of a Rule.

(C) 1998 E.J. Friedman-Hill and the Sandia Corporation

Author:
Ernest J. Friedman-Hill
See Also:
Serialized Form

Constructor Summary
Test1(int test, int sub_idx, Value slot_value, int conjunction)
          Create a single test.
 
Method Summary
 boolean doTest(Context context)
           
 int getMultislotIndex()
           
 int getTest()
           
 Value getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Test1

public Test1(int test,
             int sub_idx,
             Value slot_value,
             int conjunction)
      throws JessException
Create a single test.
Parameters:
test - Test.EQ or Test.NEQ
sub_idx - The subfield of a multislot, or -1
slot_value - An object test against
conjunction - RU.AND or RU.OR1
Throws:
JessException - If something goes wrong
Method Detail

getTest

public int getTest()

getValue

public Value getValue()

getMultislotIndex

public int getMultislotIndex()

doTest

public boolean doTest(Context context)
               throws JessException
Specified by:
doTest in interface Test

toString

public java.lang.String toString()
Returns:
 
Overrides:
toString in class java.lang.Object

© 1997 E.J. Friedman-Hill and Sandia Corporation