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
- JESS: Help on Jess Rules ..plz John
- Re: JESS: Help on Jess Rules ..plz friedman_hill ernest j
- Re: JESS: Help on Jess Rules ..plz Dona Mommsen
- Re: JESS: Help on Jess Rules ..plz Jason Morris
- Re: JESS: Help on Jess Rules ..plz John
- Re: JESS: Help on Jess Rules ..plz Jason Morris
- Re: JESS: Help on Jess Rules ... Dona Mommsen
- Re: JESS: Help on Jess Ru... John
- Re: JESS: Help on Jes... friedman_hill ernest j
- Protege and Jess as t... Dona Mommsen
- JESS: Re: Clips vs. J... Doug Metzler
