JESS: [EXTERNAL] Multislot and queries

"mike donald" <[email protected]> Mon, 8 Apr 2013 10:05:35 -0700
Newsgroups gmane.comp.java.jess
Message-ID <[email protected]>
hello,
I am a beginner in jess, I'm stuck on my application since
I have two deftemplates

(deftemplate Individu 
         (slot age)
	 (slot sexe) 
         (multislot visites (default (create$) ) ) 
)

(deftemplate Visite 
        (slot id_visite) 
        (slot nom)
        (slot pr)
)

I have the following query:

(defquery objetHistogramme
       ?i <- (Individu {sexe != F } (age ?ag) (sexe ?sex) (visites
$?visites))
)

In my java program, I call my query as follows:

QueryResult result = engine.runQueryStar("objetHistogramme", new
ValueVector());
   while (result.next()) {
                int x  = result.getInt("ag");    //age
                
                Object v = result.getObject("visites");     //
Erroorrrrrrrrrr is it

 }

I get an error when I want to retrieve the elements of multislot "visit" to
the display.
How to recover the multislot?


Mike




--
View this message in context: http://jess.2305737.n4.nabble.com/Multislot-and-queries-tp4654137.html
Sent from the Jess mailing list archive at Nabble.com.
--------------------------------------------------------------------
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].
--------------------------------------------------------------------