| org.cougaar.lib.filter.UTILSingleTaskAllocatorPlugin org.cougaar.logistics.plugin.trans.TransportAllocatorPlugin
All known Subclasses: org.cougaar.logistics.plugin.trans.GroundTransportAllocatorPlugin,
TransportAllocatorPlugin | public class TransportAllocatorPlugin extends UTILSingleTaskAllocatorPlugin (Code) | |
Plugin that looks for TRANSIT or TRANSPORT tasks.
Will just allocate the task to whatever asset
is hanging off the WITH prep, since this plugin is meant to paired
with and fire after a VishnuAggregatorPlugin. That plugin
indicates the assignment of task to asset by attaching the WITH prep.
|
Method Summary | |
public PlanElement | createAllocation(Task t, Asset a)
Do the actual allocation here
If the asset is an organization, allocate with a MEDIUM confidence, otherwise,
use a HIGH confidence. | public Asset | findAsset(Task t) | protected Asset | getAssetFromTask(Task combinedTask) | public boolean | interestingTask(Task t)
This plugin is interested in tasks with verb TRANSIT or TRANSPORT
The task must also have the VISHNU prep attached, indicating that the Vishnu
plugin upstream has created the task. | public void | processTasks(List tasks) Deal with the tasks that we have accumulated. |
createAllocation | public PlanElement createAllocation(Task t, Asset a)(Code) | |
Do the actual allocation here
If the asset is an organization, allocate with a MEDIUM confidence, otherwise,
use a HIGH confidence.
Uses two aspects : START and END time.
Parameters: t - the task to allocate Parameters: a - the asset to allocate to the allocation |
findAsset | public Asset findAsset(Task t)(Code) | | determines the asset that is allocated to
|
getAssetFromTask | protected Asset getAssetFromTask(Task combinedTask)(Code) | | looks at the task's WITH prep to get the asset -- was attached by the aggregator
|
interestingTask | public boolean interestingTask(Task t)(Code) | |
This plugin is interested in tasks with verb TRANSIT or TRANSPORT
The task must also have the VISHNU prep attached, indicating that the Vishnu
plugin upstream has created the task.
Parameters: t - task to check to see if it is an input task to this plugin |
processTasks | public void processTasks(List tasks)(Code) | | Deal with the tasks that we have accumulated.
Find the asset that is attached to the task
(in agents with this plugin the vishnu aggregator makes
the task->asset assignment, encoded as a WITH preposition),
make an allocation, and publish the allocation.
Parameters: List - of tasks to handle See Also: TransportAllocatorPlugin.getAssetFromTask |
|
|