JESS: multi slot example

2004-07-10 Thread bhaskar yallala
Hello All Does any body have complete example of multislot example? I have JIA.I am just learning things.I didnt find any complete example anywhere. Ihave class DeandPool{ int[] types; Demand[] demands; } class Demand{ String type; } Ihave rule file like this: (watch all) (defclass demandPool

Re: JESS: multi slot example

2004-07-10 Thread ejfried
I think bhaskar yallala wrote: class DeandPool{ int[] types; Demand[] demands; } First of all, defclasses turn JavaBean properties -- not member variables -- into template slots. You'll need int[] getTypes() and Demand[] getDemands() (and perhaps the equivalent setter methods, too)