| org.cougaar.lib.vishnu.client.custom.CustomVishnuAllocatorPlugin org.cougaar.logistics.plugin.trans.TranscomVishnuPlugin
All known Subclasses: org.cougaar.logistics.plugin.trans.TranscomRouterVishnuPlugin,
Method Summary | |
protected void | addExpectedProviders() | protected boolean | allNecessaryAssetsReported() | protected XMLizer | createXMLizer(boolean direct) | protected void | execute() Calls processTasks if any delayed tasks left to process. | protected Collection | getAllAssets() | protected String | getOrganizationRole(Asset asset) | public void | handleAssignment(org.cougaar.planning.ldm.plan.Task task, Asset asset, Date start, Date end, Date setupStart, Date wrapupEnd, String contribs, String taskText) | public void | handleChangedAssets(Enumeration newAssets) Sort through assets to make sure we have the proper subordinates. | public void | handleNewAssets(Enumeration newAssets) | public boolean | interestingTask(Task t) Is the task interesting to the plugin? This is the inner-most part of
the predicate. | public void | localSetup() | protected void | prepareData(List stuffToSend, Document objectFormatDoc) Overridden to provide check for missing assets. | public void | processTasks(List tasks) If necessary subordinates have not reported yet, accumulates tasks into
a delayedTasks list, and asks to be kicked again in 10 seconds, by which
time hopefully the subordinates have reported. | protected void | reportMissingAssets() |
waitTime | protected long waitTime(Code) | | |
addExpectedProviders | protected void addExpectedProviders()(Code) | | |
allNecessaryAssetsReported | protected boolean allNecessaryAssetsReported()(Code) | | |
createXMLizer | protected XMLizer createXMLizer(boolean direct)(Code) | | use the TranscomDataXMLize XMLizer
|
execute | protected void execute()(Code) | | Calls processTasks if any delayed tasks left to process.
|
getOrganizationRole | protected String getOrganizationRole(Asset asset)(Code) | | calls TranscomDataXMLize
|
handleChangedAssets | public void handleChangedAssets(Enumeration newAssets)(Code) | | Sort through assets to make sure we have the proper subordinates.
Parameters: newAssets - new assets found in the container |
interestingTask | public boolean interestingTask(Task t)(Code) | | Is the task interesting to the plugin? This is the inner-most part of
the predicate.
By default, it ignores tasks produced from this plugin
If you redefine this, it's good to call this using super.
Parameters: t - - the task begin checked See Also: org.cougaar.lib.callback.UTILGenericListener.interestingTask |
localSetup | public void localSetup()(Code) | | |
prepareData | protected void prepareData(List stuffToSend, Document objectFormatDoc)(Code) | | Overridden to provide check for missing assets. Calls super first.
Parameters: stuffToSend - - initially the list of tasks to send to scheduler Parameters: objectFormatDoc - - optional object format used by data xmlizersto determine types for fields when running directly |
processTasks | public void processTasks(List tasks)(Code) | | If necessary subordinates have not reported yet, accumulates tasks into
a delayedTasks list, and asks to be kicked again in 10 seconds, by which
time hopefully the subordinates have reported.
Solves the race condition between tasks showing up and subordinates showing up.
Parameters: tasks - to process |
reportMissingAssets | protected void reportMissingAssets()(Code) | | |
|
|