Hello,
On Mon, 1 Dec 2008, Wolfgang Laun wrote:
> 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")
>
>
Yes. OK it's my mistake, but this is not the point.
> >
> > 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?
>
How Can I Use getObjects ??
rete.getObjects(new Filter.ByClass(A))??
> 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.
>
How, could you be more analytic?
> Of course, if the number of facts in your WM is small, the pass over all
> facts won't slow you down much.
I don't prefer this solution because I would have a lot of facts.
Thanks for your reply,
Ya sou!
>
> 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]
> > --------------------------------------------------------------------
> >
> >
>
--------------------------------------------------------------------
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]
--------------------------------------------------------------------