Hello,

I'm something like new in Jess programming and I have a question :

I have a Java Class wich contains 3 attributes, a String, an Object from 
another Class and a Vector.
How can I use it in Jess to create instance of this knowledge (for the 
initial knwoledge base)

public class ObjectRE {

        private String name;
        private ActionA action ;
        private Vector knowledge;

        ...
}

and in Jess I try to use it like this :

; Defclass
(defclass objectRE ObjectRE)
(defclass actionA ActionA)
(defclass knowledge Knowledge) ; for items to put in the Vector

; definitions d'instances
(bind ?obj (new ObjectRE "lettre" (new ActionA "ind�finie"))
(definstance objectRE ?obj dynamic)
(call ?obj addConnaissance (new ConnaissanceRE "graphie" "savoir faire" 
"vide"))


It seems to work in Jess but I'm not sure that is the most efficient way, 
and I don't really understand how I will access to elements of my Vector in 
the rules ?

If anyone has some examples I will be very greatfull.

        Catherine CLEDER
        University of Clermont-Ferrand (France)




--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to