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
>
> 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
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
(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
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
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
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
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
>
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
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:
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
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());
>
>
>
> ----
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
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
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+
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
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
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
18 matches
Mail list logo