| org.cougaar.lib.filter.UTILSingleTaskWorkflowPlugin
All known Subclasses: org.cougaar.lib.filter.UTILSingleTaskAllocatorPlugin,
UTILSingleTaskWorkflowPlugin | public interface UTILSingleTaskWorkflowPlugin (Code) | | Defines interface for simple, non-threaded allocators.
I.e. tasks are handled one at a time.
|
Method Summary | |
PlanElement | createAllocation(Task t, Asset a) This method should create the actual allocation.
Child classes are responsible for calculating the
aspect values for the allocation result.
When a task is assigned to an asset, if any preferences
are violated, then the PlanElement that is returned is a
FailedAllocation. | Asset | findAsset(Task t) This method should find the appropriate resource to
handle the given task, usually based on the direct
object of the task. | boolean | interestingTask(Task t) Defines tasks you find interesting. | void | publishAddingOfAllocation(PlanElement allocOrFailedAlloc) |
createAllocation | PlanElement createAllocation(Task t, Asset a)(Code) | | This method should create the actual allocation.
Child classes are responsible for calculating the
aspect values for the allocation result.
When a task is assigned to an asset, if any preferences
are violated, then the PlanElement that is returned is a
FailedAllocation.
It has an AllocationResult w/ isSuccess=False.
Parameters: t - task to allocate Parameters: a - asset to handle the task PlanElement which = Allocation or FailedAllocation |
findAsset | Asset findAsset(Task t)(Code) | | This method should find the appropriate resource to
handle the given task, usually based on the direct
object of the task.
Parameters: t - task to find asset for Asset to handle the task |
interestingTask | boolean interestingTask(Task t)(Code) | | Defines tasks you find interesting.
Parameters: t - Task to check for interest boolean true if task is interesting |
publishAddingOfAllocation | void publishAddingOfAllocation(PlanElement allocOrFailedAlloc)(Code) | | Public version of publishAdd
Parameters: allocOrFailedAlloc - the allocation or FailedAllocation to add... |
|
|