This should work fine if the "resource sequence" multislot contains the actual fact object; if you showed us where you assert the "Hello" fact, then I could probably tell you what's gone wrong.
While we're here, I should ask why you're doing this "object/is-a" thing, rather than having a "hello" template and a "node spoof" template; you're doing a lot of extra work to make sure Jess can't work very efficiently. And I can tell you that the "and" is not needed here; all the patterns on the LHS of a rule are implicitly "and"-ed together. And finally, my goodness, you're going to drive yourself nuts embedding spaces into symbols like this -- don't do that! I think John wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi all, > > I am a rookie to jess. I was stuck-up with this problem for the past 24-hrs. > So kindly advice. > > I created two classes with multislots. The second class has a multislot of > type - instance of the previous class. I am not able to pattern match the > instance in the second class's object. Multislot pattern works well for > strings. How can i do it for multislot of instances? I have attached the > snippet for your kind perusal. Please Help. > > > (defrule testnest > (and > > ?o<- (object (is-a Hello) (Neighbor\ Address $? "10.0.0.1" $?) (Resource\ ID > ?rid)) > > ?r2 <- (object (is-a Node\ Spoof) (resource\ sequence $? ?o $?) (Behavior\ > ID ?bid)) > => > > (printout t "Attack" crlf)) > > The Two Classes: Hello and Node Spoof > > Multifield slots : Neighbor Address (type STRING) and resource sequence > (is-a Hello) > > Thanx in Advance --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
