Re: JESS: if else

2006-10-04 Thread friedman_hill ernest j
I think m u wrote: > > How about rule like this? > > > if ( some criteria) > execute this > else > execute this > Nope, doesn't work that way, because there are several different kinds of "not true" that might apply (facts don't exist; facts exist but fields don't match; etc.) You have

Re: JESS: Help with Rete getObjects method

2006-10-04 Thread friedman_hill ernest j
I think Barker, Brett A wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > > Hello, > > I am running into a problem with the Rete getObjects( Filter.ByClass( > CLASS.class) ) method. I am trying to retrieve results from a Rete object > after having called the Rete.run() method. Ho

Re: JESS: Can't run Rete View or debugger

2006-10-04 Thread friedman_hill ernest j
I think Brad Dixon wrote: > > On Windows: Inability to start Jess debugger. Launch spins at 50% then > aborts after a few minutes. I am now able to reproduce this; we're still working on tracking down the problem. > On Linux: Inability to start Jess debugger. Launch spins at 50% then > aborts af

Re: JESS: deftemplate.addMultiSlot(..)

2006-10-04 Thread friedman_hill ernest j
I think Samson Tu wrote: > > Is it possible to have addMultiSlot(java.lang.String name, Value value) > back for the sake of backward compatibility? Sure! - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154

Re: JESS: Testing the Jess code in JessDE

2006-09-29 Thread friedman_hill ernest j
I think Helge Hartmann wrote: > I read the Appendix C of Jess in Action. But is there any testing > support for Jess inside the JessDE? Surely, I could write the tests > using Junit, but I would prefer a solution that I can debug using the > jess debugger. I'm interested in having a "Jess

Re: JESS: Expired or no expired license

2006-09-29 Thread friedman_hill ernest j
I think Jean-Max Estay wrote: > > I have an academic license (see above) and I use Jess 6 with the Jess 7 > plugin for eclipse (3.2 rev). It_s OK on my own computer. This is a pretty dodgy thing to do. Jess 6 doesn't have the hooks needed to run the debugger, for instance. Why would you want to

Re: JESS: Append to a list of facts

2006-09-27 Thread friedman_hill ernest j
I don't this there is an especially good way to do this within the Jess language itself. The list-handling semantics are inherited from CLIPS, and they're definitely not the most efficient thing in the world. You could write a simple Java Userfunction to do what you want, something like public cl

Re: JESS: Serializing Userfunctions

2006-09-22 Thread friedman_hill ernest j
I think Henrique Lopes Cardoso wrote: > > Just stating the class to be Serializable made it work, that is, bsave() > does not complain anymore and after bload()ing the functions work as > expected. > > I then tried with a simpler example, which got me the > NotSerializableException again... N

Re: JESS: Jess Bug Hunt Update

2006-09-21 Thread friedman_hill ernest j
I think Henrique Lopes Cardoso wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > > Is there no way of getting (in Java) the deftemplates of a certain module? > Looks like listDeftemplates() gets all deftemplates from all modules. > But its jess equivalent, (list-deftemplates)

Re: JESS: Lowest number value

2006-09-20 Thread friedman_hill ernest j
I think Nicolas wrote: > > How can I find the lowest value amongst a list of fact ? ... > > (deffacts list-of-numbers > "a list of numbers" > (number (value 9)) > (number (value 3)) > (number (value 6))) You write "If there's a number, and no other number is smaller... (defrule lowest-number

Re: JESS: accumulate CE

2006-09-20 Thread friedman_hill ernest j
This may well be the same bug reported by Neil Wyse as part of the Bug Hunt; see the bottom of http://www.jessrules.com/contest.shtml . I think Felix Bachmann wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > > I have an unfortunate, unpredictable behavior with the accumulat

JESS: Jess in Action page on Wiki

2006-09-17 Thread friedman_hill ernest j
Hi Folks, I wanted to let you know about some new material on the Jess Wiki. The page dedicated to the book "Jess in Action" is here: http://www.jessrules.com/jesswiki/view?JessInAction This page now links to two new pages with what I think is useful and interesting material: there's a page with

Re: JESS: Code for my question about multiple threads and engines

