Java Doc for TaskImpl.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.PlanningDirectiveImpl
   org.cougaar.planning.ldm.plan.TaskImpl

All known Subclasses:   org.cougaar.planning.ldm.plan.MPTaskImpl,
TaskImpl
public class TaskImpl extends PlanningDirectiveImpl implements Task,NewTask,Cloneable,ActiveSubscriptionObject,java.io.Serializable(Code)
Implementation of Task. Tasks that were created by Expanders are part of a Workflow. Tasks are the basic unit of Planning Domain work.


Field Summary
public transient  PropertyChangeSupportpcs
    
final static  longserialVersionUID
    

Constructor Summary
public  TaskImpl(UID uid)
    
public  TaskImpl()
    

Method Summary
public  voidaddObservableAspect(int aspectType)
    
public  voidaddPreference(Preference aPreference)
    
public  voidaddPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)
     Adds a PrepositionalPhrase to the list of PrepositionalPhrases.
public  voidaddPropertyChangeListener(PropertyChangeListener pcl)
    
public  voidaddingToBlackboard(Subscriber s, boolean commit)
    
public  booleanbeforeCommitment(Date currentdate)
     Check to see if the current time is before the Commitment date. Will return true if we have not reached the commitment date. Will return true if the commitment date is undefined (null) Will return false if we have passed the commitment date.
Parameters:
  currentdate - The current date.
public  voidchangingInBlackboard(Subscriber s, boolean commit)
    
public synchronized  Objectclone()
    
public  booleanequals(Object ob)
    
public  AnnotationgetAnnotation()
    
public  int[]getAuxiliaryQueryTypes()
     Get a list of the requested AuxiliaryQueryTypes (int).
public  DategetCommitmentDate()
     WARNING: This date may be null if it is undefined Get the Commitment date of this task.
public  ContextgetContext()
    
public  AssetgetDirectObject()
    
public  EnumerationgetObservableAspects()
    
public  MessageAddressgetOwner()
    
public  StringgetParentTaskID()
    
public  UIDgetParentTaskUID()
    
public synchronized  PlanElementgetPlanElement()
     Returns PlanElement that this Task is associated with.
public  UIDgetPlanElementID()
    
public  StringgetPlanName()
    
public synchronized  PreferencegetPreference(int aspect_type)
    
public synchronized  PreferencegetPreferenceFromArray(int i)
    
public  EnumerationgetPreferences()
    
public synchronized  Preference[]getPreferencesAsArray()
    
public  doublegetPreferredValue(int aspect_type)
    
public  PrepositionalPhrasegetPrepositionalPhrase(String preposition)
    
public  PrepositionalPhrasegetPrepositionalPhraseFromArray(int i)
    
public  EnumerationgetPrepositionalPhrases()
    
public  PrepositionalPhrase[]getPrepositionalPhrasesAsArray()
    
public  bytegetPriority()
     Get the priority of this task.
public  UIDgetUID()
    
public  VerbgetVerb()
    
public  StringgetVerbName()
    
public  WorkflowgetWorkflow()
    
public  inthashCode()
    
public  booleanisDeleted()
    
public synchronized  booleanprivate_updatePreferences(TaskImpl that)
     ONLY for infrastructure! Compare the preferences from two tasks, updating this.preferences to match that.preferences only if needed.
public synchronized  voidprivately_resetPlanElement()
     This method clears the PlanElement associated with this Task.
public  voidprivately_setDestination(MessageAddress dest)
    
public synchronized  voidprivately_setPlanElement(PlanElement pe)
     This method sets the PlanElement associated with this Task.
public  voidremovePropertyChangeListener(PropertyChangeListener pcl)
    
public  voidremovingFromBlackboard(Subscriber s, boolean commit)
    
public  voidsetAnnotation(Annotation pluginAnnotation)
    
public  voidsetAuxiliaryQueryTypes(int[] thetypes)
     Set the collection of AuxiliaryQueryTypes that the task is requesting information on.
public  voidsetCommitmentDate(Date commitDate)
     Set the Commitment date of this task.
public  voidsetContext(Context context)
    
public  voidsetDeleted(boolean newDeleted)
    
