| java.lang.Object org.cougaar.planning.ldm.lps.ReceiveTaskLP
ReceiveTaskLP | public class ReceiveTaskLP implements LogicProvider,MessageLogicProvider(Code) | | Take an incoming Task (excepting Rescind task) and
add to the LogPlan w/side-effect of also disseminating to
other subscribers.
Only adds tasks that haven't been seen before, allowing stability
in the face of wire retransmits.
|
execute | public void execute(Directive dir, Collection changes)(Code) | | Adds Task to LogPlan... Side-effect = other subscribers also
updated. If the task is already in the logplan, then there is
probably a change in task preferences. If there is no change in
task preferences, then it might be the case that the sending
agent has undergone a restart and is trying to resynchronize
its tasks. We need to activate the NotificationLP to send the
estimated allocation result for the plan element of the task. We
do this by publishing a change of the plan element (if it
exists).
Also, the received task may have been deleted. If so, complete
the deletion process by actually removing the task from the
blackboard.
|
|
|