Use the (get-member) function to access the members of an object,
static or otherwise:

(deffunction getHourOfDay()
        (bind ?calendar (new GregorianCalendar))
        (return (get-member ?calendar HOUR_OF_DAY))
 )


(get) is for Bean properties, not members.


I think Mark Guadagna wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Does anyone know how to access Java Public Static variables from JESS
> 
> ie. Use HOUR_OF_DAY public static constant of the GregorianCalendar
> 
> public class GregorianCalendar extends Calendar 
> {
>       public static final int HOUR_OF_DAY;
> 
>       ...
> 
> }
> 
> (deffunction getHourOfDay()
>       (bind ?calendar (new GregorianCalendar))
>       (return (?calendar get HOUR_OF_DAY))
> )
> 
> How do I specify GregorianCalendar.HOUR_OF_DAY in JESS ?
> 
> Thanks for any help
> 
> -Mark Guadagna
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to