public  voidsetDestination(MessageAddress dest)
    
public  voidsetDirectObject(Asset dobj)
    
public  voidsetParentTask(Task pt)
    
public  voidsetParentTaskUID(UID uid)
    
public synchronized  voidsetPreference(Preference p)
    
public synchronized  voidsetPreferences(Enumeration thepreferences)
     set the preferences on this task.
public  voidsetPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)
    
public  voidsetPrepositionalPhrases(Enumeration enumOfPrepPhrase)
    
public  voidsetPrepositionalPhrases(PrepositionalPhrase aPrepPhrase)
    
public  voidsetPriority(byte thepriority)
     Set the priority of this task.
public  voidsetSource(MessageAddress asource)
    
public  voidsetUID(UID uid)
    
public  voidsetVerb(Verb aVerb)
    
public  voidsetWorkflow(Workflow aWorkflow)
    
public  StringtoString()
    

Field Detail
pcs
public transient PropertyChangeSupport pcs(Code)



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
TaskImpl
public TaskImpl(UID uid)(Code)
Constructor that takes no args



TaskImpl
public TaskImpl()(Code)
empty constructor used by clone and externalizable




Method Detail
addObservableAspect
public void addObservableAspect(int aspectType)(Code)



addPreference
public void addPreference(Preference aPreference)(Code)
add a preference to the already existing preference list
Parameters:
  aPreference -



addPrepositionalPhrase
public void addPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)(Code)
Adds a PrepositionalPhrase to the list of PrepositionalPhrases.
Parameters:
  aPrepPhrase -



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pcl)(Code)



addingToBlackboard
public void addingToBlackboard(Subscriber s, boolean commit)(Code)



beforeCommitment
public boolean beforeCommitment(Date currentdate)(Code)
Check to see if the current time is before the Commitment date. Will return true if we have not reached the commitment date. Will return true if the commitment date is undefined (null) Will return false if we have passed the commitment date.
Parameters:
  currentdate - The current date. boolean



changingInBlackboard
public void changingInBlackboard(Subscriber s, boolean commit)(Code)



clone
public synchronized Object clone()(Code)



equals
public boolean equals(Object ob)(Code)



getAnnotation
public Annotation getAnnotation()(Code)



getAuxiliaryQueryTypes
public int[] getAuxiliaryQueryTypes()(Code)
Get a list of the requested AuxiliaryQueryTypes (int).
See Also:   org.cougaar.planning.ldm.plan.AuxiliaryQueryType



getCommitmentDate
public Date getCommitmentDate()(Code)
WARNING: This date may be null if it is undefined Get the Commitment date of this task. After this date, the task is not allowed to be rescinded or re-planned (change in preferences). Date



getContext
public Context getContext()(Code)



getDirectObject
public Asset getDirectObject()(Code)
Asset - directObject of the task



getObservableAspects
public Enumeration getObservableAspects()(Code)



getOwner
public MessageAddress getOwner()(Code)



getParentTaskID
public String getParentTaskID()(Code)



getParentTaskUID
public UID getParentTaskUID()(Code)
Task - return parent task



getPlanElement
public synchronized PlanElement getPlanElement()(Code)
Returns PlanElement that this Task is associated with. Can be used to discern between expandable and non-expandable Tasks. If Task has no PlanElement associated with it, will return null.



getPlanElementID
public UID getPlanElementID()(Code)



getPlanName
public String getPlanName()(Code)



getPreference
public synchronized Preference getPreference(int aspect_type)(Code)
return the preference for the given aspect type will return null if there is not a preference defined for this aspect type
Parameters:
  aspect_type - The Aspect referenced by the preference Preference



getPreferenceFromArray
public synchronized Preference getPreferenceFromArray(int i)(Code)



getPreferences
public Enumeration getPreferences()(Code)



getPreferencesAsArray
public synchronized Preference[] getPreferencesAsArray()(Code)



getPreferredValue
public double getPreferredValue(int aspect_type)(Code)
return the preferred value for a given aspect type from the defined preference (and scoring function) will return Double.NaN if there is not a preference defined for this aspect type
Parameters:
  aspect_type - The Aspect referenced by the preference double



