On Mon, Dec 1, 2008 at 4:56 PM, John Chrysakis <[EMAIL PROTECTED]>wrote:
>
> Hello again,
>
>
> I need to update each time a specific shadowFact which that has been
> instantiated earlier.
> in another point of my java code.
>
> A a1 = new a1 ("namea1");
> A a2 = new a1 ("namea2");
This must be ... new A("namea1")
>
> Could you suggest me a method to do that?
>
> I need something like updateObject (Specific instance which has name ==
> "namea2");
>
> I found the getObjects method but I'm not sure how it can be used... Could
> you please provide me a short example with the use of getObjects
> and Filters?
I could do that, but the example suggests that the name attribute is
a unique key to an object. If these objects are static once they have been
created
or the retract actions aren't all over the place you might consider keeping
a Map
as a static variable within that class A which maps the name to A objects.
Of course, if the number of facts in your WM is small, the pass over all
facts won't slow you down much.
Ya'sou!
-W
>
>
> Thanks in advance,
>
> Have a nice month!!
>
>
>
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
>
>