> > If i need to setState for all Doors how can I do that??
> >
>
> Just write a rule that matches all doors and set the state to closed.
> (defrule allClosed
>   (Door (OBJECT ?door))
> =>
>   (?door setState "closed")
> )
>
> Or use a def query...
>


Excuse me,but does the above rule mean that each instance of door
will be set to closed???

So, If I would like to set the state in a specific door named Door1 then
is it correct the following rule?

 (defrule allClosed
   (Door (OBJECT ?door) (door == "Door1) )
  =>
    (?door setState "closed") )

thanks a lot for your replies so far!


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