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 and
Funcall.FALSE in the jess.Funcall class.

Note also that String constants in Java (and in Jess) use double
quotes, not single quotes.


I think Mahesh Gandhe wrote:
>
> 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 java.lang.*;
>
> public class GreaterThan implements Userfunction
> {
> public String getName() { return "my-upcase";}
> public Value call (ValueVector vv ,Context context) throws JessException
> {
>
> Boolean ret = new Boolean (true);
> return new Value (ret,'TRUE');
> }
>
> }
> }
>
> During compilation it giving error stating that 'TRUE' is not a data type.
>
> can some body tell me how to construct the new JessValue object of
>
> type java.lang.Boolean.
>
>
>
> Regards,
>
> Mahesh G.
>
>
>
>
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.



---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in ! the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------



Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.

Reply via email to