Java Doc for UTILExpand.java in  » Science » Cougaar12_4 » org » cougaar » lib » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.lib.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.lib.util.UTILExpand

UTILExpand
public class UTILExpand (Code)
This class contains utility functions related to subtasks and expansions.


Field Summary
protected  UTILAllocatealloc
    
protected  Loggerlogger
    
protected  UTILPreferencepref
    
protected  UTILPrepPhraseprepHelper
    

Constructor Summary
public  UTILExpand(Logger logger)
    

Method Summary
public  voidaddAuxiliaryQuery(Task parentTask, NewTask subTask)
     Checks the parentTask for AuxiliaryQuery.
public  NewTaskcloneTask(PlanningFactory ldmf, Task taskToClone)
     Clone a task.
public  EnumerationcreateDividedPreferences(PlanningFactory ldmf, Task t, Date begin, Date end, Logger logger)
    
public  voidhandleTask(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, Task t, List subtasks)
     This method Expands the given Task.
public  voidhandleTask(PlanningFactory ldmf, BlackboardService blackboard, String pluginName, boolean wantConfidence, Task t, List subtasks)
    
public  ExpansionhandleTaskPrime(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, boolean myExtraOutput, Task t, List subtasks)
    
public  ExpansionhandleTaskPrime(PlanningFactory ldmf, BlackboardService blackboard, String pluginName, boolean wantConfidence, boolean myExtraOutput, Task t, List subtasks)
    
public  ExpansionmakeExpansion(PlanningFactory ldmf, Workflow wf)
     Creates the Expansion.
public  ExpansionmakeExpansionWithConfidence(PlanningFactory ldmf, Workflow wf)
     Creates the Expansion.
public  ExpansionmakeFailedExpansion(UTILPlugin creator, PlanningFactory ldmf, Task t)
     Creates a failed Expansion.
public  NewTaskmakeSubTask(PlanningFactory ldmf, Plan plan, Task parent, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)
     Create a subtask.
public  NewTaskmakeSubTask(PlanningFactory ldmf, Plan plan, UID parent_uid, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)
     Create a subtask.
public  NewTaskmakeSubTask(PlanningFactory ldmf, Task parent, Asset obj, MessageAddress source)
     Create a subtask, using fields from parent task For when you just want a copy of the parent task with a different direct object.
public  WorkflowmakeWorkflow(PlanningFactory ldmf, List subtasks, Task parent)
    
public  WorkflowmakeWorkflow(PlanningFactory ldmf, List subtasks, AllocationResultAggregator ara, Task parent)
     Create a new Workflow from the subtask(s)
Parameters:
  ldmf - the PlanningFactory
Parameters:
  subtasks - a vector of subtasks
Parameters:
  ara - subclass of AllocationResultAggregator, which allows clients toredefine how the allocation results of subtasks are rolled upinto an aggregate result.
protected  Stringprint(AspectValue av, Preference pref)
    
protected  Stringprint(Preference pref)
    
protected  StringprintEndTime(Task t, AspectValue av)
    
protected  StringprintEndTime(Task t)
    
public  voidsetAlloc(UTILAllocate alloc)
    
public  voidsetPropagateRescinds(boolean p)
    
public  voidshowExpansion(Expansion exp)
    
public  voidshowPlanElement(Task subTask)
    
protected  voidshowPlanElement(Task subTask, int taskNum)
    
public  voidshowPreferences(Task t, AspectValue[] aspects)
    
public  voidshowPreferences(Task t)
    

Field Detail
alloc
protected UTILAllocate alloc(Code)



logger
protected Logger logger(Code)



pref
protected UTILPreference pref(Code)



prepHelper
protected UTILPrepPhrase prepHelper(Code)




Constructor Detail
UTILExpand
public UTILExpand(Logger logger)(Code)




Method Detail
addAuxiliaryQuery
public void addAuxiliaryQuery(Task parentTask, NewTask subTask)(Code)
Checks the parentTask for AuxiliaryQuery. If a query exists, then propagate the query to the subtask. Since not all subtasks need to propagate the query, this is not automatically part of the makeSubTask. Only call this when needed.
Parameters:
  parentTask -
Parameters:
  subTask -



cloneTask
public NewTask cloneTask(PlanningFactory ldmf, Task taskToClone)(Code)
Clone a task. Used in handling rescinds.
Parameters:
  ldmf - the PlanningFactory
Parameters:
  taskToClone - the task to be cloned cloned copy of the original task
See Also:   org.cougaar.lib.filter.UTILAllocatorPluginAdapter



createDividedPreferences
public Enumeration createDividedPreferences(PlanningFactory ldmf, Task t, Date begin, Date end, Logger logger)(Code)



handleTask
public void handleTask(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, Task t, List subtasks)(Code)
This method Expands the given Task.
Parameters:
  ldmf - the LDMFactory
Parameters:
  plugin - the PluginDelegate
Parameters:
  pluginName - string representation of the plugin's name
Parameters:
  t - the task to be expanded.
Parameters:
  subtasks - the expanded subtasks