getPrepositionalPhrase
public PrepositionalPhrase getPrepositionalPhrase(String preposition)(Code)



getPrepositionalPhraseFromArray
public PrepositionalPhrase getPrepositionalPhraseFromArray(int i)(Code)



getPrepositionalPhrases
public Enumeration getPrepositionalPhrases()(Code)
Enum{PrepositionalPhrase} - The prepositional phrase(s) of the task



getPrepositionalPhrasesAsArray
public PrepositionalPhrase[] getPrepositionalPhrasesAsArray()(Code)



getPriority
public byte getPriority()(Code)
Get the priority of this task. byte The priority of this task
See Also:   org.cougaar.planning.ldm.plan.Priority



getUID
public UID getUID()(Code)



getVerb
public Verb getVerb()(Code)
Verb verb or action of task (move from move 152 tanks)



getVerbName
public String getVerbName()(Code)



getWorkflow
public Workflow getWorkflow()(Code)
Workflow that this task is a part of



hashCode
public int hashCode()(Code)



isDeleted
public boolean isDeleted()(Code)



private_updatePreferences
public synchronized boolean private_updatePreferences(TaskImpl that)(Code)
ONLY for infrastructure! Compare the preferences from two tasks, updating this.preferences to match that.preferences only if needed. true IFF the preferences were changed in this.



privately_resetPlanElement
public synchronized void privately_resetPlanElement()(Code)
This method clears the PlanElement associated with this Task.



privately_setDestination
public void privately_setDestination(MessageAddress dest)(Code)



privately_setPlanElement
public synchronized void privately_setPlanElement(PlanElement pe)(Code)
This method sets the PlanElement associated with this Task.



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pcl)(Code)



removingFromBlackboard
public void removingFromBlackboard(Subscriber s, boolean commit)(Code)



setAnnotation
public void setAnnotation(Annotation pluginAnnotation)(Code)



setAuxiliaryQueryTypes
public 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.
Parameters:
  thetypes - A collection of defined AuxiliaryQueryTypes
See Also:   org.cougaar.planning.ldm.plan.AuxiliaryQueryType



setCommitmentDate
public 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
public void setContext(Context context)(Code)



setDeleted
public void setDeleted(boolean newDeleted)(Code)



setDestination
public void setDestination(MessageAddress dest)(Code)



setDirectObject
public void setDirectObject(Asset dobj)(Code)

Parameters:
  dobj - - set the directObject



setParentTask
public void setParentTask(Task pt)(Code)

Parameters:
  pt -



setParentTaskUID
public void setParentTaskUID(UID uid)(Code)



setPreference
public synchronized void setPreference(Preference p)(Code)
Set just one preference in the task's preference list *



setPreferences
public synchronized void setPreferences(Enumeration thepreferences)(Code)
set the preferences on this task.
Parameters:
  thepreferences -



setPrepositionalPhrase
public void setPrepositionalPhrase(PrepositionalPhrase aPrepPhrase)(Code)
Set the prepositional phrase (note singularity)
Parameters:
  aPrepPhrase -



setPrepositionalPhrases
public void setPrepositionalPhrases(Enumeration enumOfPrepPhrase)(Code)

Parameters:
  enumOfPrepPhrase - - set the prepositional phrases



setPrepositionalPhrases
public void setPrepositionalPhrases(PrepositionalPhrase aPrepPhrase)(Code)
Set the prepositional phrase (note singularity)
Parameters:
  aPrepPhrase -



setPriority
public void setPriority(byte thepriority)(Code)
Set the priority of this task.
Parameters:
  thepriority -
See Also:   org.cougaar.planning.ldm.plan.Priority



setSource
public void setSource(MessageAddress asource)(Code)



setUID
public void setUID(UID uid)(Code)



setVerb
public void setVerb(Verb aVerb)(Code)

Parameters:
  aVerb - set the verb or action of a task



setWorkflow
public void setWorkflow(Workflow aWorkflow)(Code)

Parameters:
  aWorkflow - setWorkflow



toString
public String toString()(Code)



Methods inherited from org.cougaar.planning.ldm.plan.PlanningDirectiveImpl
public Plan getPlan()(Code)(Java Doc)
public void setPlan(Plan p)(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.