Re: JESS: [EXTERNAL] Jess Rules and CMD Prompt

2012-04-20 Thread Dusan Sormaz
Show us what you tried to do and error that is displayed, and somebody may be able to help you. Dusan Sormaz On 4/20/2012 10:10 AM, Gianluigi Loffreda wrote: I have a problem with the Jess Installation. Following the jess installation instructions I read that right after the unzip I could

Re: JESS: Call Jess from C++ via JNI

2011-09-28 Thread Dusan Sormaz
Thanks Ernest! I was on the phone call, so you overran me. :-) Dusan Sormaz On 9/27/2011 1:31 PM, Friedman-Hill, Ernest wrote: The problem is here. The Java classpath doesn't list directories in which jar files can be found, but rather, the jar files themselves. The argument should be

Re: JESS: Call Jess from C++ via JNI

2011-09-27 Thread Dusan Sormaz
Hunter, This is not Jess specific question. JVM simply can not find Java class to load. Can you show snippet of the C++ code that starts jvm and tries to load TestJNIJessinvoke? As for overall design, is C++ requirement? Can you do it all in Java? Dusan Sormaz On 9/26/2011 8:51 PM, Hunter

Re: JESS: Error : Calendar or GregorianCalendar in Jess.

2010-02-02 Thread Dusan Sormaz
Yasir, Jess does not interpret string as arguments for the set method. You need to specify each argument, like in: (call ?futureCal set (Calendar.HOUR) 8) where (Calendar.HOUR) is the jess call into static field. Dusan Sormaz Yasir Khalid wrote: Hai There, I am having difficult time to

Re: JESS: Accessing Java objects fields from a defrule

2009-08-21 Thread Dusan Sormaz
-virtualsite "Just put the validate attribute to true!" ?inetModem <- (InetModem (publicIpAddress ?publicIpAddress) (OBJECT ?modemObj) (VirtualSite (inetModem ?modemObj)) => (printout t "Internet modem address: " ?publicIpAddress crlf) ) Du

Re: JESS: How to reference JESS?

2009-04-15 Thread Dusan Sormaz
I usually cite /Jess In Action /book: Friedman-Hill, E., 2003, /Jess In Action/, Manning Publications, Greenwich, CT. Dusan Sormaz Samson Tu wrote: How does one cite JESS in a scientific paper? Thank you. With best regards, Samson

Re: JESS: how to write If else rule