2006-09-15 Thread friedman_hill ernest j
I think Mike Stacey wrote: > > r_2.eval("(batch rules/rules_2.clp)"); > r.eval("(batch rules/rules_1.clp)"); Although your question is about multiple threads, both of these calls are (obviously) being made on the *same* thread. Jess doesn't create any threads of its own, and the (run-until-halt)

Re: JESS: Function in LHS

2006-09-15 Thread friedman_hill ernest j
I think Jason Morris wrote: > > My warning/admonishment was to only write valid fact patterns when > constructing your logic and to not include purely functional > expressions as part of the LHS. It's also a good idea to use direct matching rather than calling "eq", "neq", etc, on a LHS, because

JESS: Jess Bug Hunt Update

2006-09-12 Thread friedman_hill ernest j
Hi Folks, We're one week into the Jess7.0 RC1 "Bug Hunt". So far there have been seven entries, and out of those, there have been four fortunate winners of a handsome Jess T-shirt. You can learn about the contest and get the latest updates at the contest home page: http://www.jessrules.com/contes

Re: JESS: Rules fireing on extended deftemplate

2006-09-12 Thread friedman_hill ernest j
I think Felix Bachmann wrote: > Then I have a rule that checks MAIN::AskQuestion and produces > Logger::AskQuestionLogged, which looks like: > > (defrule MoveAnsweredQuestions > ?qu <- (MAIN::AskQuestion (log true)) > => > (assert (Logger::AskQuestionLogged (oldID ?qu) (log true))) >

Re: JESS: Detecting rules inconsistencies

2006-09-09 Thread friedman_hill ernest j
I think Skeptic 2000 wrote: > > 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. There's nothing built into Jess that does t

Re: JESS: Java and JESS

2006-09-08 Thread friedman_hill ernest j
I think Chandler wrote: > > Now I am not clear on how can one do this... I want to notify java program > that I require number 3 from it and till that number is not obtained > my jess engine should basically keep running and wait for that number to > arrive ... I think you're not clear how to do

Re: JESS: Backward Chaining DOUBT

2006-09-06 Thread friedman_hill ernest j
I think Chandler wrote: > > Here I have a doubt that why is it my Rule FIRES ?? because I still require > value for v1 for the rule to fire, NOT SO ?? Not so. All that is required is a fact that matches the rule. Backward chaining has nothing at all to do with this! You asserted a fact that match

Re: JESS: Jess 7.0RC1 require statement

2006-09-05 Thread friedman_hill ernest j
I think Felix Bachmann wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hey, > > Just installed the new release and found that all my (require) > statements don't work anymore. The old behavior was that when using > relative path names as the second parameter of "required" then t

Re: JESS: Jess foreach - duplicate problem

2006-09-05 Thread friedman_hill ernest j
When you sent this to me off-list, I asked if you could provide a complete program which showed the behavior you're describing, and let me know what version of Jess we're talking about. I don't think you'll get much advice without giving a way to reproduce this whole thing. As it is, we don't know

JESS: Announcing Jess 7.0RC1

2006-09-05 Thread friedman_hill ernest j
We're pleased to announce the availability of Jess 7.0 Release Candidate 1, the Rule Engine for the Java Platform, at the usual location: http://www.jessrules.com/download.shtml This may be the last release before Jess 7 final. All the components are in place and all reported bugs are fixed.

Re: JESS: Fact object not in working memory error

2006-08-31 Thread friedman_hill ernest j
This is the kind of thing you can see in Jess 6 if your definstanced objects, or objects in their slots, have hash code values that change at random times while the objects are in Jess's working memory. I suspect that's what's happening here. Jess 7 has a specific mechanism for handling this -- the

Re: JESS: asserting a fact from another

2006-08-27 Thread friedman_hill ernest j
I think Skeptic 2000 wrote: > > 1) Since there is no multiple inheritance (extends can be done only on one > fact), what would be the best way to create this : > > A has two slots, X, Y > B has one slot Z > C would have X, Y, Z. No special trick; C can inherit from A or B, but not both, and add

Re: JESS: asserting a fact from another

2006-08-26 Thread friedman_hill ernest j
You can just bind the values to variables on the rule's LHS, right? (defrule example (A (x ?x) (y ?y)) => (assert (B (x ?x) (y ?y) (z someValue If A and B weren't different templates, you could use the underappreciated "duplicate" function, but you can't. I think Skeptic 2000 wrote: [C

Re: JESS: Jess Question

