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

Reply via email to