| |
|
| org.cougaar.planning.plugin.completion.CompletionPlugin org.cougaar.planning.plugin.completion.CompletionSourcePlugin org.cougaar.planning.plugin.completion.CompletionSocietyPlugin
All known Subclasses: org.cougaar.glm.plugin.completion.GLMCompletionSocietyPlugin,
CompletionSocietyPlugin | abstract public class CompletionSocietyPlugin extends CompletionSourcePlugin (Code) | | This plugin gathers and integrates completion information from
nodes in a society to determine the "completion" of the current
tasks. This plugin should be included only in one agent at the root
of the society such as NCA. When the root determines that
completion has been acheived (or is never going to be achieved), it
advances the clock with the expectation that the advancement will
engender additional activity and waits for the completion of that
work.
|
Inner Class :public interface CompletionAction | |
CompletionSocietyPlugin | public CompletionSocietyPlugin()(Code) | | |
checkTimeAdvance | protected void checkTimeAdvance(boolean haveLaggard)(Code) | | Check if conditions are right for advancing time. There must have
been no laggards for TIME_ADVANCE_DELAY milliseconds. Anytime we
have a laggard, the clock starts over. The clock is also reset
after advancing time to avoid advancing a second time before the
agents have had an opportunity to become laggards due to the
first time advance.
|
getCompletionActions | abstract protected CompletionAction[] getCompletionActions()(Code) | | |
handleNewLaggard | protected void handleNewLaggard(Laggard worstLaggard)(Code) | | |
haveServices | protected boolean haveServices()(Code) | | |
setupSubscriptions | public void setupSubscriptions()(Code) | | |
|
|
|