2006-08-22 Thread friedman_hill ernest j
I think Neelakantan Kartha wrote: > > I want to write a rule whose RHS can be used to assert the following > facts regarding red boxes in houses: > (notify-user (house h1) (box b1)) > (notify-user (house h1) (box b3)) and > (notify-user (house h2) (box b4)), and use these facts to notify the u

Re: JESS: No such Variable error

2006-08-18 Thread friedman_hill ernest j
I hope the error message makes it clear that at the line where you're calling "assert", there is no variable named ?pn which is in scope. The only variable ?pn is defined inside a "not" CE, and variables defined inside a "not" are not available outside of that "not". Think about it: what this line

Re: JESS: ASAP-JessTab and ProtegeKB

2006-08-16 Thread friedman_hill ernest j
r application) and was wondering how can > I go about trying to implement a similar app if I want to use the exisisitng > kb in protege for an e-commerece application.Can you plase give me some step > by step pointer...that will surely help > > thnaks > vaishali > > >

Re: JESS: ASAP-JessTab and ProtegeKB

2006-08-16 Thread friedman_hill ernest j
Jesp.do(Unknown Source) > at jess.Jesp.int(Unknown Source) > at jess.Jesp.for(Unknown Source) > at jess.Jesp.parse(Unknown Source) > at jess.Jesp.parse(Unknown Source) > at jess.Main.execute(Unknown Source) > at JessTab.JessTabEngine.run

Re: JESS: Java Beans and Jess

2006-08-15 Thread friedman_hill ernest j
I'm having a hard time understanding where this question is coming from. Jess lets you pattern-match on objects, if (and onoy if) that's what you want to do. If you want to match objects, then obviously, you have to create objects. If you don't have objects, then you shouldn't want to match them, b

Re: JESS: Jess In Action, PC Repair PROBLEM doubt

2006-08-15 Thread friedman_hill ernest j
It's triggered by Jess's backward chaining machinery. The book tries to explain this in detail; do you have any specific questions regarding what iot says in the book? I think Chandler wrote: > > Hello All, > > In chapter PC Repair Diagnostic of Jess in Action... > I would really appreciate if s

Re: JESS: ASAP-JessTab and ProtegeKB

2006-08-15 Thread friedman_hill ernest j
I think vsingh wrote: [Charset utf-8 unsupported, filtering to ASCII...] > > Hi all, > > I have the following doubts.Please help. > > 1.How to use jess tab in console mode? Don't think you can, can you? It's a GUI tool. > 2.While trying to import protege KB for further inferencing using Jess ,

Re: JESS: Java Beans and Jess

2006-08-14 Thread friedman_hill ernest j
I think Chandler wrote: > (defrule rule1 > ( {< (call ?sb getValue) 5} ) > => ... What "defclass" does (as both the manual and the book explain; have you been reading the manual?) is create a template based on your Java class; "definstance" creates a fact using this template from your Java obje

Re: JESS: Problem using JessSAXParser

2006-08-13 Thread friedman_hill ernest j
I think Sowmya Manjanatha wrote: > > I get this error when I try to use the parse routine for JessSAXParser. > ... > > String xml = "" + > "" + > "" + >"+" + >"" + >" VARIABLEx" + >"INTEGER1" + > ""; > That's a really terrible error message --

Re: JESS: Printing jess statements when called from java

2006-08-11 Thread friedman_hill ernest j
I think Chandler wrote: > r.executeCommand( "HelloJess.clp" ); I thought I was very clear yesterday, but I guess not. The argument to executeCommand() is treated just as if you typed it at the Jess> prompt, except that the result isn't printed, but rather returned from the function. What is the

Re: JESS: Multislots and datatypes

2006-08-10 Thread friedman_hill ernest j
I think Greenblatt, Howard wrote: > > This indicates that both slots and multislots can include type > information (RU.INTEGER, RU.SYMBOL, etc.). In addition, within the > JessDE the content assist for a multislot will pop up an option for a > type definition (in addition to default values), howev

Re: JESS: Printing jess statements when called from java

2006-08-10 Thread friedman_hill ernest j
I think Chandler (sent by Nabble.com) wrote: > r.executeCommand( "Puzzle.clp" ); The argument to "executeCommand()" is something you'd type at the Jess> prompt. Try typing "Puzzle.clp" at the Jess> prompt, and see what happens... Now, what do you type instead?

Re: JESS: Rete network view in Eclipse

2006-08-10 Thread friedman_hill ernest j
I think Chandler (sent by Nabble.com) wrote: > > 1. Rete network view... > I installed the GEF plugin framework, and checked if it's installed by > looking at all the plugin details from the help menu...and it does show that > GEF plugin is installed.. How can I view this network in the ECLIPSE...

Re: JESS: Strange Jess / Eclipse crash

2006-08-08 Thread friedman_hill ernest j
I think vsingh (sent by Nabble.com) wrote: > The moment Click on a Jess .clp file ,eclipse shuts down.I downlaoded Jess > 3-4 days ago,so license shudnt be a problem. But it is; your trial copy of Jess is expired. - Ernest Friedman-Hill

Re: JESS: Packaging Jess .clp files

2006-08-08 Thread friedman_hill ernest j
I think Adam Winkler wrote: > do something similar if it were urgent that I move to JessDE. I do not know > when the bug will be fixed, so I am just hoping that there is a patch in the > not too distant future :-). It is fixed in Jess 7.0RC1, which will be released very soon. --

