Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java and jess - slot values

 
ksill pop
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem..

is there someone who would be nice to help me, ill be really thankful..

jess program is like this:

(deftemplate person
(slot name(type SYMBOL))
(slot age(type INTEGER)))
(deftemplate persons
(person (name XX)(age 22))
(person (name YY)(age 44)))

a want to store slot values into some java object..
so, could that be possible on this way

..
Rete engine = new Rete();
Fact f = new Fact("person", engine);
..
engine.store ("variable", f.getSlotValue("name"));
..
???

I will really appreciate any help.... does anybody has some solution!?
thanks...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic