From Java you should use
new Value(RU.ATOM, TRUE)
for true, and
new Value(RU.ATOM, FALSE)
for false. As a shortcut, there are constants Funcall.TRUE and
Funcall.FALSE in the jess.Funcall class.
Note also that String constants in Java (and in Jess) use double
quotes, not
]]On
Behalf Of Mahesh Gandhe
Sent: Tuesday, November 27, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: JESS: java.lang.Boolean to Jess Boolean
hi ,
I am writing the java code for the method so that
the method could be invoked in the command line in jess.
The code is as follows
import jess.*;
import
and a BooleanValue class?
Good luck!
alan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mahesh Gandhe
Sent: Tuesday, November 27, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: JESS: java.lang.Boolean to Jess Boolean
hi ,
I am writing
hi ,
thanks a ton.
The code is working fine and my problem is solved.
Regards,
Mahesh G.
[EMAIL PROTECTED] wrote:
From Java you should use new Value(RU.ATOM, "TRUE")for true, and new Value(RU.ATOM, "FALSE")for false. As a shortcut, there are constants Funcall.TRUE andFuncall.FALSE in the
The boolean values in Jess are the atoms TRUE and FALSE. There are
boolean constants you can use in the Funcall class --
jess.Funcall.TRUE and Jess.Funcall.FALSE and public static Value
objects with the appropriate values, or just use new Value(TRUE, RU.ATOM).
I think [EMAIL PROTECTED] wrote:
Sometimes I think that a short course in Boolean Logic might be applicable
BEFORE one engages in the task of writing a rulebased routine. Remember,
"Boole was no foole." :-)
--
ttfn
IHN
Jim
-
James C. Owen
Knowledge-Based Systems Corporation
4817 Buckskin