Simple Question about execute()
James Livingood
jlivingood at iaconline.com
Mon Jan 15 13:21:17 EST 2007
Hello all,
I am new to Cougaar development and am having trouble with a plugin I
created. My plugin simply monitors objects on the blackboard and puts
them into a Microsoft SQL database.
I've subscribed to the object I want:
HypothesisSub = (IncrementalSubscription)
getBlackboardService().subscribe(HYPOTHESIS_PRED);
And in my execute() I have:
for (Iterator i = HypothesisSub.getAddedCollection().iterator();
i.hasNext();) {
which grabs all the information and puts it into MS SQL.
I get information in my MS SQL when I first subscribe, but not when
objects on the blackboard change. Doesn't execute() run every time an
object (that I have a subscription to) change? If not, what do I have to
do?
Thanks for any information!
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cougaar.org/pipermail/cougaar-developers/attachments/20070115/1734009e/attachment.html
More information about the Cougaar-developers
mailing list