JESS: Using Jess in madkit

2006-03-31 Thread Skeptic 2000
Hi, With the lack of support from the Madkit group, I hope there is someone here who already tried to use a Jess Agent in Madkit. I have a very small technical problem, when I create my JessAgent with Java code, Madkit try to load a .clp file but with a wrong path : Error opening file

JESS: asserting a fact from another

2006-08-26 Thread Skeptic 2000
Hi, Let's say I have a deftemplate A with two slot : x, and y. I have another deftemplate B whom extends A, adding slot z. Then I have a rule that checks for any A-fact with special values for x and or y. If the rule fire, I want to create a B fact with the same values as in the A fact

Re: JESS: asserting a fact from another

2006-08-27 Thread Skeptic 2000
use the underappreciated duplicate function, but you can't. I think Skeptic 2000 wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, Let's say I have a deftemplate A with two slot : x, and y. I have another deftemplate B whom extends A, adding slot z. Then I have a rule

JESS: Detecting rules inconsistencies

2006-09-09 Thread Skeptic 2000
Hi, I'm currently using Jess as a kind of classifier, and I'm asking myself if some mechanisms exist to detect inconsequent or impossible rules. A simple example would be a rule testing a slot value being 10 and 10. Thanks. JF

JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000
Hi, In my rules, I need to tests some shadows fact which have as one of their properties a List. For example, let's say it's a List of String and I my test is to check that the string xyz is part of the list. What would be the most proper way to do this ? Thanks, JFL

Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000
Something like this? (defrule theRule (theFact (theProperty ?theList:(?theList contains xyz))) = ... On Oct 24, 2006, at 2:15 PM, Skeptic 2000 wrote: Hi, In my rules, I need to tests some shadows fact which have as one of their properties a List. For example, let's say it's a List

Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000
To: jess-users@sandia.gov Subject: Re: JESS: Test on a list from a JavaBean Date: Tue, 24 Oct 2006 22:09:34 -0400 On Oct 24, 2006, at 8:14 PM, Skeptic 2000 wrote: Thanks, I missed the contains, it's not in the Jess functions list, where it comes from ? It's a method

JESS: adding (not creating) rules from Java

2006-10-31 Thread Skeptic 2000
Hi, I want to have a Java program that can add rules to a Rete object at runtime. The rules would be entered as a String and once added, I would need a way to refer to them on the Java side. What would be the proper way to do it ? Thanks, JFL

JESS: calling a method on a matched shadow fact

2006-11-02 Thread Skeptic 2000
Hi, Let's say I have something like : (defclass xyz x.y.com.XYZ) (defrule x ?x-(xyz) = (...) In the RHS, I would like to call a method that is not a bean get/set on the matched 'xyz', what would be the proper way? (If possible, this method would take a string as argument) Thanks, JFL

JESS: First try with backward-chaining

2006-11-13 Thread Skeptic 2000
Hi, I tried for the first time to use backward-chaining and I can't figure out why this simple example don't work : (deftemplate x (declare (backchain-reactive TRUE)) (slot a) (slot b) ) (defrule printX (x (b 12)) = (printout t yeah!) ) (defrule createX (need-x (b ?y)) =

JESS: Removing a shadow fact

2006-11-27 Thread Skeptic 2000
Let's say I have somthing like this in Java: ShadowFactClass x1 = new ShadowFactClass(); ShadowFactClass x2 = new ShadowFactClass(); ShadowFactClass x3 = new ShadowFactClass(); rete.add(x1); rete.add(x2); rete.add(x3) . Somewhere else in the code I woule like to remove from the working

JESS: A problem with accumulate

2006-12-02 Thread Skeptic 2000
Hi,I have a serious problem with accumulate, I wanted to use it on some shadow facts, but I noticed that I can't have more than one contained CE.I would need to use a Time-varying method (OBJECT) and a test-CE in the matching part of the Accumulate... Something like (modifed from the

JESS: run vs rununtilhalt

2007-01-09 Thread Skeptic 2000
Hi, I have some java code that create ShadowFact and some rules that modify them at creation and when they are modified on the Java side. I'm trying to compare two way of doing this : First, doing a engine.runUntilHalt() and doing my java code that handle the shadowfact after. Second,

RE: JESS: calling a method on a matched shadow fact

2007-01-15 Thread Skeptic 2000
of them. Thanks From: [EMAIL PROTECTED] Subject: Re: JESS: calling a method on a matched shadow fact Date: Fri, 3 Nov 2006 00:46:42 -0500 To: jess-users@sandia.gov On Nov 2, 2006, at 1:29 PM, Skeptic 2000 wrote: Let's say I have something like : (defclass xyz x.y.com.XYZ) (defrule x

JESS: strange behavior

2007-01-19 Thread Skeptic 2000
Hi, I have a rule looking something like : (defrule wcooo ; exemple pour un while (MyShadowfact (OBJECT ?o)) (test ( (str-length (?o methodreturningastring param)) 3)) = (printout t rulefired (str-length (?o methodreturningastring param)) crlf)) And I strangly get the rulefired message with

JESS: using mathematicals functions on a shadow fact

2007-01-19 Thread Skeptic 2000
Hi, in a LHS i'm getting a value from a shadowfact method and I want to compare that value using to a fixed number, something like : (test ( (?x domethod param) 3) I get the error that 3 is not a java object, so I tried to replace 3 with : new Integer 3, but I get the same message. How can I

JESS: how to get the rule text from a defrule

2007-01-31 Thread Skeptic 2000
Hi, With Jesp I can easily get the defrule of each of my rules in my .clp files and display their names in a Swing application. What I would like to do next is to display the actual text of the rule in this same application, can it be easily done ?Thanks. From: [EMAIL PROTECTED]

RE: JESS: strange behavior

2007-02-14 Thread Skeptic 2000
Hi, I have a rule looking something like : (defrule wcooo ; exemple pour un while (MyShadowfact (OBJECT ?o)) (test ( (str-length (?o methodreturningastring param)) 3)) = (printout t rulefired (str-length (?o methodreturningastring param)) crlf)) And I strangly get the

JESS: mark vs modify

2007-02-26 Thread Skeptic 2000
Hi, Does a resetToMark after a mark is done undo the modify applied to the facts or only remove newly added facts ?If yes, how this apply to shadow facts ?Thanks _ Soyez parmi les premiers à essayer Windows Live Mail.

JESS: user functions and warning messages in plugin

2007-04-23 Thread Skeptic 2000
Hi, If I add my user-functions trough Java instead of directly in the .clp files, how I can get rid of the warning messages in the plug-in ?Thanks for help. JFL _ Soyez parmi les premiers à essayer Windows Live Mail.

JESS: How to correctly fire the same rule for the same facts

2007-05-15 Thread Skeptic 2000
Hi, this simple example show a problem I still have when designing Jess rules.What I should do to avoid this situation in which two instances of Y will be created. If what I try to do is not clear, please say so. Thanks. CLP file : (deftemplate X (slot a)) (deftemplate Y (slot s))

JESS: exchanging values between ess and Java via UserFunction

2007-05-16 Thread Skeptic 2000
Hi, I'm having some trouble with value exchange between Jess and Java via UserFunctions that are implemented in Java.First problem : A first UserFunction receives 1 argument from Jess and doesn't know the exact type, so I use the javaObjectValue method to extract in a Object variable. Problem

RE: JESS: exchanging values between ess and Java via UserFunction

2007-05-17 Thread Skeptic 2000
Hi, doesn't know the exact type... so I use the javaObjectValue method to Value has a type() method which tells you what kind of Value you've got. javaObjectValue() won't create an object -- it will only return an exusting object, if there is one (for resolved values, only for types

JESS: Java 1.5 enums

2007-07-27 Thread Skeptic 2000
Hi, As shown on JessWiki, I use the import functions to get my enum class in Jess :(import xx.yy.zz.MyEnum) then I try to match a slot of a shadow fact to one of the enum field : (defrule rule1(MyShadowFact (OBJECT ?o) (property1 MyEnum.xyz)) = ...) What I'm doing wrong ?Thanks. JFL

JESS: dealing with shadow facts having null properties

2007-08-02 Thread Skeptic 2000
Hi, I need to add in the working memory some shadow facts with properties whose values are null. Currently, my workaround is to use a NullObject to prevent Jess from crashing upon finding a null value.Is it the recommended way to do it ?JFL

RE: JESS: dealing with shadow facts having null properties

2007-08-02 Thread Skeptic 2000
to handle null properties for a long time; 6.1p8 can handle them, as can the current versions. What problem are you having, exactly? On Aug 2, 2007, at 2:19 PM, Skeptic 2000 wrote:Hi, I need to add in the working memory some shadow facts with properties whose values are null

RE: JESS: dealing with shadow facts having null properties

2007-08-03 Thread Skeptic 2000
reproduce anything like this; can you show me a stack trace (run jess.Main with -stacktrace to see a full error trace). On Aug 2, 2007, at 6:12 PM, Skeptic 2000 wrote:When I add a shadow fact with a property having a null value, I get an exception (in updateMultiSlot IRRC). JFLFrom

RE: JESS: dealing with shadow facts having null properties

2007-08-03 Thread Skeptic 2000
a NullPointerException. It's not Jess's fault if your getter methods throw NPEs when called! On Aug 3, 2007, at 2:51 PM, Skeptic 2000 wrote:Hi and thanks a lot for helping, the details are here : That's the ShadowFact : public class Test { private Integer a = null; private Integer b

JESS: adding shadow facts in Jess

2007-08-09 Thread Skeptic 2000
Hi, I'm trying to figure why the ruel2 doesn't fire : (defclass SFA ca.usherbrooke.astus.prototype.pedagogue.SFA) (deftemplate x (slot y) ) (defrule rule1 (x) = (printout t rule1 fired) (add new SFA) ) (defrule rule2 (SFA) = (printout t rule2 fired) ) (reset) (assert (x (y 1)))

RE: JESS: adding shadow facts in Jess

2007-08-09 Thread Skeptic 2000
Oops, I simply forgot the ( ) around the new and the Jess editor didn't see an error there. JFL From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: JESS: adding shadow facts in JessDate: Thu, 9 Aug 2007 15:30:58 -0400 Hi, I'm trying to figure why the ruel2 doesn't fire : (defclass SFA

JESS: shadow fact + multislot

2007-11-20 Thread Skeptic 2000
Hi, Would it be possible to have a shadow fact with a multislot ? (I know a shadow fact can have an array-based property, but that wouldn't work with multislot pattern matching, what I'm looking for)Thanks _ Envoie un sourire, fais

JESS: batch require

2008-02-13 Thread Skeptic 2000
Hi,I'm having a problem when I batch two different .clp files that require the same third .clp file. File1.clp Some defclasses File2.clp require file1Some rules using file1 defclasses File3.clp require file 1 Some other rules using file1 defclasses rete.batch(file2); rete.batch(file3);

JESS: observing partial activation of rules

2008-07-12 Thread Skeptic 2000
Hi, I'm curious how this : http://ctat.pact.cs.cmu.edu/docs/ctat_2_1/cog_tutor_jess_tools.html#why_not can be achieved.It is something that require a modification of Jess ? I don't see how to find that information using the public API. Thanks for help.

JESS: introspection of shadow facts from 7.0 to 7.1

2008-07-14 Thread Skeptic 2000
Hi, I updated from 7.0p1 to 7.1 recently and JessDE doesn't recognize the stuff specified in my BeanInfo classes anymore (it still works at runtime). Is there some official changes in the introspection mechanisms? Thanks for help.

RE: JESS: introspection of shadow facts from 7.0 to 7.1

2008-07-15 Thread Skeptic 2000
PROTECTED] To: jess-users@sandia.gov Subject: Re: JESS: introspection of shadow facts from 7.0 to 7.1 Date: Mon, 14 Jul 2008 18:04:27 -0400 On Jul 14, 2008, at 10:30 AM, Skeptic 2000 wrote: Hi,I updated from 7.0p1 to 7.1 recently and JessDE doesn't recognize the stuff specified in my

RE: JESS: introspection of shadow facts from 7.0 to 7.1

2008-07-15 Thread Skeptic 2000
, 15 Jul 2008 11:24:45 -0400 Hmmm. You can certainly still redefine functions. Can you show me an example of what's going wrong? On Jul 15, 2008, at 10:32 AM, Skeptic 2000 wrote:Hi, Another problem encountered during the 7.0-7.1 migration. I used to add empty user function defs

JESS: using annotations

2008-07-15 Thread Skeptic 2000
Hi, Have you considered using annotations instead of naming scheme to create deftemplates associated to shadow facts ? Do you think it would be difficult thing to hack ?Thanks. _

RE: JESS: using annotations

2008-07-16 Thread Skeptic 2000
using whatever scheme you like. If you do this, and describe it in our Wiki, then other people could use it too! On Jul 15, 2008, at 11:54 PM, Skeptic 2000 wrote:Hi, Have you considered using annotations instead of naming scheme to create deftemplates associated to shadow facts

JESS: jessDE performance

2008-09-30 Thread Skeptic 2000
Hi, It seems to me that jessDE performances are not as good as they were (I'm using the latest version). Is it something under work ?Can I do something to reduce the lag when I'm writing rules ? (I suspect it comes from the high number of templates I have). Thanks.

JESS: Jess and JessDE vs Shadow facts

2008-10-01 Thread Skeptic 2000
Hi, I'm currently looking to add Scala objects in Jess.It's working with Jess when I do a run. (Scala add the getter methods in the .class file)However, it's not working in JessDE even if a BeanInfo class file is also generated (in the same directory) by Scala (trough annotations). I can join

JESS: shadow facts and backward chaining

2008-10-20 Thread Skeptic 2000
Hi, Does backward chaining works with shadow facts ? (generally) Is there some known limitations ? If anyone has some examples to share, I would appreciate it. Thanks. _