i am working with javaBean objects as facts in the rete engine of jess
(7.0b6). the beans i use have properties of type FuzzyValue (FuzzyJ1.9).
property changes of the fuzzy properties are not propagated to the rete
engine. i do use the FuzzyRete and i use the proposed
My goals are less ambitious. The situation is not complicated. In
medical clinical trials, the protocols are often fairly complicated,
and the usual approach is to indicate that group one will receive
drug A and group two will receive drug B, and all other management
will be at the
I continue to be confused about how to add a Bean as a shadow fact. In the code below, there are four commented out lines that define a new fact and set the slot values and the subsequent code runs (not shown). But the patient object already exists and can be accessed by getPatient(), so I
I think J. Michael Dean wrote:
Sorry. I was reading the manual Section 8.2 (Definstance facts),
where you postulate a Java Bean called ExampleBean. That's sitting
in Java. The next paragraph shows, from an interactive session with
Jess, the command (defclass simple ExampleBean). How
I think J. Michael Dean wrote:
I think I have resolved my internal confusion. I am thinking about
Jess rules as being type-safe, which is nonsense. So if I have a
rule file that refers to some kind of fact that does not exist, there
will be no error - the rules that depend on that fact
I think mdean77 wrote:
shown). But the patient object already exists and can be accessed
by getPatient(), so I thought it would be more concise to use r.add
(getPatient());
Not only more concise, but semantically different. Adding a Java
object to working memory is different from
I'm not sure what your problem is exactly but I could suggest that you read
the FuzzyJ User guide ... chapter on FuzzyJess and especially the section
entitled ... Java Beans and Jess Shadow Facts with Fuzzy Slots - special
consideration.
If this doesn't help let me know. I'm on vacation and only