Re: JESS: New to JESS
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 actually part of an Eclipse project. We've covered this before on this mailing list, but I'm surprised to see it's not mentioned in the manual anywhere. We hope to have this working by the final release of Jess 7. I think nikita berdikov wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I have unzipped all plugins in plugin Eclipse directory and yes, i have created a java project. When i try to open *.clp file nothing is happening, see Attach. Also there is my build path (In Attach) What do i do wrong? Thanks in advance --- Matthew Hutchinson [EMAIL PROTECTED] wrote: Hi, having just started using Eclipse myself, I would suggest: - making sure you unzipped all the correct plugins into the correct directory - make sure you create a new *java* project in eclipse, not any other type cheers, Matt On 10/10/05, nikita berdikov [EMAIL PROTECTED] wrote: 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 wrong. And please, show me an example of JESS code in Eclipse. Thanks in advance. __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ 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] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ Content-Description: 263436701-error.PNG [image/x-png is not supported, skipping...] Content-Description: 1585163811-buildPath.PNG [image/x-png is not supported, skipping...] - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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]
Re: JESS: New to JESS
So, please, tell me, how can i make this file part of the project? Thanks --- [EMAIL PROTECTED] wrote: 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 actually part of an Eclipse project. We've covered this before on this mailing list, but I'm surprised to see it's not mentioned in the manual anywhere. We hope to have this working by the final release of Jess 7. I think nikita berdikov wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] I have unzipped all plugins in plugin Eclipse directory and yes, i have created a java project. When i try to open *.clp file nothing is happening, see Attach. Also there is my build path (In Attach) What do i do wrong? Thanks in advance --- Matthew Hutchinson [EMAIL PROTECTED] wrote: Hi, having just started using Eclipse myself, I would suggest: - making sure you unzipped all the correct plugins into the correct directory - make sure you create a new *java* project in eclipse, not any other type cheers, Matt On 10/10/05, nikita berdikov [EMAIL PROTECTED] wrote: 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 wrong. And please, show me an example of JESS code in Eclipse. Thanks in advance. __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ 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] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ Content-Description: 263436701-error.PNG [image/x-png is not supported, skipping...] Content-Description: 1585163811-buildPath.PNG [image/x-png is not supported, skipping...] - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ 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]
Re: JESS: New to JESS
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 wrong. What is wrong, exactly -- i.e., what did you do, what happened, and what did you expect to happen instead? If you install it properly, files named *.clp will be opened in the JessDE Editor; otherwise, nothing much should be different. And please, show me an example of JESS code in Eclipse. You can open any *.clp file in the JessDE editor; you can type in any code in the manual, or open any *.clp files in the examples directory. Thanks in advance. __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ 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] - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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]
Re: JESS: New to JESS
Hi, having just started using Eclipse myself, I would suggest: - making sure you unzipped all the correct plugins into the correct directory - make sure you create a new *java* project in eclipse, not any other type cheers, Matt On 10/10/05, nikita berdikov [EMAIL PROTECTED] wrote: 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 wrong. And please, show me an example of JESS code in Eclipse. Thanks in advance. __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ 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]
RE: JESS: new to jess
I think that Camillo wrote: How I use eq to compare generic objects? Well, first off a bit of listserv etiquette... let's not do an end-run around Ernest here. So if you have a question personally for me, then send it to me at my address below. But every day that Ernest has to answer FAQs is one day that I don't get to play with Charlemagne (Jess 7.0), so whatever I can do (humbly) to help I will. :-D Seriously, this is more of a Java question. Let me quote now from the Jess function link for eq http://herzberg.ca.sandia.gov/jess/docs/61/function_index.html ...Uses the Java Object.equals() function, so can be redefined for external types. There's your answer. You have to roll your own. When you write Java classes that will be compared at some point, it is standard practice to override the equals() method to suit your need. Again, quoting from Practical Java by Peter Haggar, ...An equals method should be provided by a class if equality of an object of that class requires more than a comparison of its object reference. Hope that helps. Cheers, -Jason Jason Morris Morris Technical Solutions [EMAIL PROTECTED] www.morristechnicalsolutions.com fax/phone: 503.692.1088 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Camillo Sent: Tuesday, August 03, 2004 8:06 AM To: [EMAIL PROTECTED] Subject: R: JESS: new to jess Hi Jason, I'm also a new to using jess and I have a trouble... You say to use eq to compare objects,symbols and references. I have this problem: (defrule myRule (myPattern (mySlot slotValue))=...) where slotValue isn't a primitive type but a generic java object bounded to jess variable How I use eq to compare generic objects? I have used this: (defrule myRule (myPattern (myslot ?slotValue:(eq (call ?slotValue getValue) myPrimitiveValue)))=...) but don't works and I think is incorrect however. Can you help me? Thanks Camillo 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] 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]
Re: JESS: new to jess
I think James Owen 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 map table. Of course what jco means is that if you override equals(), you should override hashCode() as well; the details of doing this correctly are spelled out quite clearly in the Javadocs for the Object class. Joshua Bloch's book is, indeed, good as well. - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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]
RE: JESS: new to jess
Oops! Yes, James and Ernest are correct... an error of omission on my part. You do indeed need to override the hashCode() method, too. I was fortunate enough to win a copy of Thinking in Java 3rd ed by Bruce Eckles at my local Java users group. It is available *free* as an electronic book at http://mindview.net/Books/DownloadSites . If you look at Chapter 11: Hashing and Hash Codes you will find the complete example that James mentioned. Just remember that, by default, equals() only compares object references -- for anything else you have to write a custom implementation. Cheers, -JM Jason Morris Morris Technical Solutions [EMAIL PROTECTED] www.morristechnicalsolutions.com fax/phone: 503.692.1088 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 12:42 PM To: [EMAIL PROTECTED] Subject: Re: JESS: new to jess I think James Owen 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 map table. Of course what jco means is that if you override equals(), you should override hashCode() as well; the details of doing this correctly are spelled out quite clearly in the Javadocs for the Object class. Joshua Bloch's book is, indeed, good as well. - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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] 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]
Re: JESS: new to jess
Thanks. I probably shouldn't be allowed to play with computers right now. Not even email. I pulled my back out again and I'm taking muscle relaxers and mild pain killers (ala Rush L.) and I hope I'm not "hooked" by the time that I get well. :-) Anyway, thanks for the correction and that really IS what I meant in the earlier email. Thanks for keeping me "straight." [EMAIL PROTECTED] wrote: I think James Owen 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 map table. Of course what jco means is that if you override equals(), you should override hashCode() as well; the details of doing this correctly are spelled out quite clearly in the Javadocs for the Object class. Joshua Bloch's book is, indeed, good as well. - Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National LabsFAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov 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].
Re: JESS: new to jess
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 map table. There are some examples in Bruce Eckles book. I've forgotten the title and someone borrowed my copy, but ^^ it's available at most book stores and, to my knowledge, is one of the FEW books in Java where you can actually find an example and explanation of rewriting equals and hash map. (Actually, I think, it's the Hashtable, not the Hashmap - although things may have changed with the newer versions of Java Collections. :-) SDG jco Jason Morris wrote: I think that Camillo wrote: How I use eq to compare generic objects? Well, first off a bit of listserv etiquette... let's not do an end-run around Ernest here. So if you have a question personally for me, then send it to me at my address below. But every day that Ernest has to answer FAQs is one day that I don't get to play with Charlemagne (Jess 7.0), so whatever I can do (humbly) to help I will. :-D Seriously, this is more of a Java question. Let me quote now from the Jess function link for eq http://herzberg.ca.sandia.gov/jess/docs/61/function_index.html ...Uses the Java Object.equals() function, so can be redefined for external types. There's your answer. You have to roll your own. When you write Java classes that will be compared at some point, it is standard practice to override the equals() method to suit your need. Again, quoting from Practical Java by Peter Haggar, ...An equals method should be provided by a class if equality of an object of that class requires more than a comparison of its object reference. Hope that helps. Cheers, -Jason Jason Morris Morris Technical Solutions [EMAIL PROTECTED] www.morristechnicalsolutions.com fax/phone: 503.692.1088 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Camillo Sent: Tuesday, August 03, 2004 8:06 AM To: [EMAIL PROTECTED] Subject: R: JESS: new to jess Hi Jason, I'm also a new to using jess and I have a trouble... You say to use eq to compare objects,symbols and references. I have this problem: (defrule myRule (myPattern (mySlot slotValue))=...) where slotValue isn't a primitive type but a generic java object bounded to jess variable How I use eq to compare generic objects? I have used this: (defrule myRule (myPattern (myslot ?slotValue:(eq (call ?slotValue getValue) myPrimitiveValue)))=...) but don't works and I think is incorrect however. Can you help me? Thanks Camillo 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]