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

2012-03-12 Thread Hunter McMillen
t; class named "get-next-build-tile" -- surely not what you intended. If > you're just calling a deffunction by this name, then you just want > > (bind ?p (get-next-build-tile)) > > From: Hunter McMillen > Reply-To: > Date: Mon, 12 Mar 2012 12:16:29 -0400 &g

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

2012-03-12 Thread Hunter McMillen
> > And show us what you get; that should narrow it down quite a bit. > > > From: Hunter McMillen > Reply-To: > Date: Fri, 9 Mar 2012 23:10:06 -0500 > To: > Subject: JESS: [EXTERNAL] Jess exception: ' ' is a list, not a string > > I am receiving the error in

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

2012-03-12 Thread Hunter McMillen
util.iterator. > > -W > > > On 10/03/2012, Hunter McMillen 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

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

2012-01-16 Thread Hunter McMillen
(self.getID(), RU.INTEGER));* *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-Hi

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

2012-01-11 Thread Hunter McMillen
etVariable("*PLAYER_ID*", 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 wrot

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

2012-01-11 Thread Hunter McMillen
AYER_ID" *(defrule 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

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 ov

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 wrote: > Nested enums, like nested classes, actually secretly have a name like > "UnitType$UnitTypes". I haven't tried this specifically for enums, but I >

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

2011-12-07 Thread Hunter McMillen
mport 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
ry 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 wrote:

JESS: Ignore slots when matching lhs of rules

2011-11-10 Thread Hunter McMillen
rules on the existence of a Unit. Right now I only want to match on the existence of ANY unit, but later 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
here's always directly > invoking Jess functions from Java. Here we invoke 'add' to add the object > to working memory directly: > > new Funcall("add", engine).arg(new > Value(unit)).execute(engine.getGlobalContext()); > > > > ----

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
t)"); } Basically I want 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
to detail and i wouldn't risk the chance of losing > fidelity. > > > On Wed, Sep 28, 2011 at 2:22 PM, Hunter McMillen wrote: > >> Sorry to pester you with more questions. >> >> The way I am currently doing things in invoking a JVM from C++ to call >> Java cod

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

2011-09-28 Thread Hunter McMillen
back, decoding it as needed. > > > -- > *From:* 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+

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 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, e.g

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

2011-09-27 Thread Hunter McMillen
7, 2011 at 11:58 AM, Dusan Sormaz wrote: > 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++ requir

JESS: Call Jess from C++ via JNI

2011-09-27 Thread Hunter McMillen
ader.java:356) ... 1 more *Questions* 1) Is there some other directory that I am supposed to be including that has the .class files for Jess? Right now all I am including is jess.jar 2) Is the general design I have a good idea? or is there a better way to facilitate communication between Jess and C++? Thanks, Hunter McMillen