zeus.rete
Class ReteFact

java.lang.Object
  extended byzeus.rete.ReteFact

public class ReteFact
extends java.lang.Object

ReteFact is used as an internal store for a fact for processing by the Rete engine.


Field Summary
 java.util.Hashtable data
           
(package private)  java.lang.String type
          type of fact - variable, fact?
 
Constructor Summary
ReteFact(ReteFact t)
           
ReteFact(java.lang.String type)
           
 
Method Summary
 ReteFact duplicate(DuplicationTable table)
           
 ReteFact duplicate(java.lang.String name, GenSym genSym)
           
 java.lang.String getType()
          provide get wrapper for type of fact
(package private)  ValueFunction getValue(java.lang.String attribute)
           
(package private)  java.lang.String[] listAttributes()
           
(package private)  ValueFunction[] listValues()
           
 java.lang.String pprint()
           
 java.lang.String pprint(int sp)
           
 boolean resolve(Bindings b)
          this seems to be called when rete is trying to process a rule
 void setType(java.lang.String type)
          provide set wrapper for type of fact
 void setValue(java.lang.String attribute, ValueFunction value)
           
 java.lang.String toString()
           
(package private)  ValueFunction[] variables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

java.lang.String type
type of fact - variable, fact? This is needed to allow extensions of the language


data

public java.util.Hashtable data
Constructor Detail

ReteFact

public ReteFact(java.lang.String type)

ReteFact

public ReteFact(ReteFact t)
Method Detail

setValue

public void setValue(java.lang.String attribute,
                     ValueFunction value)

getValue

ValueFunction getValue(java.lang.String attribute)

listValues

ValueFunction[] listValues()

listAttributes

java.lang.String[] listAttributes()

variables

ValueFunction[] variables()

duplicate

public ReteFact duplicate(java.lang.String name,
                          GenSym genSym)

duplicate

public ReteFact duplicate(DuplicationTable table)

getType

public java.lang.String getType()
provide get wrapper for type of fact


setType

public void setType(java.lang.String type)
provide set wrapper for type of fact


resolve

public boolean resolve(Bindings b)
this seems to be called when rete is trying to process a rule


toString

public java.lang.String toString()

pprint

public java.lang.String pprint()

pprint

public java.lang.String pprint(int sp)


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.