Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java and jess - slot values

ksill pop
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);
.. ("variable", f.getSlotValue("name"));

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