I found getObjects easier since I use jess java api,
so in one class I request some Objects, in another
class I need to get/update only a specific one,
so perhaps the assignment to facts  and the
calling of modify could not be donw in my opinion on
general way.

Anyway, thanks again!

-John-
> You could write a defquery and run this.
>
> Better still, you define a template
>    (deftemplate DoorNameState (slot name)(slot state))
> and a rule
>    (defrule UpdateDoorState
>      ?dns <- (DoorNameState (name ?n)(state ?s))
>      ?d  <- (Door (name ?n))
>  =>
>     (modify ?d (state ?s))
>    (retract ?dns)
> )
>
> To update, just assert a DoorNameState fact.
>
> -W
>



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