JESS: Avoiding slot class in shadow facts

2007-10-25 Thread Wolfgang Laun
Deriving a deftemplate from a Java class with, e.g., (deftemplate Account (declare (from-class Account))) invariably adds a slot class, due to getClass() inherited from java.lang.Object. If you want to get rid of this, see the Jess userfunction I've added to the Jess Wiki:

Re: JESS: Avoiding slot class in shadow facts

2007-10-25 Thread Ernest Friedman-Hill
Interesting idea! I hadn't thought about ClassResearcher as a user hook; It was introduced as a way to let Jess use reflection most of the time, but use Eclipse's JDE libraries inside the JessDE so that the JessDE doesn't actually load your classes. Therefore this must be used cautiously

Re: JESS: Avoiding slot class in shadow facts

2007-10-25 Thread Wolfgang Laun
Can you rely on Jess ClassResearcher and whatever is used under Eclipse to always produce the same result? Granted (and I do assume) that you can: What is the benefit of using some JDE library function as compared to the ClassResearcher? It can't be a performance issue, because obtaining the