Please read my questions below:

On Mon, 17 Nov 2008, Wolfgang Laun wrote:

> The Jess User Manual 5.3.2 explains about the OBJECT slot in shadow facts
> which you
> get in addition to those derived from the Java class fields. It contains a
> reference to the
> Java object. Chapter 8 contains details about calling methods on Java
> objects.
> For instance,
>    (?door setState "open")


How can I get the state for the specific Door in another defrule?

Do you mean with the OBJECT slot that a slot door has been created?
If i need to setState for all Doors how can I do that??


Many thanks!

> is equivalent to Java's
>    Door door = ...;
>    ...
>    door.setState( "open" );
>
>
> On Mon, Nov 17, 2008 at 2:35 PM, John Chrysakis <[EMAIL PROTECTED]>wrote:
>
> >
> > And what door symbols??  Could you be more specific
> > of using OBJECT ?door please?
> >
> >
> > One of my ideas is to pass the name of each instance a
> >
> > On Mon, 17 Nov 2008, Ernest Friedman-Hill wrote:
> >
> > > (defrule open-door
> > >      (Door  {state == "closed"} (OBJECT ?door))
> > >      =>
> > >      (?door setState "open"))
> > >
> > > On Nov 17, 2008, at 5:33 AM, John Chrysakis wrote:
> > >
> > > >
> > > > Hello to jess community,
> > > >
> > > > I am having a question.
> > > >
> > > > Till now I have used shadow facts through jess api to develop a rule
> > > > base system. In eaSrch defrule where I need one slot the corresponding
> > > > getXXX method was called to retrieve its value. e.g getstate() for
> > > > the slot state.
> > > > Example of defrule: (Door  {state == "closed"}) => ...
> > > >
> > > >
> > > > Now I need to set the slot from a defule. How Can I Do that?
> > > > I have a setstate method but how should I write the rule?
> > > >
> > > > thanks in advance!
> > > >
> > > >
> > > > John CH.
> > > >
> > > >
> > > > --------------------------------------------------------------------
> > > > 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
> > > Informatics & Decision Sciences, Sandia National Laboratories
> > > PO Box 969, MS 9012, Livermore, CA 94550
> > > http://www.jessrules.com
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --------------------------------------------------------------------
> > > 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]
> > > --------------------------------------------------------------------
> > >
> > >
> >
> >
> > --------------------------------------------------------------------
> > 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]
> > --------------------------------------------------------------------
> >
> >
>


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