| java.lang.Object org.cougaar.lib.util.UTILAsset
All known Subclasses: org.cougaar.glm.util.AssetUtil,
UTILAsset | public class UTILAsset (Code) | | This class contains utility functions for getting
Assets.
|
containsAssetGroup | public boolean containsAssetGroup(Asset asset)(Code) | | Utility function to determine if an asset is or contains
an AssetGroup at any level of its hierarchy.
Parameters: asset - the asset. true iff the asset is or contains an AssetGroup |
createInstance | public Asset createInstance(LDMServesPlugin ldm, String prototypeName, String bumperno)(Code) | | Creates an instance of an LDM object from a prototype.
An LDM Prototype is like the "idea" of an object.
Parameters: ldm - - ldm prototype manager Parameters: prototypeName - - name of the prototype, e.g. "DC-10" Parameters: bumperno - - the unique identifier assigned to the returned instance. an LDM asset, null if no prototype prototypeName is known |
expandAssetGroup | public Vector expandAssetGroup(AssetGroup group)(Code) | | Break up an asset group into individual assets. This
is a utility wrapper around a private function
to make the input/output nicer to deal with.
NOTE : Convoys are AssetGroups, so the contents of a convoy
will also appear on the result list.
Parameters: group - AssetGroup to divide Vector of sub-objects |
findClosestRoleScheduleTask | public Task findClosestRoleScheduleTask(RoleSchedule rs, Date time, boolean check_backwards)(Code) | | Looks for Allocation (is this correct?) plan element that contains
a task immediately previous (check_backwards is true) or after (false)
the time given in the RoleSchedule.
Do we need to check the role in this allocation as well?
null if no task found |
getItemName | public String getItemName(Asset item)(Code) | | utility methods for accessing ItemIdentification of an asset
Parameters: item - an asset String representing the ItemIdentification of the asset |
getTypeName | public String getTypeName(Asset item)(Code) | | utility methods for accessing TypeIdentification of an asset
Parameters: item - an asset String representing the TypeIdentification of the asset |
makeAssetGroup | final public AssetGroup makeAssetGroup(PlanningFactory root, Vector v)(Code) | | Given a vector of objects, it creates an asset group
containing those objects.
Parameters: root - can be gotten from the getLDM() method inherited from PluginAdapter. Parameters: v - a Vector of assets to be grouped AssetGroup |
|
|