private bool RaiseEventForNotice(Notice n) { NoticeIsReadyToBeExecutedEventArgs args = new NoticeIsReadyToBeExecutedEventArgs(); args.Agents = n.GetTopDesireAgents(); args.Notice = n; if (NoticeIsReadyToBeExecutedEvent != null) NoticeIsReadyToBeExecutedEvent(this, args); foreach (NabfAgent a in n.GetTopDesireAgents()) { foreach (Notice no in _agentToNotice[a]) { if (no.ContentIsEqualTo(n)) continue; UnApplyToNotice(no, a); } } return true; }