Re: JESS: defglobal warning message in JessDE

2006-08-07 Thread friedman_hill ernest j
I think Scott Moss wrote: > In JessDE running in Eclipse under Windows, even the provided defglobal > template (defglobal ?*i* = foo) produces the yellow hazard sign with the > caption "Undefined defglobal *i* at token `?*i*'". This does not happen > using JessDE under Linux. In both cases I am us

Re: JESS: Printing jess statements when called from java

2006-08-07 Thread friedman_hill ernest j
I think Chandler (sent by Nabble.com) wrote: > > System.out.println( "Calling Puzzle Solver Program"); > Rete r = new Rete(); > r.executeCommand( "Puzzle.clp" ); Do you need to call r.reset() right here? If the script is written so that you

Re: JESS: Help: Installing Jess to Eclipse

2006-08-03 Thread friedman_hill ernest j
I think Chandler (sent by Nabble.com) wrote: > > Respected Sir, > > Thank you for the much needed valuable information... > I downloaded Jess7 and I followed the exact procedures mentioned on the > jessrules website to install the plugin for eclipse.. I then restarted > eclipse and nothing happen

Re: JESS: Help: Installing Jess to Eclipse

2006-08-01 Thread friedman_hill ernest j
Well, first off, the JessDE is a feature of Jess 7, not of Jess 6. When using the JessDE, you don't have to put a copy of jess.jar anywhere; the Jess 7 manual tells you how to install the JessDE into Eclipse. I think learning both of these technologies together is unlikely to work out very well.

Re: JESS: Undefine a module

2006-07-31 Thread friedman_hill ernest j
I think Henrique Lopes Cardoso wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello, > > I was looking for an "undefmodule" function in Jess, but could not find it. > How can I undefine a module? Does it need to be empty? That is, with no > rules or facts? > There isn't one. I

Re: JESS: listFacts vs LHS matching facts

2006-07-28 Thread friedman_hill ernest j
network's fast lookup capability. > > Thanks for all your help with this. > > - Alan > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of friedman_hill ernest j > Sent: Thursday, July 27, 2006 3:38 PM > To: jess-users@sa

Re: JESS: listFacts vs LHS matching facts

2006-07-27 Thread friedman_hill ernest j
I think Greenblatt, Alan wrote: > Ultimately that would be the right thing to do. Unfortunately, in the > short term I can't change the user function. Is there anything I can > do from the Jess side of things in the meantime to make the > RU.JAVA_OBJECT fact look like an RU.FACT? The fact-id fun

Re: JESS: listFacts vs LHS matching facts

2006-07-27 Thread friedman_hill ernest j
I think Greenblatt, Alan wrote: > > myRule1 runs fine. When myRule2 fires I get the error: "myFunc only > accepts facts or lists of facts as arguments" > indicating the value being passed into the function is neither a fact > nor a List. Do I need to wrap the facts returned from listFacts in a

Re: JESS: setWatchRouter

2006-07-25 Thread friedman_hill ernest j
This section: http://www.jessrules.com/jess/docs/70/library.html#routers, of the Jess manual talks about routers, and the following section talks about attaching a router to a GUI. All you need to do is define a router that writes to a SWT Text widget, and then use setWatchRouter() to have watc

