I think kyungkoo Jun wrote:
>
> So, I ask for two things,, one is any comments or related research work,
> the other thing is (little bit technical),,
> To generate a new description about the agent,
> new slots should sometimes be added,, but for easy matching, unordered
> fact template looks good,, so how can I add new slots to the existing
> unordered fact templates?
> or any other ways to achieve this?
You can use deftemplate inheritance.
(deftemplate foo (slot A))
(deftemplate bar extends foo (slot B))
(defrule test-rule
(foo (A 1)) ;; matches (foo (A 1)) and (bar (A 1) (B 2))
(bar (A 1) (B 2)) ;; matches only (bar (A 1) (B 2))
=> ...
The important thing to note is that when you define a new deftemplate
with new slots, all the old rules still work for facts of the new
subtype.
>
> Thanks again,
> KK.
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [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 (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------