| java.lang.Object org.cougaar.tools.csmart.ui.servlet.TranslateUtils
TranslateUtils | final public class TranslateUtils (Code) | | Translate UniqueObject s to PropertyTree s.
|
Method Summary | |
public static PropertyTree | toPropertyTree(Object o, String agent) Translate the given Object s into an equivalent
PropertyTree . | public static PropertyTree | toPropertyTree(UniqueObject uo, String agent) Return property trees for Tasks, PlanElements, Assets and Workflows. | public static PropertyTree | toPropertyTree(Task task, String agent) Return a PropertyTree for a task. | public static PropertyTree | toPropertyTree(Workflow wf, String agent) | public static PropertyTree | toPropertyTree(PlanElement pe, String agent) | public static PropertyTree | toPropertyTree(Expansion exp, String agent) | public static PropertyTree | toPropertyTree(Allocation alloc, String agent) | public static PropertyTree | toPropertyTree(Aggregation agg, String agent) | public static PropertyTree | toPropertyTree(Disposition disp, String agent) | public static PropertyTree | toPropertyTree(AssetTransfer atr, String agent) | public static PropertyTree | toPropertyTree(Asset asset, String agent) This always returns the property tree for an asset. | public static List | toPropertyTrees(List objects, String agent) Translate all the Object s in the given List
into PropertyTree s.
Simply uses toPropertyTree(Object).
Parameters: objects - a List of Objects Parameters: agent - the name of the Agent (MessageAddress) for these Objects; i.e. | public static String | trimAngles(String input) |
toPropertyTree | public static PropertyTree toPropertyTree(Object o, String agent)(Code) | | Translate the given Object s into an equivalent
PropertyTree . The Object must be an instance of
org.cougaar.core.util.UniqueObject or this will return null.
Parameters: o - an Object to convert into a PropertyTree Parameters: agent - the name of the Agent (MessageAddress) for this Object a PropertyTree, or null if an error occurred |
toPropertyTree | public static PropertyTree toPropertyTree(UniqueObject uo, String agent)(Code) | | Return property trees for Tasks, PlanElements, Assets and Workflows.
If object is not one of these, then returns null.
|
toPropertyTree | public static PropertyTree toPropertyTree(Task task, String agent)(Code) | | Return a PropertyTree for a task.
Parameters: task - the task for which to return a property tree Parameters: agent - the name of the agent a non-null PropertyTree |
toPropertyTree | public static PropertyTree toPropertyTree(Asset asset, String agent)(Code) | | This always returns the property tree for an asset.
In most cases, non-local agent assets should be ignored;
this is the responsibility of the caller.
The agent in the property tree returned is always the agent in which
this code is executing.
Assets with clusterPG also return an ASSET_AGENT
which is the agent ID in asset.getClusterPG().getMessageAddress
|
toPropertyTrees | public static List toPropertyTrees(List objects, String agent)(Code) | | Translate all the Object s in the given List
into PropertyTree s.
Simply uses toPropertyTree(Object).
Parameters: objects - a List of Objects Parameters: agent - the name of the Agent (MessageAddress) for these Objects; i.e. the name of the agent in which this code is executing a List of non-null PropertyTrees; list may be empty, but is not null |
|
|