Re: JESS: Fact template conflicts?

2006-07-22 Thread friedman_hill ernest j
I think mdean77 wrote: > I am not trying to be dense, and you have been very helpful... > My question is aimed at trying to understand why Jess knows from > where to import Java classes on a given computer. That is, > I could write Java objects in any number of locations or programs on > a gi

Re: JESS: Fact template conflicts?

2006-07-21 Thread friedman_hill ernest j
I think mdean77 wrote: > This then raises the question of where do these classes need to be > for the Jess file to find them? Haven't we just spent a lot of time discussing exactly that? http://www.mail-archive.com/jess-users@sandia.gov/msg08652.html http://www.mail-archive.com/jess-users@sandi

Re: JESS: Newbie in need

2006-07-21 Thread friedman_hill ernest j
I think Ana (sent by Nabble.com) wrote: > > do you think that JessException an invalid class? Nope; just the first Jess class being looked for while loading your classes. There's nothing special about Jess here; this is most likely just a Tomcat configuration problem. You might try writing a c

Re: JESS: Newbie in need

2006-07-21 Thread friedman_hill ernest j
You should be able to put jess.jar in the webapps/parih/WEB-INF/lib directory (not classes), or tomcat/shared/lib ought to work, too. tomcat/common/lib probably would work also, although perhaps not without a server restart. Now, the bigger question is whether the relatively old RIH application wi

Re: JESS: Rule Question (Newbie)

2006-07-21 Thread friedman_hill ernest j
I think mdean77 wrote: > (patient {age < 14 || weight < 50}) You've run into a bug in the rule compiler for the new pattern syntax. This was previously reported and has been fixed for the next release (7.0RC1, due very soon!) For now you can use the equivalent old syntax: (MAIN::patient (ag

Re: JESS: Fact template conflicts?

2006-07-21 Thread friedman_hill ernest j
A template is in many ways like a class in Java and other languages. Here are a few true and relevant statements about a template: - It defines a datatype. - It must be defined before it can be used - If it is defined multiple times in a program, those definitions must match exactly. So the exa

Re: JESS: clarification on defclass & deftemplate constructs

2006-07-21 Thread friedman_hill ernest j
I think Subrahmanyam BVSS wrote: > HI All, > > I want to give the tag name in defclass construct in rule file dynamically > > So instead of following: > (defclass alertdefinition com.foo.MyClass) > > I want to use it like > (defclass (get-member RuleEngineConstants "ALERT_DEF_NAME") com.foo.MyC

Re: JESS: Eclipse plugins usage

2006-07-20 Thread friedman_hill ernest j
> > My plan is to use the Jess development plugins as part of this second > perspective, so that these users would have the advantage of using > the Jess editor. Are there any problems with this approach (legal or > technical)? I can recreate a generic text editor but that seems dumb. >

Re: JESS: Eclipse and ClassLoader Solved

2006-07-19 Thread friedman_hill ernest j
I think mdean77 wrote: > Finally a subject where I can contribute! Eclipse has a buddy > loading mechanism that solves this issue, and in fact has solved my > Class Not Found error. Yes, I am using RCP. ... > It would be useful for the Jess plugins to be fixed - I wasn't aware of this -- Th

Re: JESS: Confusion about Rete.add()

2006-07-18 Thread friedman_hill ernest j
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 cons

Re: JESS: Fact definition from Java

2006-07-18 Thread friedman_hill ernest j
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 f

Re: JESS: Fact definition from Java

2006-07-18 Thread friedman_hill ernest j
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). H

Re: JESS: Fact definition from Java

2006-07-17 Thread friedman_hill ernest j
I think mdean77 wrote: > Ridiculous question. I have a Bean in Java. I want to have Jess > build itself a template for a shadow fact. But Jess does not know > about the Bean. How does one tell Jess about the classes that have > been created in Java? Right now, I manually create a fact in

Re: JESS: Redirection to SWT GUI

2006-07-16 Thread friedman_hill ernest j
I think mdean77 wrote: > > However, I do not see how this relates to I/O Routers. And my next > stretch is into the TextAreaWriters, which don't really exist in SWT, > but this must be simpler than I am making it. TextAreaWriter and its new Swing cousin are both very simple classes that imp

Re: JESS: Eclipse plug-in configuration

