.
-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
.
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
. 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
));*
*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
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
*, 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
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
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
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
:
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
on the matches will be more specific.
Any help would be most appreciated.
Thanks.
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
to know the best practice for binding Java objects to Jess
variables so I can assert them to the engine.
Thanks,
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
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
:* 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
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
17 matches
Mail list logo