Re: JESS: Question about defquery

2004-04-15 Thread ejfried
I think Lakshmi Vempati wrote: I am using a simple defquery to find a fact and then modify it. For reasons that are too difficult to go into (although we've actually discussed it before on this list) when you get a jess.Fact out of a jess.Token (as you do when you're working with a query

Re: JESS: query about numeric variables

2004-04-21 Thread ejfried
I think Moore, David [IES] wrote: (defrule age (benefit-seeking) = (printout t Please enter your age (in years) crlf) (assert (age(read The disappointment is that the value

Re: JESS: Getting detailed match information

2004-04-21 Thread ejfried
I think Douglas Pearson wrote: For example if I had: (defrule simple-rule (child (id ?x) (name ?name)) (parent (id ?y) (child ?x)) = (printout t Child ?x name ?name crlf) ) and I know fact-3 and fact-7 were matched...how can I tell (programmatically) which fact

Re: JESS: jess.Console question

2004-04-22 Thread ejfried
I think Maxim Tretyak wrote: Hi Can I get advantages of jess.Console by such a way: Jess (new jess.Console Hi (engine)) External-Address:jess.Console Console is appearing, but connand line input is transmitted directly to output text area, without interaction with Rete. Very clever!

Re: JESS: Passing an instance of Rete to java

2004-04-23 Thread ejfried
I think Greg Biegel wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, Is there a way to pass a reference to the current instance of the rule engine from Jess, to a Java object. I tried using the 'this' keyword, but doesn't seem to work. So basically, I would like to

Re: JESS: problems writing defrule...

2004-05-11 Thread ejfried
I think Katie Truong wrote: Dear Jess Support Team, I started writing a program that develops a small knowledge system for health assessment and longevity planning. The health assessment system will evaluate a persons current health status based on input values for predefined risk

JESS: Announcing Jess 6.1p7

2004-05-07 Thread ejfried
Hi Folks, I am pleased to announce that version 6.1p7 of Jess, the rule engine for the Java platform, is now available for download at the usual place: http://herzberg.ca.sandia.gov/download.shtml This is a bug fix release with some improved performance characteristics. From the change log:

Re: JESS: Pausing the execution cycle without returning

2004-05-07 Thread ejfried
I think Steffen Luypaert wrote: The basic trick is this: From one rule, set up the GUI to ask a question, then call ((engine) waitForActivations), which pauses the (run) thread until a new rule is activated. The problem is that waitForActivations will still fire the

Re: JESS: Clarification of Jess Performance in a multi-threaded environment...

2004-05-05 Thread ejfried
I think Jin Lian wrote: It seems that the default Java synchronization mechanism has been used to coordinate which thread will be able to fire rules. If 10 threads come in simulstaneously and all want to fire a different rule, then 9 of them will have to wait while the execution engine is

Re: JESS: Combining the logical CE and backward chaining

2004-05-05 Thread ejfried
I think Steffen Luypaert wrote: Hi all, No backward chaining will occur for patterns inside a conditional element. I was wondering that this will change in a future version of Jess, especially for the logical conditional element. This is basically an oversight in the rule compiler;

Re: JESS: JESS defmodules and focus

2004-05-03 Thread ejfried
I think Michael Knapik wrote: Question: why are they fired/reported in reverse order of the focus statements? As the manual explains at the end of section 2.10.3, there's a focus stack containing the list of modules from which rules will be fired; rules will be fired only from the module

Re: JESS: Rules not firing

2004-05-03 Thread ejfried
I think Rajani Sadasivam wrote: == f-1 (MAIN::book (name Java for beginners) (keyword Java) (publisher oreilly) (price 15)) -vs- == f-5 (MAIN::book (name samplebook) (keyword Java) (publisher oreilly) (price 14)) Jess has both a String type and a symbol or atom type (this is covered over

Re: JESS: Java and Jess

2004-05-13 Thread ejfried
I think [EMAIL PROTECTED] wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi there, i made the board game Stratego with java. and i want to use agents for every piece. my quastion is: i have now the complete game done with java. And someone else made all the Agents

Re: JESS: asserting javabeans

2004-05-14 Thread ejfried
I think =?iso-8859-1?Q?Diego_Alonso_Gonz=E1lez?= wrote: I'm really confused, by shadow concept. There are two kinds of definstances: static and dynamic. Dynamic ones use PropertyChangeEvents, static ones don't. If you use (modify) in Jess, both kinds of JavaBeans will be immediately updated.

Re: JESS: Problem updating shadow fact data

2004-04-27 Thread ejfried
I think Michael Knapik wrote: ;;(call event setConditionCodeId ) Variables always have a ? in their name: (call ?event setConditionCodeId ) (modify 2 (conditionCodeID )) Slot names are case-sensitive: (modify 2 (conditionCodeId ))

Re: JESS: Problem updating shadow fact data

2004-04-27 Thread ejfried
I think Michael Knapik wrote: How do I do that - how do I get the shadow fact data to change (so that Java code that is executing this Jess code knows about it). (modify ?e (conditionCodeId )) would do it. - Ernest

Re: JESS: Problem updating shadow fact data

2004-04-27 Thread ejfried
I think Michael Knapik wrote: (defrule report-subject-and-event-status ?s - (subject (subjectId ?sId) (caseStatusId ?csId)) ?e - (event (eventId ?eId) (conditionCodeId ?ccId)(eventDescriptor ?evtDescriptor)) = (modify ?e (conditionCodeId )) (printout t * Event ?eId has a condition

Re: JESS: JessAgentTab

2004-04-28 Thread ejfried
I think Chintan Shah wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Can you please provide the fully qualified server name in the url. http://www-i4 does not work for anybody outside your DNS. It the same as his email;

Re: JESS: Embedded executeCommand() performance problem

2004-04-28 Thread ejfried
I think Douglas Pearson wrote: The problem is that loading a list of about 2,000 facts this way is taking 30 seconds and I'm just wondering why? For debugging we dump the same commands to a file which we can then load into a standalone instance of Jess through the (batch file) command and

Re: JESS: Comparing string

2005-09-09 Thread ejfried
Jess doesn't have an explicit else-if feature; if you put an if into the else of another if, then that second if is a separate function call, so it needs its own parentheses. If I may, I will point out a few other things here: You don't need to spell out the names of any classes in java.lang, as

Re: JESS: Pattern Binding for CE

2005-09-09 Thread ejfried
I think Krasnigor, Scott L (N-AST) wrote: I have an ID slot defined for the Bean object used to define the facts but can't seem to figure out how to get the fact that triggered the rule so I can modify it for this particular case (all my other rules allow pattern binding). I formatted your

Re: JESS: How to write constraint for shadow fact list/set properties ?

2005-09-14 Thread ejfried
I think robert fields wrote: Classes are loaded from java by Jesp j = new Jesp(new StringReader((defclass {Role, ...} package.{Role,})), aEngine); j.parse(false); The Rete class has a defclass method which would be much more convenient to use! Barring that, it also has an

Re: JESS: Facts and modules

2005-09-30 Thread ejfried
I think Henrique Lopes Cardoso wrote: So, if I understood correctly, facts can only be asserted in the module where their templates are defined Yes. Therefore, if I have a template defined in MAIN, I cannot create a fact based on that template in another module. Right. Another

Re: JESS: Matching a static variable

2005-10-03 Thread ejfried
Hi Erich, First, let me mention that I'm happy to see someone using the brand-new static imports feature -- the thing that lets you use (CarClass.MINI) as a constant. Second, your code looks fine except that the defclass defines a short template tag RentalCarReservation, but the rules are using

Re: JESS: Matching a static variable

2005-10-03 Thread ejfried
I think Alan Moore wrote: Third, let me mention, as I often do on this list (I really need to make this point more strongly in the manual) that direct matching should always be preferred to function calls, and anything else should be preferred to the test CE; this is not only a style

Re: JESS: Rules Management

2005-10-04 Thread ejfried
I think Brian Corbin wrote: How do you manage your rules? Do you bundle the rule sets with the application? Are they stored in a database that the application references? Maybe even using an interface to CVS or Subversion? Since nobody has answered yet, I'll tell you some of the ways I've

Re: JESS: Jess DE JSR-94

2005-10-05 Thread ejfried
I think erich.oliphant wrote: Hi, We are using the JSR-94 interface but would like to use JessDE for debugging,etc. Will jessDE support the XML formatted files required by the JSR-94 interface ? There are two JSR94 drivers. There's the reference implementation that comes with the JSR94

Re: JESS: Problem with definstance

2005-10-05 Thread ejfried
I think David Firmin wrote: I'm trying to create shadow facts that subclass a deftemplate that's already been added to the Rete. When I try and add the java bean using definstance I get a ClassCastException as follows: java.lang.ClassCastException at

Re: JESS: Problem with definstance

2005-10-05 Thread ejfried
I think David Firmin wrote: Hi, Thanks for this, although I'm still missing something I think. The Order class I'm trying to define as an instance does have accessors and modifiers for all its properties, including the two defined on the superclass deftemplate that's already been created

Re: JESS: Central data storage for multiople Jess instances

2005-10-05 Thread ejfried
I think Bogdan Werth wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello everybody, I working on the model from the field of social simulation. I am using RePast and Jess to make my agents think in a declarative way. At the moment I have a separate Jess instance for every agent

Re: [JESS:Problem with Running the Jess T][ab without the Prot_g_ User Interface]

2005-10-08 Thread ejfried
I think Eunice Palmeira wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I don't get to run my application in Eclipse, because the line under report the error: java.lang.NoClassDefFoundError: edu/stanford/smi/protege/model/Instance, but i get run direct in protege.

Re: JESS: New to JESS

2005-10-10 Thread ejfried
I think nikita berdikov wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I'm new to Eclipse and JESS, so can anyone tell me how to start working with JESS in Eclipse 3.1. What variables should i set? I did everything that is written in Using the JessDE, but something is

Re: JESS: So lame, and so sorry - disregard last post

2005-10-10 Thread ejfried
I think Matthew Hutchinson wrote: So it's not a complete waste, is the following line still the reccomended way of loading rules from Java? engine.executeCommand((batch jess_test.clp)); In Jess 7, there's a Rete.batch() method you can use instead; otherwise, what you've shown works fine.

Re: JESS: The JessTab PAL-integration functions are not available

2005-10-10 Thread ejfried
I think Eunice Palmeira wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I have a problem when i try run Jess with Protigi: JessTab: Note that the PAL engine is not currently installed in Protege. (The JessTab PAL-integration functions are not available.) Well,

Re: JESS: For-loop bug

2005-10-10 Thread ejfried
You're right -- that's not the correct behavior. Thanks for the report. I think Yura wrote: [Charset koi8-r unsupported, filtering to ASCII...] Hi I think there is a bug in the 'for'-loop implementation. The following code returns '1' (incorrect): (bind ?x 1) (for (bind ?i 1) ( ?i 2)

Re: JESS: New to JESS

2005-10-11 Thread ejfried
In the first screenshot, I see an editor window named awtdraw.clp, but I don't see a file by this name in the navigator view; my guess, then, is that you've used the Eclipse File | Open... menu to try to open a file not in your workspace. This doesn't work. You can only edit .clp files that are

Re: JESS: JessDE buggy

2005-10-14 Thread ejfried
I think Jim Goodwin wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Are you interested in bug reports? Where do I send them? Very interested. You can send them to this list or directly to me at [EMAIL PROTECTED] Is further work on the JessDE active right now? Absolutely.

Re: JESS: Memory requirements of jess.Value

2005-10-19 Thread ejfried
I think Jon Weygandt wrote: Any thoughts about a Value factory returning specialized objects (especially for common Values), by a rough back of the envelope calculation this could save 50% of the space in the Value object instance, resulting in an overall savings of 20% application memory

Re: JESS: Using not and and

2005-10-19 Thread ejfried
I think Dusan Sormaz wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I was able to run it in 7.0a6. I am curious, what is the interpretation of and in this example? Is it AND of 4 items? or only 2? 2. It means that there's not a (bar ?x) fact where ?x is the fact (a b c).

Re: JESS: Using not and and

2005-10-19 Thread ejfried
Hmmm, OK, I see. This is a known issue which has (as another poster pointed out) been dealt with in Jess 7. In Jess 6, the workaround is to reverse the order of these patterns: (not (and ?b - (a b c) (foo (bar ?b)) ) ) I think Henrique Lopes Cardoso wrote:

Re: JESS: jess

2005-10-20 Thread ejfried
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] hi is it possible to read out informations from a *.dll and to handle the return value (string)? Sure, in the same way you'd do it from any Java program: you wrap the DLL

Re: JESS: TextArea Buffer Size

2005-10-21 Thread ejfried
I think Semmel, Glenn S wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello. Under Jess 7.0a4, the TextAreaWriter class has the following attribute: private static final int MAXSIZE = 3 In a future release, can this attribute be changed to be either a user

Re: JESS: Converting from/to strings

2005-10-24 Thread ejfried
I think Henrique Lopes Cardoso wrote: (defrule r1 ?x - (foo) = (bind ?string (implode$ ?x)) ;; IS THERE A WAY OF DOING THIS? ?x is a jess.Fact object. You can call any of the methods of jess.Fact on it -- including toString() and toStringWithParens(), one of which

Re: JESS: Jess in a multithreaded environment

2005-10-24 Thread ejfried
I think Florian Fischer wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I am using Jess in a multithreaded environment... I need to understand how Jess works in a multithreaded environment. Is the following description correct? - One lock is on all the data (facts,

Re: JESS: Jess in a multithreaded environment (Copies of the fact data)

2005-10-24 Thread ejfried
Ultimately, of course, a Fact is an array, with one element for each slot. When you compile a rule, the rule compiler will look up the names of any slots that are mentioned, and it's the index of the slot that gets compiled into the rule. On the other hand, fact-slot-value is a function that has

Re: JESS: Date: Wed, 26 Oct 2005 15:13:21 +0200

2005-10-26 Thread ejfried
I think Vladimir Florian wrote: Could you please give me a hint why the second rule is not fired and the fact f3 is not retracted? Because the rule says (communicative-act QUERY_REF) (with an underscore) and the fact says (communicative-act QUERY-REF) (with a hyphen)?

Re: JESS: MethodNameComparator generates error in 70b3

2005-10-26 Thread ejfried
I think Semmel, Glenn S wrote: I looked at the source files and noted the following differences: 70b3's compare() ends with: return ((String) o1).compareTo(o2); Whereas 70a4's compare ends with: return ((String) o1).compareTo((String) o2); Interesting! If you look at the

Re: JESS: exists description in the documentation missing?

2005-10-26 Thread ejfried
I think Fred Janon wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I am reading the Jess in Action book and noticed that it lists exists as a Jess' CEs but I could not find it in the online doc for version 6.1. It's here, in chapter 2:

Re: JESS: Pocket PC

2005-10-28 Thread ejfried
I think nikita berdikov wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello to everybody, i wanted to know if u can with jess on my pocket pc, is it possible? No, not out of the box. Work on a PDA edition of Jess is underway, however, and may be available next year. and

Re: JESS: WebSite navigation

2005-10-31 Thread ejfried
I think Daniel B. Davis wrote: All browsers I have tested show the navigation items on the web site as too small to read.nbsp; These include: ul liMozilla Firefox 1.0 liNetscape Navigator 7.1 liInternet Explorer 6.0 /ulThese are the ones high on the left-hand side of the page, rendered in

JESS: Announcing Jess 7.0b4

2005-11-02 Thread ejfried
Hi Folks, We're pleased to announce the availability of the latest release of Jess, the rule engine for the Java platform, at the usual location: http://herzberg.ca.sandia.gov/jess/download.shtml This release adds a lot of polish to Jess 7 as we approach the final version. There are a number

Re: JESS: multiple shadow fact templates

2005-11-02 Thread ejfried
I think Scott Moss wrote: If the defrules are ordered as above, then no shadow facts are created for producer. If the producers rule is defined first, then three producers shadowfacts are created followed by seven agents shadow facts. Is it the case that there cannot be two points to a

Re: JESS:Modular deffacts problem

2005-11-02 Thread ejfried
I think David Firmin wrote: I'm trying to use deffacts with a specific module, but am having some problems changing out of that module once the deffacts has taken place. At present, I'm doing the following (although I've simplified the code here, the sense remains the same): I'm afraid

Re: JESS: multiple shadow fact templates

2005-11-02 Thread ejfried
I think Scott Moss wrote: The order in which rules are fired depends first on the conflict resolution strategy, but if two rules are of equal priority by that criterion, then they'll fire in an arbitrary order that just falls out of the Rete network implementation. That order is affected by,

Re: JESS: String to Symbol

2005-11-03 Thread ejfried
I think [EMAIL PROTECTED] wrote: How can I convert a string into a symbol? In Java, String string = whatever; Value symbol = new Value(string, RU.SYMBOL); In Jess, (bind ?string whatever) (bind ?symbol (sym-cat ?string)) -

Re: JESS: empty list pattern and ppdefrule

2005-11-03 Thread ejfried
I think Jonathan Sewall wrote: However, in Jess v7.0b4, ppdefrule omits the (data ) pattern from its output. Is our simpler syntax for testing multislots unsupported? Many thanks, Seems to work as ever; this is apparently just a bug in the pretty-printer. Thanks for the report.

Re: JESS: RE: Understanding JESS

2005-11-04 Thread ejfried
I think Daniela CLARO wrote: However I have more two questions, the first one I thought that (reset) clear my knowledge base, I mean, my facts, rules, all things and actually it doesn't. What is the command I can use to clear my knowledge base? There's a chapter entitled The Jess Function

Re: JESS: String to Symbol

2005-11-08 Thread ejfried
I think Roger Studner wrote: (defrule count-icd9-codes ?c - (accumulate (bind ?count 0) ;; initializer (bind ?count (+ ?count 1)) ;; action ?count ;; result (encounter (code ?c : (eq ?c 440))) ) ... This (and anything in the accumlates match

Re: JESS: Behavior change from 6.1p7 to 7.0b3 with modify function

2005-11-08 Thread ejfried
I think Jon Weygandt wrote: it looks like modifying a fact sometimes requires the equivalent of: For each slot modified { Retract the fact Set the slot Assert the fact } Yes, more or less. Special versions of retract and assert can be used to cut a few corners in this

Re: JESS: How does the pattern match: ?trans_state SI | MI | EI

2005-11-08 Thread ejfried
I think Jon Weygandt wrote: Jess, That's her picture on the cover of Jess in Action :) (TRANS_STATE ?trans_state SI | MI | EI) My procedural view would be the pattern is evaluated as: (TRANS_STATE (?trans_state SI) | MI | EI) And if the match for SI fails, not sure what

Re: JESS: String to Symbol

2005-11-08 Thread ejfried
I think Roger Studner wrote: (deftemplate employee (slot salary)) (deffacts employee-facts (employee (salary 1007700)) (employee (salary 1002347700)) (employee (salary 107712000)) ) (watch all) (reset) (defrule count-highly-paid-employees ?c - (accumulate (bind ?count 0) ;;

Re: JESS: Strange Jess / Eclipse crash

2005-11-09 Thread ejfried
I think Matthew Hutchinson wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] G'day everyone, This is more of an Eclipse question, however, I only get this error when trying to open CLP files. Eclipse with Jess has been working fine for weeks, and now suddenly Eclipse completely

Re: JESS: Strange Jess / Eclipse crash

2005-11-09 Thread ejfried
I think Matthew Hutchinson wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, Actually, I have already got the full version from Craig and it works fine. Also, my classpath and eclipse stuff is all set to the full version jar file also. Good, but be that as it may, one can

Re: JESS: Checking if a fact exists

2005-11-09 Thread ejfried
I think [EMAIL PROTECTED] wrote: (defrule rule1 (x1 value1 ?cf1) (x2 value2 ?cf2) (x3 value3 ?cf3) = (assert (x3 value3 (min ?cf1 ?cf2 ?cf3))) Perhaps this rule should retract or modify the existing fact, rather than asserting a second one, as this does?

Re: JESS: variable facts

2005-11-11 Thread ejfried
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote: Isn_t it possible to assert a variable as a fact or a variable fact? like this: (bind ?var number1) _. (assert (?var)) No, the type of the fact must be known when the call to assert is compiled. You can use an extra level of

Re: JESS: Or problem

2005-11-11 Thread ejfried
I think mauricio rincon wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi... I have a problem with OR (v) operator. I_m using this operator in a rule, that should be fired only once when both of the conditions happened . The problem is that if both events are happening, the

Re: JESS: Multifield matching nil

2005-11-11 Thread ejfried
I think Steve Solomon wrote: This is a minor complaint. Why can't one use nil to match an empty list? Short answer: because Jess inherited its basic rule language semantics from CLIPS, and that's how it works in CLIPS. Only the pattern (sprocket ?id) matches (sprocket 2) with no following

Re: JESS: Hrmm.

2005-11-14 Thread ejfried
[ Forwarded for Jason Morris -- Moderator ] I think that Roger Studner wrote: Can someone explain slot-specific to me? You've stumbled right into what Dr. Friedman-Hill warns about in section 7.15 in the Jess documentation. You're modifying a slot that is *not* part of the LHS, so Jess will

Re: JESS: Hrmm.

2005-11-14 Thread ejfried
I think Roger Studner wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Can someone explain slot-specific to me? Based on your hints about what your code might look like, I wrote this rule: (defrule foo ?cGroup - (ICD9_COUNTING_GROUP (codes $?codes)) = (bind ?theCount

Re: JESS: defquery

2005-11-14 Thread ejfried
I think Roger Studner wrote: When I try to modify the fact.. I get an error that 'the fact is not in working memory'. Short answer: before trying to modify the facts you get from a query, use getIcon to resolve them: (bind ?fact (?fact getIcon)) Better answer: upgrade to Jess 7, and use the

Re: JESS: runQueryStar

2005-11-15 Thread ejfried
I think Scott Moss wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I am unable to get the QueryResult returned by runQueryStar() in Java to recognise column headings in a Userfunction. The argument to the getXxx() methods isn't a slot name; it's a variable name. Remember that

Re: JESS: slot-specific and multifields

2005-11-15 Thread ejfried
along at home, is [EMAIL PROTECTED] Jess]$ cvs diff -r 1.5 -r 1.6 jess/Node1MTMF.java Index: jess/Node1MTMF.java === RCS file: /home/ejfried/cvsroot/Jess/jess/Node1MTMF.java,v retrieving revision 1.5 retrieving revision 1.6 diff -r1.5

Re: JESS: Debugger

2005-11-16 Thread ejfried
I think Jeffrey Davine wrote: I'll do the research, but as a general matter, do you think the Jess API exposes enough information (particularly concerning the rete tokens) so that I could write such a tool? Alan's more optimistic, but I myself don't think this can really be done at the level

Re: JESS: Converting Object to Object[]

2005-11-17 Thread ejfried
Jess's usual representation for arrays is a Jess list -- is that what you're looking for? There isn't a public API built into Jess for turning an array into a List, but now that you're pointing out the need, it seems like a good addition. For now, though, your obj2array function is the best way

Re: JESS: Object to built-in type

2005-11-18 Thread ejfried
I think Roger Studner wrote: v = new Value(l, RU.SYMBOL); ... v = new Value(i, RU.SYMBOL); For the record, note that both of these lines will throw exceptions at runtime. To contstruct an RU.SYMBOL from a numeric type, you have to convert the value to a String yourself and pass that String to

Re: JESS: Size of an activation record

2005-11-21 Thread ejfried
I think Kristina Marasovic wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, can someone tell me if it is possible (and how) to get or to measure the size of an activation record. You don't really know the size of *any* Java object, as the details of object representation

Re: JESS: Conflic Resolution Implementation

2005-11-21 Thread ejfried
There's no tutorial guide or anything like that. The basic procedure is very easy: implement the jess.Strategy interface, then use (set-strategy classname) to load it into Jess. There's really just the one compare() method to write; it's supposed to implement the spaceship operator (ie.,

Re: JESS: Template Hierarchy

2005-11-22 Thread ejfried
I think Jeffrey Davine wrote: Perhaps the place to ask this question is the Constantine Planning Wiki - but would it be difficult in the next version of Jess to implement a hierarchical template structure? ... (deftemplate Individual extends LegalAgent OK, let's get in the time machine...

Re: JESS: Size of an activation record

2005-11-22 Thread ejfried
I think Roger Studner wrote: Is there (I read something 'akin' to this in the mailing archive) a big performance hit as well? I like to use beans/shadow facts for a variety of reasons, but have always been under the impression that when i'm going to assert a 'huge' number of a particular

Re: JESS: Editor couldn't be initialized

2005-11-23 Thread ejfried
I think Yura wrote: I'm receiving the Editor couldn't be initialized when trying to open clp-files in Jess70b4-editor (yes, I tried the -clean switch). Jess70b3 works well. Can anybody help? JessDE 7.0b4 now requires Eclipse 3.1 -- the sudden changeover with this particular version wasn't

Re: JESS: definstance

2005-11-26 Thread ejfried
You can use (undefinstance *) to remove all definstances. There is currently no undeffacts function but one is slated to be added for Jess 7. I think Subrahmanyam wrote: HI All Is there a flag which can be set so that (reset) command removes all the general stuff it removes and does not

Re: JESS: Fact object not in working memory error

2005-11-28 Thread ejfried
Most likely the problem is that some of your classes (perhaps com.ngc.dts.domain.common.PerDiemEntitlement) have mutable hash codes, making them unsuitable for use as keys in a hash table (try using one of these objects as a key in a HashMap, change the values of some properties, then try to look

Re: JESS: Userfunctions and Jess - Java type conversion

2005-11-30 Thread ejfried
If you can a Java function from Jess, and that function returns a java.lang.Boolean, then Jess will turn it into a Jess boolean value (the symbols TRUE or FALSE, of type RU.SYMBOL). On the other hand, new Value(Boolean.TRUE) will give you a Value of type RU.JAVA_OBJECT that contains a

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hmm, ok thanks, I understand better now. However, jess.Userfunctions return Value's so is there anything I can do in that case to activate the type conversion? I tried Value.resolve() but that did not help.

Re: JESS: creating an audit trail

2005-12-01 Thread ejfried
I think Roger Studner wrote: Has anyone has success in industry with a pattern or methodology for tracking which rules fires and for what facts through a set of rules? Not sure what you mean by a pattern or methodology, but... I have thought of listeners on firings That's all you have to

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread ejfried
I think erich.oliphant wrote: I tried that function, but it doesn't seem to exist on the jess.ReflectFunctions class (I am using 7.0 beta 4. There seems to be a a static Value a(Class, Object) throws JessException method based on browsing the class file. Could this be it? You're not using

Re: JESS: Accumulate Function - LHS

2005-12-02 Thread ejfried
All pattern-matching has to be driven by *some* change to working memory. A few CEs (not, test, accumulate) can pass when they match no facts at all. Therefore, these CEs need a little help to know when to fire. If any of them appear first on the LHS of a rule, Jess inserts a pattern

Re: JESS: Possible bug: using apply with str-cat inside a function

2005-12-02 Thread ejfried
Jess's apply differs from the classic Lisp apply in that the varargs are in the apply funcall, rather than being bundled up in a list. This is by accident rather than by design, I'm afraid. In classic Lisp, this form (apply str-cat foo bar baz) is an error, but in Jess, it's correct. In

Re: JESS: Bug?

2005-12-02 Thread ejfried
I think Yura wrote: (defrule rule (declare ) =) When I type ( inside (declare) I receive auto-loop, no-focus,node-index-hash and salience. After manually inserting slot-specific I receive error. I'm using Jess70b4, my Eclipse is 3.1.1. Ah. OK. That's because slot-specific applies to

Re: JESS: Re: Bug

2005-12-02 Thread ejfried
I think Yura wrote: I'm sorry - it's there in the manual. I should be more attentive. By my calculation, you've reported 4 bugs, and 3 of them were real -- so you're batting .750 . Seems like an excellent average to me! - Ernest

Re: JESS: Recognizing JessTab functions in JessDE / Eclipse

2005-12-06 Thread ejfried
I think Dona Mommsen wrote: Now it would be nice if JessDE would recognize the JessTab functions, so that I could get rid of all the warnings about undefined functions. I added the JessTab14.jar to the project, yet JessDE does not recognize that there are Jess functions in the jar. Adding

Re: JESS: Probelm with property change listeners in Jess7b4

2005-12-08 Thread ejfried
Hi, In Jess 7.0b3, the default for definstance type changed from dynamic to auto. If you specified dynamic as the last argument to definstance, then Jess would try to register itself with your Bean as a PropertyChangeListener; this used to be the default, so that you had to write static if you

Re: JESS: Bug?

2005-12-08 Thread ejfried
I think Yura wrote: [Charset koi8-r unsupported, filtering to ASCII...] Hi jess-users JessDE doesn't parse this rule (saying: 'TRUE' is a symbol, not an integer): (defrule rule (declare (salience (+ 1 1))) = ) whereas Jesp makes no complaints. Yep. I can reproduce this and now that you

Re: JESS: DefRule - Memory Leak

2005-12-09 Thread ejfried
I think Hariprasath Manivannan wrote: - Has anyone faced this issue with Jess5.0? If so please send the possible solutions. Jess 5.0 is unsupported. The last release of any version of Jess 5 was 5.2 in June, 2000; that's over five years ago. Jess has evolved considerably since then, and many

Re: JESS: defadvice before/after bug?

2005-12-09 Thread ejfried
I think [EMAIL PROTECTED] wrote: Am I wrong to say that the 'misfeature' mentioned below hasn't made it into a feature yet in the latest release 7.0 b4? Is there any plan to still add it in time for 7.0 final? I've written defadvice for every numeric Jess-function (+, -, *, /, , =, , =,

Re: JESS: Problems with SWT_AWT in Eclipse on MacOS X

2005-12-09 Thread ejfried
I think Dona Mommsen wrote: On MacOS X, Eclipse will crash with error: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line Yes, I can reproduce this on my Powerbook.

Re: JESS: Which comes first, the chicken or the rule?

2005-12-13 Thread ejfried
I think Matthew Hutchinson wrote: Just a conceptual question... since starting with Jess, it always seemed to me generally you have the rules established first, then load in facts which in turn trigger these rules. No problems there. But is it proper to consider having the facts already in

Re: JESS: Using a string in a bind or as a jess command

2005-12-20 Thread ejfried
I think Bret Kellihan wrote: Also, Is there anyway to build up an entire jess expression into a variable and then execute it? I've tried something on the lines of: (bind ?command (str-cat (bind ?x 1))) (?command) The eval function parses and evaluates a String (or a variable containing

Re: JESS: Help on the syntax of a rule.

2005-12-21 Thread ejfried
I think ROSSEL, Olivier (CIMPA) wrote: I am using Jess with Protege. I want to write a rule that says: run when you get an oject FOO with a non-empty slot called 'name' and where there is no fact foo with property bar equal to the slot value. I would intuitively wirte that this way:

Re: JESS: Help on the syntax of a rule.

2005-12-22 Thread ejfried
I think ROSSEL, Olivier (CIMPA) wrote: But such a syntax seems to fail: defrule doStuff ?o - (object (is-a FOO) (name ?name~nil)) (not (foo (bar (?name trim ... Any comment? In Jess, just as in all computer languages, you have to use the proper syntax. An unadorned function call

  1   2   >