2006-07-15 Thread friedman_hill ernest j
Thanks for hanging in there -- a reproducible case is a huge help in getting things sorted. I will let you know what I can figure out. I think mdean77 wrote: > Have confirmed or at least figured out how the pooch got screwed on > my computer. Simply downloading the SWT samples blew away Sandia

Re: JESS: Rete and Jesp

2006-07-14 Thread friedman_hill ernest j
I think mdean77 wrote: > > I have seen some notes on this server that you can have multiple > engines, but I guess I am confused about whether I should have > multiple Rete objects, or multiple parsers, or what. I could just > set up a globally accessible Rete and Jesp object, and then rese

Re: Matching multislots with JessTab/ Protege [was: JESS: Help on Jess Rules ..plz]

2006-07-11 Thread friedman_hill ernest j
I think John wrote: > > > (MAIN::object (is-a A) (OBJECT ?ab) (ID $?b "111" $?a)) > > However, when I use the variable $?a in the RHS, it gives me a error message > stating that, no such variable a. You should be able to use it just fine; check your work, or show us the rule that's having the pr

Re: Matching multislots with JessTab/ Protege [was: JESS: Help on Jess Rules ..plz]

2006-07-09 Thread friedman_hill ernest j
I think John wrote: > > However, > > (defrule match > (MAIN::object (is-a A) (OBJECT ?ab) (ID $?b "111" $?a)) > (MAIN::object (is-a B) (OBJECT ?bb) (listofA $?before ?ab $?after)) > (MAIN::object (is-a C) (OBJECT ?cc) (listofB $?before ?bb $?after)) > =>) > > the above rule never activates. Th

Re: JESS: batch problem!!

2006-07-07 Thread friedman_hill ernest j
I think mauricio rincon wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, I'm having problems with a JSP I'm developing in Netbeans, from where I > use a class that charges a .clp file, but i get the next error: > > Jess reported an error in routine batch while executin

Re: JESS: Eclipse plug-in configuration

2006-07-05 Thread friedman_hill ernest j
I think mdean77 wrote: > The reason this may relate to the question in this message is that > BIRT is dependent on GEF 3.2.1.v200606267, so installation of BIRT > will overwrite whatever version of GEF might have been required by > the Jess plugins and features. Perhaps there have been chan

Re: JESS: Problems with Eclipse 3.2 Final Release

2006-07-04 Thread friedman_hill ernest j
I will try to reproduce this, but what do you mean by "disappears?" Do you see anything relevant in the "Error Log" view? I think mdean77 wrote: > I am using most recent Jess distribution with final release of > Eclipse 3.2 and at some point, Jess disappeared. Does not come back > with clean

Re: JESS: Jess and Java Generics

2006-07-02 Thread friedman_hill ernest j
I think Ozsariyildiz, S.S. wrote: > > I will give very general overview that I can think of. > 1) two ways support one implicit support just extension to jess reflection > 2) explicit support making the templates type-checked enums and annotations > defined. May also include definition of met

Re: JESS: Jess and Java Generics

2006-07-02 Thread friedman_hill ernest j
I think Ozsariyildiz, S.S. wrote: > Is there going to be support for Java Generics for the future releases of > JESS? If there is one what are the plans? An interesting question. Jess is weakly typed, and generics are a mechanism for making things more strongly type-checked at compile time; they

Re: Matching multislots with JessTab/ Protege [was: JESS: Help on Jess Rules ..plz]

2006-07-01 Thread friedman_hill ernest j
I think John wrote: > It is fascinating as well as frustrating as solving problem bring forth new > ones. Frustrating, indeed. There are two quite different sets of terminology and concepts all smushed together in this thread (Jess and Protege) and although I can guess at what's being discussed a

Re: JESS: About Jess architecture

2006-07-01 Thread friedman_hill ernest j
I think ben said salma wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > hello, > in the power point pr_sentation, you define the architecture of Jess, can > you please explain the work of every composant. I have; I believe the figure you're referring to is from my book. >i

Re: JESS: JESS API

2006-06-28 Thread friedman_hill ernest j
That would be the jess.Jesp class. I think nicolae oana wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello, > > I newbie in Jess and I need a parser for jess to Java Objects. > Please tell me if something like this exist or not. > > Thanks. > ---

Re: JESS: JessDE and Java

