|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Value
jess.BindingValue
A class to represent a location within a rule LHS, used internally. It is 'self-resolving' using Context. You shouldn't need to use this directly except to implement an Accelerator.
(C) 2005 Sandia National Laboratories
| Method Summary | |
boolean |
equals(Value o)
This overrides the overloaded equals() in Value. |
Fact |
factValue(Context c)
Returns the contents of this value, as a fact. |
double |
floatValue(Context c)
Returns the contents of this value, as a double. |
int |
getFactNumber()
Returns the fact index within a Rete Token. |
java.lang.String |
getName()
Returns the name of the variable. |
int |
getSlotIndex()
Returns the slot index within a fact. |
int |
getSubIndex()
Returns the index within a multifield. |
int |
getType()
Returns the type of the binding. |
int |
hashCode()
Return a hashcode for the object. |
int |
intValue(Context c)
Returns the contents of this value, as an int. |
java.lang.Object |
javaObjectValue(Context c)
Returns the contents of this value, as a Java object. |
ValueVector |
listValue(Context c)
Returns the contents of this value, as a list. |
double |
numericValue(Context c)
Returns the contents of this value, as a number. |
void |
resetFactNumber()
Sets the fact number associated with this binding to 0. |
Value |
resolveValue(Context c)
Returns the value of the bound variable by extracting it from a Token stored in the execution context. |
java.lang.String |
stringValue(Context c)
Returns the contents of this value, as a String. |
java.lang.String |
symbolValue(Context c)
Returns the contents of this value, as a symbol. |
java.lang.String |
toString()
Return a pretty-print version of this value, without adding parens to any lists. |
java.lang.String |
variableValue(Context c)
Returns the contents of this value, as a String (a variable name). |
| Methods inherited from class jess.Value |
atomValue, equals, equalsStar, externalAddressValue, funcallValue, functionValue, isLexeme, isNumeric, longValue, toStringWithParens, type |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void resetFactNumber()
public java.lang.String getName()
public int getFactNumber()
public int getSlotIndex()
public int getSubIndex()
public int getType()
public Value resolveValue(Context c)
throws JessException
resolveValue in class Valuec - an execution context containing a token
JessException - if anything goes wrongVariable,
Funcall
public final java.lang.Object javaObjectValue(Context c)
throws JessException
Value
javaObjectValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a Java object
public final Fact factValue(Context c)
throws JessException
Value
factValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a fact
public final ValueVector listValue(Context c)
throws JessException
Value
listValue in class Valuec - the execution context used to resolve the value
JessException - if something goes wrong during value resolution
public final int intValue(Context c)
throws JessException
Value
intValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of number
public final double floatValue(Context c)
throws JessException
Value
floatValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of number.
public final double numericValue(Context c)
throws JessException
Value
numericValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of number
public final java.lang.String symbolValue(Context c)
throws JessException
Value
symbolValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of String
public final java.lang.String variableValue(Context c)
throws JessException
Value
variableValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a variable.
public final java.lang.String stringValue(Context c)
throws JessException
Value
stringValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of String.public java.lang.String toString()
Value
toString in class Valuepublic int hashCode()
Value
hashCode in class Valuepublic boolean equals(Value o)
equals in class Valueo - a Value to compare to
|
© 2006 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||