|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jess.ValueVector | +--jess.Fact
A Fact is a ValueVector where the entries are the slot data in declaration order. The "head" of the fact, id, etc., are -not- stored in the vector.
(C) 1998 E.J. Friedman-Hill and the Sandia Corporation
Constructor Summary | |
Fact(Fact f)
Starts from another Fact. |
|
Fact(java.lang.String name,
Rete engine)
Basic constructor. |
Method Summary | |
java.lang.Object |
clone()
Make a copy of this fact |
boolean |
equals(java.lang.Object o)
The version in ValueVector isn't good enough, since it doesn't compare heads! |
Deftemplate |
getDeftemplate()
Return the deftemplate for this fact. |
int |
getFactId()
Returns this Fact's fact-id. |
java.lang.String |
getName()
|
Value |
getSlotValue(java.lang.String slotname)
Return the value from the named slot. |
boolean |
isShadow()
Indicates whether this Fact is a shadow fact for a matched Bean. |
void |
setSlotValue(java.lang.String slotname,
Value value)
Set the value in the named slot. |
java.lang.String |
toString()
Pretty-print this fact into a String. |
java.lang.String |
toStringWithParens()
Return a String version of this ValueVector, with parentheses around all ValueVectors. |
Methods inherited from class jess.ValueVector |
add,
cloneInto,
get,
set,
setLength,
size |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Fact(java.lang.String name, Rete engine) throws JessException
name
- The head or name of the factengine
- The engine in which to find the deftemplatepublic Fact(Fact f) throws JessException
f
- The ValueVector form of a factengine
- The engine in which to find the deftemplateMethod Detail |
public java.lang.String getName()
public int getFactId()
public boolean isShadow()
public final Deftemplate getDeftemplate()
public java.lang.Object clone()
public final Value getSlotValue(java.lang.String slotname) throws JessException
slotname
- The name of a slot in this factpublic final void setSlotValue(java.lang.String slotname, Value value) throws JessException
slotname
- The name of the slotvalue
- The new value for the slotpublic java.lang.String toString()
public java.lang.String toStringWithParens()
public boolean equals(java.lang.Object o)
o
- Another object
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |