Re: JESS: Accumulate-CE problem

2005-10-11 Thread ejfried
I think Yura wrote: [Charset koi8-r unsupported, filtering to ASCII...] > Hi > > I've got the following problem with accumulate-CE. The following code works > fine: Although the last "argument" of the accumulate CE is documented as a conditional element, it's actually coded as if it must be a p

Re: JESS: New to JESS

2005-10-11 Thread Matthew Hutchinson
You should have created a workspace, having done this create a new java file, followed by by NEW --> FILE Then just make sure you give the file a .CLP extension and it should be put in your project. (in which case the file name will show up in the left hand pane of Eclipse). good luck, Matt On

Re: JESS: Blackboard Framework

2005-10-11 Thread Alan Davis
I'd like to add to this discussion... I too did my graduate work at Cal Poly SLO, and worked closely with Dr. Myers (in fact he was my masters thesis adviser). The blackboard system we worked on at the time was called Marble, the successor of an earlier BB system named Pebble. If I recall (thi

Re: JESS: Blackboard Framework

2005-10-11 Thread Alan Moore
Scott, Someone else is likely to have a more relevant answer but I thought I'd give my 2 cents worth - it's been a while (15 years?!) so I hope I can remember this correctly... During my graduate studies I worked with Dr. Len Myers and others at CalPoly SLO on a BB based system that used CLI

JESS: Blackboard Framework

2005-10-11 Thread Krasnigor, Scott L (N-AST)
Title: Blackboard Framework I have been asked by the powers to be to investigate using Jess in conjunction with a blackboard framework. I was wondering if anyone out there has any experience with this combination and could provide some insight or could point me to some good resources/examples

JESS: Accumulate-CE problem

2005-10-11 Thread Yura
Hi   I've got the following problem with accumulate-CE. The following code works fine:   (clear)   (deftemplate smth (slot anyth))   (deffacts facts (smth (anyth "x")) (smth (anyth "y")))   (defrule rule  ?data <- (accumulate    (bind ?result (create$))    (bind ?result  (create$ ?resul

Re: JESS: code works from java but not clp file

2005-10-11 Thread Scott Moss
Thanks, Alan. That's a very useful trick. Interestingly, adding "(?ERROR getStackTrace)" to your code caused me another error :-D that I won't bother to follow up for the moment. To get the full stacktrace in 7.0 using the shell or batch files, Dr Friedman-Hill suggests "jess -stacktrace fil

Re: JESS: code works from java but not clp file

2005-10-11 Thread Alan Moore
> I wonder if anyone else running Jess with RePast has encountered a > similar problem. When people have trouble using Jess with one java library or another, such as repast, the problems tend to be generic java problems, e.g. missing library on the classpath, methods throwing exceptions unexpe

Re: JESS: code works from java but not clp file

2005-10-11 Thread Alan Moore
Also, in testing.clp, you can place the following code to help you debug the exception: ;; untested...ymmv (try (bind ?user-agent (new User "harvey")) catch ;; ?ERROR will be the caught throwable (printout t "ERROR = " (?ERROR toString) crlf) (printout t "cause = " ((?ERROR getCause)

Re: JESS: code works from java but not clp file

2005-10-11 Thread Scott Moss
Hi. In starting to sort out how to run Jess from Java as you suggested, I first ran the test file from Jess command line in a bash shell. The error message was now: Jess> (batch testing.clp) (deftemplate MAIN::agent "$JAVA-OBJECT$ org.cfpm.markets.User" (declare (from-class org.cfpm.mark

Re: JESS: New to JESS

2005-10-11 Thread nikita berdikov
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 |

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: code works from java but not clp file

2005-10-11 Thread ejfried
I think Scott Moss wrote: > The setter and getter are: > > public void setAttributedemands(ValueVector attributes) { > attributedemands = attributes; > } > > public ValueVector getAttributedemands() { > return attributedemands; > } > Don't define JavaBean proper

JESS: code works from java but not clp file

2005-10-11 Thread Scott Moss
I have been building an agent based model in parallel directly from Jess (in Eclipse) and from Java. The method that causes the jess (but not Java) error is inherited from the MarketAgent superclass. Code that works in Java but not Jess is this: public class User extends MarketAgent { Val