expandTask(Task task) Create the original subtask to be sent to the first supplier in order to fill a SOURCE request.
protected synchronized void
expanderRollup(Expansion expansion) This method provides the fundamental logic for the Multiple Suppliers plugins.
This method is called by the plugin's execute() method when a Source Task's Expansion
is marked as changed.
getNextSupplier(Task task, Organization curSupplier) Get next supplier from a list of suppliers in the WITHSUPPLIERS phrase of a task.
Parameters: task - the Task that contains a list of suppliers in a WITHSUPPLIERS phrase. Parameters: curSupplier - the last supplier that was used.
getSuppliersList(Task task) Sublass implementations should override this method to provide the Vector of Organizations
that should be used as suppliers for this task.
Parameters: task - the task that suppliers are needed for.
protected void
handleChangedTask(Task task) This method is meant to be overridden by subclasses for those instances where
the sublass needs to do processing when a task change is detected.
final public void
setLoggingService(LoggingService bs) rely upon load-time introspection to set these services -
don't worry about revokation.
transactInit() This method is meant to be overridden by subclasses for those instances where
the subclass needs to do any initialization at the beginning of each execute() loop.
Create the original subtask to be sent to the first supplier in order to fill a SOURCE request.
Parameters: task - the SOURCE task that needs to be expanded.
This method provides the fundamental logic for the Multiple Suppliers plugins.
This method is called by the plugin's execute() method when a Source Task's Expansion
is marked as changed. This method will detect if the SOURCE task is completely satisfied.
If not, the next supplier will be identified and that Organization will be sent a task
to help fulfill the SOURCE request. When the SOURCE task is completely satisfied or when
there are no more suppliers to use, this method will rollup the results and notify the original
requester.
Parameters: expansion - the Expansion object that has been marked as changed.
Get next supplier from a list of suppliers in the WITHSUPPLIERS phrase of a task.
Parameters: task - the Task that contains a list of suppliers in a WITHSUPPLIERS phrase. Parameters: curSupplier - the last supplier that was used. the next supplier to use
Sublass implementations should override this method to provide the Vector of Organizations
that should be used as suppliers for this task.
Parameters: task - the task that suppliers are needed for. (ordered) list of Organizations that can serve as supplier for the input Task.
This method is meant to be overridden by subclasses for those instances where
the sublass needs to do processing when a task change is detected.
The defualt implementation of this method does nothing.
Parameters: task - a Task that has marked as changed.
This method is meant to be overridden by subclasses for those instances where
the subclass needs to do any initialization at the beginning of each execute() loop.
The default implementation does nothing.
Methods inherited from org.cougaar.planning.plugin.legacy.SimplePlugin