Hi,

I'm working with metrics, so I want to know the _number_ of facts that match
some given pattern.  Example:

(Attribute (name ?aName))

If there are 10 Attribute facts with the same value for the slot 'name',
e.g. "address", I want to assert a new fact

(nameCount (name "address") (count 10))

Is this possible?  :)  Sorry if I missed something obvious in the docs... I
guess I can do a very dumb implementation where I match the pattern and
increment a global variable, but I'm going to do lots of metrics so I hope
there's a cleaner and more efficient way to do this.

A+
Osvaldo

----------------------------------------------------------------
*** The Free, Open and Pure Java Shell *** Current: Alpha7
http://www.geocities.com/ResearchTriangle/Node/2005/java_shell.htm
http://student.vub.ac.be/~opinalid/java_shell.htm
----------------------------------------------------------------
Osvaldo Pinali Doederlein [EMAIL PROTECTED]
MSc student, Developer, Java & CORBA evangelist, Rainmaker, etc.



---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to