2008-12-11 Thread Dusan Sormaz
assumes that you utilize benefits of rule-based approach, which includes data-driven order of execution. Dusan Sormaz Joao Antunes Mourao wrote: (defrule name-of-the-rule (put here your conditions for the rule, if any) => (if (condition) then (put your things here) ) (if (condition) t

Re: JESS: how to write If else rule

2008-12-10 Thread Dusan Sormaz
is selected to run. Conditions are in the from of patterns which are defined using facts. Order of execution of the rules is defined by set of facts. for more details read Jess manual and books or rule-based programming. Dusan Sormaz hansari wrote: I need rule for if (condtion1) then (act

Re: JESS: Problem with JESSDE in Eclipse

2008-10-23 Thread Dusan Sormaz
Martina, after defining rules, templates and facts you need to run Jess engine. The command is (run) Dusan Sormaz [EMAIL PROTECTED] wrote: Good afternoon, I am quite new in the Jess language programming and I have a little (maybe bigger problem :-(). I use JessDE environment in Eclipse. I

Re: JESS: rule problems

2008-04-01 Thread Dusan Sormaz
show when you load (compile) rules, or when you try to run them. Dusan Sormaz At 05:39 AM 4/1/2008, you wrote: Hello, My question is about if it is possible to assign the same class of objects several times in the same rule. I mean, let say i have a class "Area" and I have multiple fact

Re: JESS: LHS, lists and productions.

2007-09-07 Thread Dusan Sormaz
Ernest, is it overlook or allowed? I though that each independent variable has to have distinct name within a rule. Your fact ?t should be different from template ?t if templates in a multislot are symbols. Dusan Sormaz At 12:11 PM 9/7/2007, you wrote: Same idea: (defrule

Re: JESS: Rule which is always fired

2007-05-24 Thread Dusan Sormaz
Nara, this will fire always (and only once, notice empty set of conditions): (defrule always-rule "executes once in engine" => (printout t "always executed") ) Dusan Sormaz At 01:58 AM 5/24/2007, you wrote: Hi, Is there a standard way to tell Jess that a pa

Re: JESS: Rule Question

2007-04-25 Thread Dusan Sormaz
Jim, show us the complete code of the rule and the fact this new rule may work because ?rvu is smaller than 1, so (or TRUE FALSE) gives true. or with one item works as true value of that item. In your old rule fact had 4.19, and pattern in or had 4.17 which IS different. Dusan Sormaz At

Re: JESS: Passing the rete object from within jess to java

2007-04-08 Thread Dusan Sormaz
Mrinal, it is routinely done, just use it as function: (new chars.Ssomething (engine)) Dusan Sormaz At 11:08 PM 4/7/2007, you wrote: Hi, i have the following rule. (defrule someRule "comment" (Callhome (thing1 ?a)(thing2 ?b)) (test (try (eq ?a ?b)

Re: JESS: Class XMLVisitor question

2007-02-28 Thread Dusan Sormaz
e for this group. Ernest is usually among the first ones to answer to any question. I sometimes wait for him to provide his replies similar to "one-liner' in this case. Dusan Sormaz ***** * Dusan Sormaz, PhD, Associate P

Re: JESS: Modify in JESS 7.0p1

2007-02-15 Thread Dusan Sormaz
(into variables) other slots, eg this would be sufficient (and it is easier to read what you want to match): (defrule aax ?aax <- (farming-cattle (breed "AAX") (duration 0)) => (modify ?aax (duration 5))) Dusan Sormaz At 08:40 PM 2/15/2007, you wrote: Just wonde

Re: JESS: Jess 7.0p1 - eclipse integration

2007-02-15 Thread Dusan Sormaz
mentioned (gov.sandia.jess_7.0.0) will be created for you. Dusan Sormaz At 01:23 PM 2/14/2007, you wrote: Hello List, first of all, sorry for asking *again* about Jess integration into eclipse. I have browsed the list archive but haven't found anything that might help me solve my pr

Re: JESS: Conflict Resolution Question

2007-01-24 Thread Dusan Sormaz
. I hope helps. Dusan Sormaz At 09:15 PM 1/24/2007, you wrote: I have two rule instances on the agenda with the following bindings (I only include their numbers because I believe that is all that is important - maybe that is my problem): Rule1: f-24, f-61, f-23, f-1, f-42 Rule2: f-24, f-61, f-23

Re: JESS: Append to a list of facts

2006-09-27 Thread Dusan Sormaz
and later lists so that they appear starting at the given 1-based index of the first list. Dusan Sormaz At 04:32 PM 9/26/2006, you wrote: I’m sure there’s a simple and efficient way of doing this, but for some reason I’m unable to figure out the solution. On the LHS of my rule, I’ve matched a

Re: JESS: Urgent gensym* question

2006-05-08 Thread Dusan Sormaz
Matt, gensym* is Jess function. Itshould be outside string literal: (bind ?s1 (str-cat "(defrule " (gensym* )   // and then continue the rest of string Dusan Sormaz At 11:21 AM 5/8/2006, you wrote: Hi everyone, In my .clp file I have used (setgen 1) to initialize the gensym counter. T

Re: JESS: list from Jess to Java?

2006-04-06 Thread Dusan Sormaz
Eunice, Jess list corresponds to Java array, so your Java method should take an array as argument. Dusan Sormaz At 10:15 PM 4/5/2006, you wrote: Hello, I have a problem with LIST using Java and Jess. In Java i have the method in the class 'Order' as follow: public static List

Re: JESS: jess and jdbc

2005-03-17 Thread Dusan Sormaz
ing it. Use e.printStackTrace between {}  so that the exception stacj trace is reported in your output. However, I would test this type of work step by step. Test separately jdbc stuff with Java alone (without Jess), and then feed Jess data into it (I do not know if you have already tested tha

Re: JESS: Reversing logic

2005-03-09 Thread Dusan Sormaz
First morning shot on it: De Morgan's laws: (not ( and a b)) == (or (not a) (not b)) Dusan Sormaz At 08:17 PM 3/8/2005, you wrote: Ok, I know that I should know this, but I’m having trouble reasoning through it.  Why do the following two CEs versions produce signific

Re: JESS: Using event handlers

2005-03-05 Thread Dusan Sormaz
eft hand corner. [ ... snipped code ...]   (reset) (run) BTW, you do not need these two statements in your code. They are needed only if you create facts and define rules for rule-based engine.   Jenny Dusan Sormaz * * Du

Re: JESS: distinguishing numbers from other expressions and strings.

2005-02-11 Thread Dusan Sormaz
f (or (= (length$ ?x) 0) (> (length$ ?x) 1)) then     (return FALSE))   ;; Check if the single token is a number   (return (nth$ 1 ?x))) But program still throws exception on numerical compare. Any ideas? Dusan At 10:03 AM 2/11/2005, you wrote: I think Dusan Sormaz wrote: [Charset iso-8859-1 uns

JESS: distinguishing numbers from other expressions and strings.

2005-02-11 Thread Dusan Sormaz
)) FALSE Jess> (stringp "4.5") TRUE Jess> (stringp (new String "4.5")) FALSE Is there a way to do that without try/catch? Dusan Sormaz * * Dušan Šormaz, PhD, Associate Professor  * Ohio

Re: JESS: Defining rules based on facts subcontents

2005-02-10 Thread Dusan Sormaz
Henrique, I tried Timothy's code and it worked on my machine. Can you show us what is the error that signals not working. Unrelated question. I tested this in Eclipse and found out that copy/paste does not work for new Jess file ( I create new .clp file) in JessDE, is this expected behavior or b

Re: JESS: Java GUI in Jess: forgot to include Classpath

2005-02-08 Thread Dusan Sormaz
happen are kept from your message: (set-member ?*constraints* fill GridBagContsraints.NONE) (set-member ?*constraints* anchor GridBagContsraints.EAST) I do not remember what set-member does. Dusan Sormaz  * * Dušan Šormaz, PhD

Re: JESS: Java GUI in Jess: forgot to include Classpath

2005-02-07 Thread Dusan Sormaz
  everybody to see it. Regarding public-ity of method, if it was NOTpublic it would be a problem. I hope that this again helps. Dusan Sormaz At 02:01 PM 2/7/2005, you wrote: hello Professor Sormaz   Regarding my problem ie. class not found error in Jess program.   I had not specified the classpath

Re: JESS: GUI inJess

2005-02-03 Thread Dusan Sormaz
you run Jess? batch file, Eclipse project run, ... At 01:31 AM 2/3/2005, you wrote: Thankyou to Bob Orchard, Dusan Sormaz and Jason Morris for your replies regarding creating a Java interface in JESS.   The missing 's' in 'GridBagContraints'  was indeed a cause for error.   Howeve

Re: JESS: Java Interface in JESS

2005-02-02 Thread Dusan Sormaz
Jenny, At 03:21 AM 2/2/2005, you wrote: Help!!!   I am a beginner at JESS and JAVA (which doesn't make things easier). Try to learn one first and then learn another. You decide which one should be first. I am trying to create an interface in JESS using Java Swings Layout managers but its giving

Re: JESS: new to jess

2004-08-03 Thread Dusan Sormaz
Can we get the full reference for this book. Thanks, Dusan Sormaz At 01:40 PM 8/3/2004, you wrote: One other thing, something that most "old timers" even forget.  :-)  If you re-write equals for a class that already exists or one that you inherit then you have to re-write the hash

Re: JESS: calling an integer or a string

2004-05-27 Thread Dusan Sormaz
You can not mix java and jess. Assuming that getstring() is a method which returns String in your java class, then proper code would be: r.executeCommand("(assert (" + getstring() + "))");   Regards, Dusan Sormaz At 11:31 AM 5/27/2004 +0200, you wrote: hi there, first i w

Re: JESS: Snding the same value between different rules

2004-03-15 Thread Dusan Sormaz
You have to pass value to the same fact (it seems to me that you retract it) or to other fact into 'concept' slot. Dusan Sormaz At 12:59 AM 3/16/2004 +0800, you wrote: Hello How can I have the same value of ?i and ?slot between rule (matching-similar-case) and rule(idea-combination)

Re: JESS: Case Based Reasoning with Rules

2004-02-27 Thread Dusan Sormaz
). Rules perform CBR reasoning cycle. Dusan Sormaz At 10:51 AM 2/27/2004 -0600, you wrote: Hi All,   I have been thinking about Case Based Reasoning (CBR) and it would seem that if a rule-based system could (1) determine which objects it was matching on, (2) use Java reflection to list the object methods

Re: JESS: definstance invoking getter

2004-02-10 Thread Dusan Sormaz
That is because shadow fact uses getters from the object to populate facts slots. Dusan Sormaz At 07:59 AM 2/10/2004 -0800, you wrote: Hey, I noticed some unexpected behavior using definstance() yesterday. I actually have a bug in one of the getters of my Java class resulting in an exception

Re: JESS: problem with modify and assert

2003-12-05 Thread Dusan Sormaz
At 03:50 PM 12/4/2003 -0800, you wrote: I think Dusan Sormaz wrote: > Jess> (fact-slot-value (fact-id 2) radius) > 5.5 > Jess> (modify (fact-id 2) (radius 8.0) ) > > Jess> (fact-slot-value (fact-id 2) radius) > 5.5 > Jess> (call (fact-slot-value (fact-id 2)

JESS: problem with modify and assert

2003-12-04 Thread Dusan Sormaz
(fact-slot-value (fact-id 2) radius) 5.5 Jess> (modify (fact-id 2) (radius 8.0  ) ) Jess> (fact-slot-value (fact-id 2) radius) 5.5 Jess> (call (fact-slot-value (fact-id 2) OBJECT) getRadius) 8.0 Jess> Another related question. If I use shadow facts, and then Assert them in RHS of the

Re: JESS: Help on Jess under the hood! :) ..

2003-11-05 Thread Dusan Sormaz
Let me make acomment on Rete network. Though, algorithm is rather old, 20 years, not many books gave examples and graphs of the network. Few exceptions are: Brownston at all, Programming Expert Systems in OPS5, Addison, 1985 Russel, Norvig, AIMA, Prentice, 1995 Freidman, JIA, Manning, 2003 Dusan

Re: JESS: Help on Jess under the hood! :) ..

2003-11-05 Thread Dusan Sormaz
Mechanism for saving patterns and matchings is rete network. Done by Charels Forgy in his dissertation (1982-3). Good explanation in JIA book, chapter 8. Dusan Sormaz At 05:56 PM 11/5/2003 -0600, you wrote: Hi everybody ... Let assume the following rule base rb, function "save", a

Re: JESS: How to format with \n character?

2003-02-01 Thread Dusan Sormaz
What about lisp's "~%"  ? Somebody writing jess (clips) code would be close to lisp syntax anyway. Dusan Sormaz At 11:41 AM 1/29/2003 -0800, you wrote: Starting with 6.1a2, which includes a completely rewritten "format" implementation, there is a "%n" format c

Re: JESS: Pittburgh Jess Users?

2002-04-16 Thread Dusan Sormaz
Lisp and Jess. Best regards, Dusan Sormaz At 05:06 PM 4/14/2002 -0400, you wrote:  Are you reading this email in the Pittsburgh Area? We at Carnegie Mellon University are thinking about using Jess to build intelligent tutoring systems.  Currently we are advertising for a job listed below looking

Re: JESS: Turkce bilen JESS kullanicisi var mi?

2002-02-27 Thread Dusan Sormaz
Most people on the group do not know Turkish. I think that correspondence in Turkish should be done directly between interested parties. Also, when you reply check to whom you are replying. Dusan Sormaz At 02:56 AM 2/27/02 +0200, you wrote: Merhaba, Harhangi bir turk veya turkce bilen kullanici

RE: JESS: CORRECTION (on OO-Rete paper)

2002-02-06 Thread Dusan Sormaz
Dusan Sormaz At 05:39 PM 2/6/02 -0600, you wrote: Rich, What is the name for book written by Girratanno/Riley book? Thanks David Zhu R & D 918-3428763   *** * Dusan Sormaz, PhD, Assistant Professor  *

Re: JESS: Retracting facts

2002-02-01 Thread Dusan Sormaz
After playing few more tests I got the picture. :--) Dusan Sormaz At 08:09 AM 2/1/02 -0500, you wrote: Ernest, a small observation. This test example does not work because hashCode has been reimplemented inTest class, not because hash code for Test object (used in HashMap) has been changed

Re: JESS: Retracting facts

2002-02-01 Thread Dusan Sormaz
to retrieve the key. There is no method setHashCode () in Object class. Dusan Sormaz At 01:19 PM 1/31/02 -0800, you wrote: Jess assumes (and in this case, the assumption is unwarranted) that any objects in the slots of a fact will have constant hashCode values -- i.e., the hashCode of the contents of

RE: JESS: Need of Rule Based Systems !!!

2000-06-02 Thread Dusan Sormaz
>To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' >in the BODY of a message to [EMAIL PROTECTED], NOT to the >list (use your own address!) List problems? Notify >[EMAIL PROTECTED] >---