Hello Kevin,
Although I'm not really sure if I understand your question completely, this
is how I handle facts that have objects as parameters:
For example I have an object that represents the predicate Have, with two
slots: the owner and the possession. Owner is an object (of class Being) and
[EMAIL PROTECTED] wrote:
There are many ways you could do this; one simple way is to use the
fetch and store functions. There's an example in section 4.4.4 of the
manual.
I looked at these but they don't show them used in the manner I am
trying to use them and I'm not sure the proper way to
Hi Kevin,
This is mostly just a syntax issue -- both approaches you tried are
perfectly reasonable. Given that you've made the store() call as
described below, the first approach looks like
(defrule fuelLow (fuel ?f:(eq ?f (fetch x1))) = ...
You can use the return value constraint to write
Sorry, i know that´s not a help mailing list but...
any1 can tell me what i need to compile? i need to use javac or what?
whats the jess.jar file?
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: JESS: Installing Jess
Date: Wed, 10 Apr 2002 10:37:28
The manual is really good. Try section 1.1.2. This should explain it very clearly for you. Click here to make it that much easier.
MJ
Did you -read- the sections of the manual that I referred to?
They describe how
1) If you've got a jess.jar file, you don't need to compile anything,
and
2) How to run Jess using the jess.jar file.
I think Joao Domingues wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
Sorry 1 more time but i cant find in manual how can i run jess, using a
jess.jar file
I think that im reading the wrong manual :P
Its the 4.5 ? 5.2 ? 6.0? or 6.1 manual?
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: JESS: Installing Jess
Date: Thu,
Sorry to bother you guys. I found the answer in Jess 5.2 manual
tx
From: Joao Domingues [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: JESS: Installing Jess
Date: Thu, 11 Apr 2002 18:59:18 +0100
Sorry 1 more time but i cant find in manual how can i
Hi ,
I need to call the functions of class in the body and head of the rule.
It gives me not bound error.
(defrule abc
(test (bind ?vt (new java.util.Hashtable)))
(test (call ?vt put key value))
= (call ?vt get "key"))
can you tell me how to use call function in thehead and body part of the
You can't explicitly bind a variable in one pattern and expect to
access it from another -- it won't be there. Similarly, you can't use
bind to bind a value to a variable on the LHS and then use that
variable on the RHS -- again, it won't be there. Jess just doesn't
work that way. There is no
10 matches
Mail list logo