Loopy Triggers

Stuart Lowry (sclowry@teton.ncsc.mil)
Wed, 02 Dec 1998 15:20:07 -0500

I have a two part question regarding the "constraint" on the trigger API
that I hope someone can help me with. I am writing an agent called
'trader' that sets a trigger to capture all events. I am filtering out
my own events as the constraint to avoid a continuous loop. My problem
is that there may be other agents that set Triggers to capture all the
events like too (like a "monitor").

I am setting the constraint like the following:
constraint = "(KS\\== trader )";

question a/
How do I include more than 1 KS to constrian...I tried the following
with no luck: constraint = "[(KS\\== trader ),(KS \\== monitor )]"; but
that did not work.

question b/
Fortunately my trader knew about an agent called "monitor" that was
setting a similar trigger. Is there a rule of thumb that agents like
these should advertise themselves as a type of "class" and that the
similar agents can filter out events that originate from this similar
class of agents?