Between 4.1b3 and 4.1b4, I removed 'findDeffunction' and
'addDeffunction', and combined them with findUserfunction and
addUserfunction, and named the routines findFunction and
addFunction. At the last minute, I realized I could break fewer
people's code by retaining the names 'addUserfunction' and
'findUserfunction' (since the args are of type Userfunction, ths seems
justified; -all- functions in jess are really Userfunctions). I
apparently missed this one case when updating the documentation;
thanks. find/addUserfnction are the universal routines.


I think Moore, Kenneth A wrote:
> 
> I think that there is a documentation error in the README file.  It makes
> reference to a findFunction() method that is not part of the Rete interface.
> 
> From the manual:
> 6.5 Obtaining References to Userfunction Objects
> Occasionally it is useful to be able to obtain a reference to an installed
> Userfunction object. The method Userfunction Rete.findFunction(String name)
> lets you do this easily. It returns the Userfunction object registered under
> the given name, or null if there is none. This is most useful when you write
> Userfunctions which themselves maintain state of some kind, and you need
> access to that state. 
> 
> From somewhere else in the manual:
> Version 4.1b4: 
>       addUserfunction, addDeffunction, etc collapsed into one
> addUserunction routine in Rete class; same with 'findUserfunction'.
> RU.getAtom() and RU.putAtom are gone! Userfunction.name() now returns
> String. 
> 
> (NOTE: misspelling of addUserunction is in the original.)
> 
> Am I correct or is there another 'grand unifying' method that I can use to
> find a function (whether it is a Deffunction, UserFunction, etc...)?
> 
> TIA
> 
> Alan Moore mailto:[EMAIL PROTECTED]
> Intel Corporation http://www.smart-tv.com
> Disclaimer http://www.intel.com/tradmarx.htm
> 
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list. List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (510) 294-2154
Sandia National Labs                FAX:   (510) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to