2006-06-27 Thread friedman_hill ernest j
I think James Owen wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > I "think" that one of the older emails (about November 2005) said that > we could NOT integrate Jess with Java. Is that correct and does it > still apply to the latest editions. That one is kind of giving me fit

Re: JESS: Re: Clips vs. Jess: was: Help on Jess Rules ..plz

2006-06-27 Thread friedman_hill ernest j
I think Doug Metzler wrote: > One issue that I noticed with Jess is that it apparently has only > depth first and breadth first conflict resolution. I found that odd > since it has been my impression that the vast majority of programs > written in OPS, Clips, etc. over the years have used MEA or

Re: JESS: rule metadata

2006-06-26 Thread friedman_hill ernest j
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > Is there any concept of arbitrary metadata in Jess. No, unfortunately. This was on the list of features for 7.0 but it's probably going to slip to 7.1. Jason's recommendation to use "phase facts" is pro

Re: JESS: Design and Documentation of Declarative Programs (was Jess and UML)

2006-06-23 Thread friedman_hill ernest j
I think James Owen wrote: > JavaDoc ... XML ... Perl script ... chapter 20 in JIA book All worthy ideas, but I should point out the "official" mechanism, the "documentation comment", which every Jess rule, function, template, etc. can have: (defrule rule-name "This is a documentation

Re: JESS: Help on Jess Rules ..plz

2006-06-23 Thread friedman_hill ernest j
I think John wrote: I hesitate to get involved in this discussion, but perhaps by supplying some of the missing information early on, I can avoid turmoil later. > > Well...let me start will the fundamentals of rule-based programming in both > Jess and CLIPS. Rule-based programming resembles even

Re: JESS: Help with error

2006-06-22 Thread friedman_hill ernest j
gt; On Behalf Of friedman_hill ernest j > Sent: Thursday, June 22, 2006 9:43 AM > To: jess-users@sandia.gov > Subject: Re: JESS: Help with error > > I think Krasnigor, Scott L (N-AST) wrote: > > I am getting the following exception when trying to do a bsave. It is > > occ

Re: JESS: Help with error

2006-06-22 Thread friedman_hill ernest j
I think Krasnigor, Scott L (N-AST) wrote: > I am getting the following exception when trying to do a bsave. It is > occurring when the bsave method is executing oss.writeObject(m_rules). I > don't understand what could be causing this and am looking for any > insight into the issue. I am running Je

Re: JESS: Using fact-id inside ordered facts, JAVA problem

2006-06-21 Thread friedman_hill ernest j
I think Julian Hoch wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > > "Fact--n" means the fact's ID is negative, which can be the case > > before a fact is added to working memory. > > Ah ok thanks. The problem was that I already had added the fact > before, and adding it again

Re: JESS: Jess and UML

2006-06-21 Thread friedman_hill ernest j
I think Matthew J Hutchinson wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Is it possible to convert a design in UML into a structure in JESS, using > facts? *Everything* is possible -- that's what makes life interesting! Now, the question really is: does a tool which does wha

Re: JESS: Help on Jess Rules ..plz

2006-06-21 Thread friedman_hill ernest j
This should work fine if the "resource sequence" multislot contains the actual fact object; if you showed us where you assert the "Hello" fact, then I could probably tell you what's gone wrong. While we're here, I should ask why you're doing this "object/is-a" thing, rather than having a "hello" t

Re: JESS: Using fact-id inside ordered facts, JAVA problem

2006-06-20 Thread friedman_hill ernest j
I think Julian Hoch wrote: > > FactIDValue fvalue = new FactIDValue( fact1 ); > Fact fact2 = new Fact( "MAIN::A", engine ); > fact2.setSlotValue( "__data", fvalue ); There's the mistake right there. __data is a multislot, but you're setting it to s single value. You should be sett

Re: JESS: JessDE classpath-awareness issue (?)

2006-06-19 Thread friedman_hill ernest j
I think Adam Winkler wrote: > > Does this email make sense or should I provide more details on my setup? > Any thoughts on how I should improve things? > Is there a configuration knob I am forgetting? > Is there a place that elaborates the best-practices for Jess source-file > directory structur

Re: JESS: Jess performance question

2006-06-19 Thread friedman_hill ernest j
Hi John, The other folks in this thread have covered some of the same ground in a more theoretical way; let me try to make the discussion more explicit. The point I'm trying to illustrate is that Jess is optimized for cross-correlations between facts, a facility that you *could* use here, but aren

Re: JESS: Modules and facts in MAIN

2006-06-18 Thread friedman_hill ernest j
I think Julian Hoch wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > > I have a little problem with firing rules in different modules > accessing facts in MAIN. > The section http://www.jessrules.com/jess/docs/70/rules.html#defmodules in the Jess manual describes how this

Re: JESS: Java objects to working memory

2006-06-08 Thread friedman_hill ernest j
I think Skeptic 2000 wrote: > I'm using Jess in a multi-agent software where I have to transfer > the content of the received messages from the Java code handling the > communication process to Jess that handle the reasoning process. > > I took a look at the different way to do it (JavaBeans, aser

Re: JESS: Jess User Guide - Chapter 11

2006-06-08 Thread friedman_hill ernest j
I think Andrew Murphy wrote: > Could someone please advise how I can get the complete example code covered > by chapter 11 of the user guide (version 70b7). Thanks It doesn't exist -- at least, it doesn't exist *yet*. - Ernest Friedman-Hill

Re: JESS: ValueVector and hashCode

2006-06-07 Thread friedman_hill ernest j
I think Jon Weygandt wrote: > Regarding Jess version 6. > > I noticed that ValueVector overrides equals but not hashCode. Is this an > oversight or was it intentional? > > I was going to use it as a key to a HashMap inside of a Userfunction. More or less an oversight, I suppose; I can't think

Re: JESS: Jess does not obey JavaBeans-standard?

2000-07-08 Thread friedman_hill ernest j
I think Kai Noponen wrote: > When trying out Jess with Java Beans I realized that Jess does not rely on > standardized method names when manipulating JavaBeans Jess uses java.beans.Introspector, and so it by definition uses the "official" Beans conventions; it will even use a BeanInfo object

Re: JESS: CLASSPATH problem: Can't find .clp files

2000-07-07 Thread friedman_hill ernest j
What you're doing is fine, and is probably working correctly. Modify MyStartClass so that when it catches a JessException, it displays not only the top-level exception, but any nested exception as well, as shown in this clip from jess.Main: catch (JessException re) {

Re: JESS: Asserting facts across engines

2000-07-07 Thread friedman_hill ernest j
I think Alan Moore wrote: > > > In a previous post, I suggested a RHS parser extensibility mechanism where > upon reaching an extensible set of tokens, the parsing/input stream could be > passed along to an associated parser. My original post was motivated by > wanting to do: > > (defrule myRul

Re: JESS: Asserting facts across engines

2000-07-06 Thread friedman_hill ernest j
Also idly ruminating... Yes, I've thought about this. The approach I've considered would basically be to move the (for example) Defrule-building code into the Defrule class, and have the parser just build nested lists of lists and invoke an appropriate re-parsing routine from a table as necessary

Re: Antwort: JESS: Asserting facts across engines

2000-07-06 Thread friedman_hill ernest j
I think [EMAIL PROTECTED] wrote: > > Option B using (fact), yet to be implemented: > > (assert-across-engines ?rete (fact (a-new-fact ?parameter))) > > (2) Asserting the fact in the target engine is straightforward. > > Option A works right out of the box. I'd vote for the introduction of

Re: JESS: Asserting facts across engines

2000-07-06 Thread friedman_hill ernest j
Hi Alan, You're not missing anything obvious; your analysis of the problem is good, and you've figured out for yourself that there's something funny about how Jess's pseudo-LISP is implemented. In a real LISP, all data structures are made out of cons cells, and a list we think of as a function ca

Re: JESS: Getting the Rete instance in java...

2000-07-05 Thread friedman_hill ernest j
Hi Jack, Well, you can't pluck one out of thin air, since createMyFact could theoretically be called from within any one of a dozen Rete objects in an app. The easiest thing to do here would be to give createMyFact a Rete argument, then call it as (call ?SomeClassInstance createMyFact (engine))

Re: JESS: "no such fact" problem

2000-07-05 Thread friedman_hill ernest j
Hi Sebastian, Well, I can think of several possible explanations for your observations. One is that this can happen if you assert a particular Fact object more than once. Once you assert a Fact from Java, the Rete engine "owns" that Fact. You can't make any modifications to it and you can't asse

  1   2   >