Re: JESS: [EXTERNAL] Jess exception: ' ' is a list, not a string

2012-03-12 Thread Hunter McMillen
. -W On 10/03/2012, Hunter McMillen mcmil...@gmail.com wrote: I am receiving the error in the subject line when one of my rules is firing. I can't seem to find any other forum posts about it, here is my rule: (defrule build-supply-depot (minerals (value ?x:( ?x 100))) = (try

Re: JESS: [EXTERNAL] Jess exception: ' ' is a list, not a string

2012-03-12 Thread Hunter McMillen
. From: Hunter McMillen mcmil...@gmail.com Reply-To: jess-users@sandia.gov Date: Fri, 9 Mar 2012 23:10:06 -0500 To: jess-users@sandia.gov Subject: JESS: [EXTERNAL] Jess exception: ' ' is a list, not a string I am receiving the error in the subject line when one of my rules is firing. I

Re: JESS: [EXTERNAL] Jess exception: ' ' is a list, not a string

2012-03-12 Thread Hunter McMillen
. If you're just calling a deffunction by this name, then you just want (bind ?p (get-next-build-tile)) From: Hunter McMillen mcmil...@gmail.com Reply-To: jess-users@sandia.gov Date: Mon, 12 Mar 2012 12:16:29 -0400 To: jess-users@sandia.gov Subject: Re: JESS: [EXTERNAL] Jess exception

Re: JESS: [EXTERNAL] How to negate a variable when in lhs of a rule

2012-01-16 Thread Hunter McMillen
));* *engine.addDefglobal(playerIDGlobal);* * * And now everything seems to be working fine, Just out of curiosity though how does Jess infer types of variables when it is matching on the lhs of rules? Thanks, Hunter McMillen On Wed, Jan 11, 2012 at 6:04 PM, Friedman-Hill, Ernest ejfr...@sandia.govwrote

JESS: [EXTERNAL] How to negate a variable when in lhs of a rule

2012-01-11 Thread Hunter McMillen
enemyUnitSeen * * (unit (ID ?id) (typeID ?typeID) (player ~?PLAYER_ID))* *=* * .)* * * How can I specify anything other than ?PLAYER_ID on the lhs of a rule? Thanks, Hunter McMillen

Re: JESS: [EXTERNAL] How to negate a variable when in lhs of a rule

2012-01-11 Thread Hunter McMillen
*, new Value(player.getID());* and everything works fine. Does* getGlobalContext().setVariable(...)* define global variables implicitly? or do you have to include the asterisks like I did? Thanks. Hunter McMillen On Wed, Jan 11, 2012 at 3:13 PM, Friedman-Hill, Ernest ejfr...@sandia.govwrote

JESS: [EXTERNAL] Iterate over a Java List in Jess

2011-12-13 Thread Hunter McMillen
Is there anyway to iterate over a Java List object from Jess? I have a Java object that I store in a Jess variable: engine.getGlobalContext().setVariable(bwapi, new Value(bwapi)); one of the methods that can be called on bwapi returns a Java ArrayList, and I would like to be able to iterate

Re: JESS: [EXTERNAL] Access public enum inside of a class

2011-12-08 Thread Hunter McMillen
Thanks very much that worked perfectly. Hunter McMillen On Wed, Dec 7, 2011 at 5:10 PM, Friedman-Hill, Ernest ejfr...@sandia.govwrote: Nested enums, like nested classes, actually secretly have a name like UnitType$UnitTypes. I haven't tried this specifically for enums, but I suspect

JESS: [EXTERNAL] Access public enum inside of a class

2011-12-07 Thread Hunter McMillen
eisbot.proxy.types.UnitType.UnitTypes));* an error occurs,* java.lang.ClassNotFoundException: eisbot.proxy.types.UnitType.UnitTypes* I am curious as to how I could go about accessing an enum that is inside of a Java class from Jess. any help would be appreciated. Thanks Hunter McMillen

Re: [EXTERNAL] Re: JESS: Ignore slots when matching lhs of rules

2011-11-11 Thread Hunter McMillen
: You need not worry about the object fields you don't care about when matching the unit fact in a rule. By definition, only slots used in the pattern matter; all others are literally don't care. -W On 11 November 2011 04:57, Hunter McMillen mcmil...@gmail.com wrote: Hi everyone, I am trying

JESS: Ignore slots when matching lhs of rules

2011-11-10 Thread Hunter McMillen
on the matches will be more specific. Any help would be most appreciated. Thanks. Hunter McMillen

Re: JESS: Is it possible to bind a Java object directly to a Jess variable without creating a new object?

2011-11-07 Thread Hunter McMillen
'add' to add the object to working memory directly: new Funcall(add, engine).arg(new Value(unit)).execute(engine.getGlobalContext()); -- *From:* owner-jess-us...@sandia.gov [mailto:owner-jess-us...@sandia.gov] *On Behalf Of *Hunter McMillen *Sent:* Friday

JESS: Is it possible to bind a Java object directly to a Jess variable without creating a new object?

2011-11-04 Thread Hunter McMillen
to know the best practice for binding Java objects to Jess variables so I can assert them to the engine. Thanks, Hunter McMillen

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

2011-10-03 Thread Hunter McMillen
. On Wed, Sep 28, 2011 at 2:22 PM, Hunter McMillen mcmil...@gmail.comwrote: Sorry to pester you with more questions. The way I am currently doing things in invoking a JVM from C++ to call Java code that calls/interacts with Jess code, but it turns out that someone has actually created

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

2011-09-28 Thread Hunter McMillen
Thanks a lot! That was exactly what was going wrong. Hunter On Tue, Sep 27, 2011 at 1:31 PM, Friedman-Hill, Ernest ejfr...@sandia.govwrote: ** 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

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

2011-09-28 Thread Hunter McMillen
:* owner-jess-us...@sandia.gov [mailto:owner-jess-us...@sandia.gov] *On Behalf Of *Hunter McMillen *Sent:* Monday, September 26, 2011 8:51 PM *To:* jess-users *Subject:* JESS: Call Jess from C++ via JNI Hello everyone, I am working on a project where I am using a C++ framework and API

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

2011-09-27 Thread Hunter McMillen
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 McMillen wrote: Hello everyone, I am working