Re: JESS: Eclipse

2004-03-31 Thread ejfried
I think [EMAIL PROTECTED] wrote: Hello, I have a question concerning jess and eclipse. I`m using eclipse for java. Now i downloaded the jess plug-in for eclipse, but I don`t know how to use it at all. And what Jess Plug-in for Eclipse would this be, exactly? The ones being developed for

Re: WG: Re: JESS: Eclipse

2004-04-02 Thread ejfried
I think [EMAIL PROTECTED] wrote: Hi there, it is the Sphere Solata Plug in for Eclipse, but I have not get it work till now Well, you'll want to ask *them* for support. - Ernest Friedman-Hill Science and Engineering PSEs

Re: JESS: Passing facts to UserFunctions in Java

2004-04-05 Thread ejfried
I think Ben Allen wrote: However when i load and then proceed to call this function, with this string, String sendMesTest = (sendMessage (message (data \Ben, check out the Seafood restaurant\) (sender \graham\) ) + (locationEvent (xCoord 123456) (yCoord 123456) (userID \[EMAIL PROTECTED])

Re: JESS: JESS 7 MBean integration

2004-04-06 Thread ejfried
I think Gianna wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi guys, I know this argument has been discussed some times ago (see msg05686 posted by Keith Donald), but I'd like to know if some kind of native JMX integration has been planned into Jess 7. Not planned

Re: JESS: JESS 7 MBean integration

2004-04-06 Thread ejfried
I think rul3zrul3z wrote: I've been considering this for a while and here are my own thoughts. If someone is using it in Tomcat 5, JMX support is built in. All one has to do is write a MBean and register it. In this case, having a MBean to manage deploy/redeploy/undeploy a rule

Re: JESS: Jess hanging on 'modify'

2004-04-06 Thread ejfried
I think David Ash wrote: I'm having trouble in that Jess seems to sometimes (frequently enough to make it hard to use) hang when I do a 'modify' of a fact. There is no error message or anything-it just hangs. Any ideas what might be causing this? If you're doing this from a multithreaded

Re: JESS: Help with calling Java from Jess

2004-04-06 Thread ejfried
I think Greg Biegel wrote: One of my rules calls back to A which then performs an operation (event unsubscription). The callback occurs, and the method in A is called, but then when this method goes on to perform the event unscription, the method never returns. No error, no stacktrace at

Re: JESS: Jess hanging on 'modify'

2004-04-06 Thread ejfried
I think David Ash wrote: Yes I am indeed running it from a multithreaded Java program. What is the latest version of Jess? 6.1p6. What kind of issues may arise if I assert a fact from a different thread from the main thread in which the Jess engine is running? Is that where the problem

Re: JESS: problem in Jess

2004-04-13 Thread ejfried
I think Syed Shomaail wrote: How do we make connection to a database such as Access in Jess Just as in any other Java program, you can use JDBC, of course. For the specific problem of reasoning about records in a database, you can use Thomas Barnekow's Fact Storage Provider Framework (see the

Re: JESS: Using eval to hot-reload predicates and auto-update the rete

2004-04-13 Thread ejfried
I think Eric Wang wrote: Solution: eval-ppdefrule. Call batch to read the new file. Then call (eval (ppdefrule rule-name)) to re-evaluate each rule. Very clever! Can the granularity of refreshing be made finer, e.g. to specify refresh pattern 5 of rule

Re: JESS: Calling a Java method

2004-04-15 Thread ejfried
I think Greg Biegel wrote: I want to call a constructor method on a Java object from within Jess, this method takes a string argument. I need to call the constructor from Jess, passing it a global variable which contains a double. My question is how do I convert this double to a string so

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: Shadow facts..

2004-04-22 Thread ejfried
I think Greg Biegel wrote: (defrule avgweight (SmartCouch_LoadCellSensor1_MassEvent_Bean (mass ?mass1)) (SmartCouch_LoadCellSensor2_MassEvent_Bean (mass ?mass2)) (SmartCouch_LoadCellSensor3_MassEvent_Bean (mass ?mass3)) (SmartCouch_LoadCellSensor4_MassEvent_Bean (mass ?mass4)) =

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

Re: JESS: Pausing the execution cycle without returning

2004-05-07 Thread ejfried
I think Steffen Luypaert wrote: What is the best solution to this problem? I was trying to use a lock. The main thread would call wait() on it, while the event thread would call notify() on it when the answer fact was generated. But this didnt work. That's pretty much what you want to

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: Determine when a fact is retracted

2004-05-03 Thread ejfried
I think [EMAIL PROTECTED] wrote: if there is a (B ?a) such that ?a doesn't exist (defrule the-rule (B ?a) (not ?a - (A)) =) actually works fine. - Ernest Friedman-Hill Science and Engineering PSEsPhone:

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: calling bsave after adding a Userfunction

2004-05-14 Thread ejfried
I think Korbinian Lindemann wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hi, I tried to call rete.bsave() after I have added a Userfunction ExMyUpCase and I get the following Exception: java.io.NotSerializableException: ExMyUpCase Just declare that your Userfunction

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: DimmerSwitchDynamic error

2004-05-14 Thread ejfried
I think Michael Knapik wrote: Nested exception is: DimmerSwitchDynamic.addPropertyChangeListener(java.beans.PropertyChangeListe ner) java.lang.NoSuchMethodException: DimmerSwitchDynamic.addPropertyChangeListener(java.beans.PropertyChangeListe ner) You might use the windows Find File

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: Modifying an unordered fact

2004-04-28 Thread ejfried
I think Greg Biegel wrote: However, with the average-weight fact included as above, everything goes mad and this rule just seems to fire constantly! Am I performing the modification wrong? Nope, you're fine. This is a classic problem with Rete-based production systems like Jess. Modifying a

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: Problem with not CE

2005-09-14 Thread ejfried
I think Yura wrote: [Charset koi8-r unsupported, filtering to ASCII...] Hi everyone I've got some strange problem with Jess engine. A simple code below illustrates it. The code iteratevily forms a sorted list. It does this quite well when the number of entities is small enough (=10). But

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: Defining default rules

2005-10-08 Thread ejfried
I think Henrique Lopes Cardoso wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Thank you for the quick reply. But then again, I can avoid salience if I combine your approach with module definitions. There's really nothing that makes one better than the other. The uses of

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: Question about Jess in Action book...

2005-10-21 Thread ejfried
I think Joseph Grant wrote: Please, would somebody explain this to me: there are quite a few rules defined in the Interview section, some with no LHS. According to the book, these rules have no patterns and are activated by a call to reset. I'm cool with that. My question is, how does

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: Jess vs. Lisp

2005-10-21 Thread ejfried
I think Dusan Sormaz wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Did anybody use Jess as a substitute for Lisp in AI classes? I mean not as a rule-based language but as plain lisp to implement functions and/or algorithms (like space search) Any experiences and comments?

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 Scott Moss wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] It would be useful to me to extend this discussion a little-- specifically to the memory requirements of facts and shadow facts. Is there any way of know whether a shadow fact relating to a Java object with

  1   2   >