Java Doc for NewTask.java in  » Science » Cougaar12_4 » org » cougaar » planning » ldm » plan » 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.planning.ldm.plan 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.planning.ldm.plan.NewTask

All known Subclasses:   org.cougaar.planning.ldm.plan.TaskImpl,
NewTask
public interface NewTask extends Task,NewPlanningDirective(Code)
NewTask Interface Provide setters for building Task objects. Task is the essential "execute" directive, instructing a subordinate or service provider to plan and eventually accomplish a task. A the general form of a task is: Verb DirectObject {PrepositionalPhrase}* per Schedule per Constraints

Note that these accessors are only well defined with respect to threading and Blackboard transactions prior to the close of the transaction in which the Task is added.





Method Summary
 voidaddObservableAspect(int aspectType)
    
 voidaddPreference(Preference aPreference)
     alias for setPreference.
 voidaddPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)
     Adds a PrepositionalPhrase to the existing set of PrepositionalPhrases of the task - an existing PrepositionalPhrases with the same Preposition will be replaced.
 voidsetAuxiliaryQueryTypes(int[] thetypes)
     Set the collection of AuxiliaryQueryTypes that the task is requesting information on.
 voidsetCommitmentDate(Date commitDate)
     Set the Commitment date of this task.
 voidsetContext(Context context)
     Set the problem Context of this task.
 voidsetDeleted(boolean newDeleted)
    
 voidsetDirectObject(Asset dobj)
     Sets the Asset (or AssetGroup) that is being acted upon by the Task.
 voidsetParentTask(Task pt)
    
 voidsetParentTaskUID(UID ptuid)
     Sets the base or parent task of a given task, where the given task is an expansion of the base task.
 voidsetPlan(Plan aPlan)
     The Plan slot is unused and will be removed.
 voidsetPreference(Preference thePreference)
     Set just one preference in the task's preference list.
 voidsetPreferences(Enumeration thepreferences)
     set the preferences on this task.
 voidsetPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)
     Makes the parameter the single prepositional phrase of the task.
 voidsetPrepositionalPhrases(Enumeration enumOfPrepPhrase)
     Sets the prepositional phrases of the Task.
 voidsetPrepositionalPhrases(PrepositionalPhrase aPrepPhrase)
     Makes the parameter the single prepositional phrase of the task.
 voidsetPriority(byte thepriority)
     Set the priority of this task.
 voidsetVerb(Verb aVerb)
     The setVerb method sets the verb of the Task. For example, in the Task "fuel vehicles...", the Verb is the object represented by "fuel".
Parameters:
  aVerb - - The verb of the Task.
 voidsetWorkflow(Workflow aWorkflow)
     Set the Workflow that the task is a member of. All Tasks are members of a Workflow.



Method Detail
addObservableAspect
void addObservableAspect(int aspectType)(Code)
Add to the collection of observable aspect types



addPreference
void addPreference(Preference aPreference)(Code)
alias for setPreference. Multiple preferences of the same type are not allowed so setPreference and addPreference are equivalent.



addPrepositionalPhrase
void addPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)(Code)
Adds a PrepositionalPhrase to the existing set of PrepositionalPhrases of the task - an existing PrepositionalPhrases with the same Preposition will be replaced.
Parameters:
  aPrepPhrase - - The Prep Phrase of the Task.



setAuxiliaryQueryTypes
void setAuxiliaryQueryTypes(int[] thetypes)(Code)
Set the collection of AuxiliaryQueryTypes that the task is requesting information on. This information will be returned in the AllocationResult of this task's disposition. Note that this method clears all previous types.
Parameters:
  thetypes - A collection of defined AuxiliaryQueryTypes
See Also:   org.cougaar.planning.ldm.plan.AuxiliaryQueryType



setCommitmentDate
void setCommitmentDate(Date commitDate)(Code)
Set the Commitment date of this task. After this date, the task is not allowed to be rescinded or re-planned (change in preferences).
Parameters:
  commitDate -