handleTask
public void handleTask(PlanningFactory ldmf, BlackboardService blackboard, String pluginName, boolean wantConfidence, Task t, List subtasks)(Code)



handleTaskPrime
public Expansion handleTaskPrime(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, boolean myExtraOutput, Task t, List subtasks)(Code)
who uses this anymore anyway? TOPS?



handleTaskPrime
public Expansion handleTaskPrime(PlanningFactory ldmf, BlackboardService blackboard, String pluginName, boolean wantConfidence, boolean myExtraOutput, Task t, List subtasks)(Code)
who uses this anymore anyway? TOPS?



makeExpansion
public Expansion makeExpansion(PlanningFactory ldmf, Workflow wf)(Code)
Creates the Expansion. Sets the estimated allocation result of the plan element to NULL.
Parameters:
  ldmf - PlanningFactory
Parameters:
  wf - a workflow Expansion



makeExpansionWithConfidence
public Expansion makeExpansionWithConfidence(PlanningFactory ldmf, Workflow wf)(Code)
Creates the Expansion. Estimated allocation result of the expansion is set to the values of the best values of the task, with a confidence of MEDIUM_CONFIDENCE (0.5).
Parameters:
  ldmf - PlanningFactory
Parameters:
  wf - a workflow Expansion
See Also:   UTILAllocate.MEDIUM_CONFIDENCE



makeFailedExpansion
public Expansion makeFailedExpansion(UTILPlugin creator, PlanningFactory ldmf, Task t)(Code)
Creates a failed Expansion. Sets the estimated allocation result of the plan element to an empty failed alloc result.
Parameters:
  ldmf - PlanningFactory
Parameters:
  t - task to make a failed expansion for Expansion



makeSubTask
public NewTask makeSubTask(PlanningFactory ldmf, Plan plan, Task parent, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)(Code)
Create a subtask. For when you want to be able to set all the fields of the new task. If you just want to set a new direct object for the task, see the other makeSubTask.
Parameters:
  ldmf - the PlanningFactory
Parameters:
  plan - the log plan
Parameters:
  parent - the parent task
Parameters:
  verb - the verb
Parameters:
  prepphrases - PrepositionalPhrases
Parameters:
  obj - the direct object
Parameters:
  preferences - for sub task
Parameters:
  priority - of task
Parameters:
  source - the cluster originating the task NewTask



makeSubTask
public NewTask makeSubTask(PlanningFactory ldmf, Plan plan, UID parent_uid, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)(Code)
Create a subtask. For when you want to be able to set all the fields of the new task. If you just want to set a new direct object for the task, see the other makeSubTask.
Parameters:
  ldmf - the LdmFactory
Parameters:
  plan - the log plan
Parameters:
  parent_uid - the parent task UID
Parameters:
  verb - the verb
Parameters:
  prepphrases - the PrepositionalPhrases
Parameters:
  obj - the direct object
Parameters:
  preferences - for sub task
Parameters:
  priority - of task
Parameters:
  source - the cluster originating the task NewTask



makeSubTask
public NewTask makeSubTask(PlanningFactory ldmf, Task parent, Asset obj, MessageAddress source)(Code)
Create a subtask, using fields from parent task For when you just want a copy of the parent task with a different direct object.
Parameters:
  ldmf - the PlanningFactory
Parameters:
  parent - the parent task
Parameters:
  obj - the direct object
Parameters:
  source - the cluster originating the task NewTask



makeWorkflow
public Workflow makeWorkflow(PlanningFactory ldmf, List subtasks, Task parent)(Code)
Create a new Workflow from the subtask(s)
Parameters:
  ldmf - the LdmFactory
Parameters:
  subtasks - a vector of subtasks
Parameters:
  parent - task of this workflow expansion Workflow a workflow containing the subtasks



makeWorkflow
public Workflow makeWorkflow(PlanningFactory ldmf, List subtasks, AllocationResultAggregator ara, Task parent)(Code)
Create a new Workflow from the subtask(s)
Parameters:
  ldmf - the PlanningFactory
Parameters:
  subtasks - a vector of subtasks
Parameters:
  ara - subclass of AllocationResultAggregator, which allows clients toredefine how the allocation results of subtasks are rolled upinto an aggregate result.
Parameters:
  parent - task of this workflow expansion Workflow a workflow containing the subtasks
See Also:   org.cougaar.planning.ldm.plan.AllocationResultAggregator



print
protected String print(AspectValue av, Preference pref)(Code)



print
protected String print(Preference pref)(Code)



printEndTime
protected String printEndTime(Task t, AspectValue av)(Code)



printEndTime
protected String printEndTime(Task t)(Code)



setAlloc
public void setAlloc(UTILAllocate alloc)(Code)



setPropagateRescinds
public void setPropagateRescinds(boolean p)(Code)



showExpansion
public void showExpansion(Expansion exp)(Code)



showPlanElement
public void showPlanElement(Task subTask)(Code)



showPlanElement
protected void showPlanElement(Task subTask, int taskNum)(Code)



showPreferences
public void showPreferences(Task t, AspectValue[] aspects)(Code)



showPreferences
public void showPreferences(Task t)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.