setContext
void setContext(Context context)(Code)
Set the problem Context of this task.
See Also:   org.cougaar.planning.ldm.plan.Context



setDeleted
void setDeleted(boolean newDeleted)(Code)
Set the deleted status of this task



setDirectObject
void setDirectObject(Asset dobj)(Code)
Sets the Asset (or AssetGroup) that is being acted upon by the Task. For example, in the task "fuel vehicle 14 ..." the direct object is "vehicle 14".
Parameters:
  dobj - - The DirectObject of the Task.



setParentTask
void setParentTask(Task pt)(Code)



setParentTaskUID
void setParentTaskUID(UID ptuid)(Code)
Sets the base or parent task of a given task, where the given task is an expansion of the base task. The parent task could be "move vehicles from point a to point b ...". An expanded task could be "fuel vehicles ...".
Parameters:
  ptuid - - Task that is the "parenttask"



setPlan
void setPlan(Plan aPlan)(Code)
The Plan slot is unused and will be removed.



setPreference
void setPreference(Preference thePreference)(Code)
Set just one preference in the task's preference list. Implicit collection of detailed Task.PreferenceChangeReport instances.



setPreferences
void setPreferences(Enumeration thepreferences)(Code)
set the preferences on this task. Implicit collection of generic Task.PreferenceChangeReport instances. Implicit collection of detailed ChangeReports without old value.
Parameters:
  thepreferences -



setPrepositionalPhrase
void setPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)(Code)
Makes the parameter the single prepositional phrase of the task. Any previously-set prepositional phrases are dropped.

A PrepositionalPhrase object contains a String representation of the preposition (from, to, with, etc.) and an object representing the indirect object. The indirect object can be an Asset (or AssetGroup), a Location (or two) or a Capabiltiy. For example, in the task "UnitA requisitions commodityB from UnitC"... the PrepositionalPhrase is "from UnitC".
Parameters:
  aPrepPhrase - - The Prep Phrase of the Task.




setPrepositionalPhrases
void setPrepositionalPhrases(Enumeration enumOfPrepPhrase)(Code)
Sets the prepositional phrases of the Task. A PrepositionalPhrase object contains a String representation of the preposition (from, to, with, etc.) and an object representing the indirect object. The indirect object can be an Asset (or AssetGroup), a Location (or two) or a Capabiltiy. For example, in the task "UnitA requisitions commodityB from UnitC"... the PrepositionalPhrase is "from UnitC".
Parameters:
  enumOfPrepPhrase - - The Prep Phrases of the Task.



setPrepositionalPhrases
void setPrepositionalPhrases(PrepositionalPhrase aPrepPhrase)(Code)
Makes the parameter the single prepositional phrase of the task. Any previously-set prepositional phrases are dropped.

A PrepositionalPhrase object contains a String representation of the preposition (from, to, with, etc.) and an object representing the indirect object. The indirect object can be an Asset (or AssetGroup), a Location (or two) or a Capabiltiy. For example, in the task "UnitA requisitions commodityB from UnitC"... the PrepositionalPhrase is "from UnitC".
Parameters:
  aPrepPhrase - - The Prep Phrase of the Task.




setPriority
void setPriority(byte thepriority)(Code)
Set the priority of this task. Note that this should only be used when there are competing tasks from the SAME customer.
Parameters:
  thepriority -
See Also:   org.cougaar.planning.ldm.plan.Priority



setVerb
void setVerb(Verb aVerb)(Code)
The setVerb method sets the verb of the Task. For example, in the Task "fuel vehicles...", the Verb is the object represented by "fuel".
Parameters:
  aVerb - - The verb of the Task.



setWorkflow
void setWorkflow(Workflow aWorkflow)(Code)
Set the Workflow that the task is a member of. All Tasks are members of a Workflow. The tasks that are expansions of a basetask are placed in one workflow. For example, the fueltask will be a member of a workflow that contains all of the tasks and constraints needed to complete the basetask.
Parameters:
  aWorkflow - - The Workflow of the Task.



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