Java Doc for WorkflowImpl.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.core.blackboard.ClaimableImpl
   org.cougaar.planning.ldm.plan.WorkflowImpl

WorkflowImpl
public class WorkflowImpl extends ClaimableImpl implements Workflow,NewWorkflow,java.io.Serializable(Code)
This class implements Workflow


Field Summary
final static  longserialVersionUID
    
protected transient  Vectorsubtasks
    

Constructor Summary
public  WorkflowImpl(MessageAddress owner, UID uid)
    

Method Summary
public  voidaddConstraint(Constraint newConstraint)
    
Parameters:
  newConstraint - addConstraint allows you to add a Constraint to a Workflow.
public synchronized  voidaddTask(Task newTask)
    
public  AllocationResultaggregateAllocationResults()
    
public synchronized  AllocationResultaggregateAllocationResults(List changedSubtaskUIDs)
     This variant is used by the infrastructure (ReceiveNotificationLP) to record the list of changed subtasks contributing to the new allocation result.
public synchronized  ListclearSubTasks()
    
public  booleanconstraintViolation()
    
public synchronized  AllocationResultgetAllocationResult()
    
public  AnnotationgetAnnotation()
    
public  EnumerationgetConstraints()
     Enumeration{Constraint} Enumerate over the constraints.
public  Constraint[]getConstraintsAsArray()
    
public  ConstraintgetNextPendingConstraint()
     Returns first constraint for which the constraining event is defined and constrained event is undefined or violated with respect to constraining event.
public  MessageAddressgetOwner()
    
public  EnumerationgetPairConstraints(Task constrainedTask, Task constrainingTask)
    
public  TaskgetParentTask()
    
public  StringgetParentTaskID()
    
public synchronized  SubtaskResultsgetSubtaskResults()
     get the latest copy of the allocationresults for each subtask. Information is stored in a List which contains a SubTaskResult for each subtask.
public  EnumerationgetTaskConstraints(Task task)
    
Parameters:
  task - - task which you are inquiring about Enumeration{Constraint} Enumerate over constraints that related to the passed in task.
public  StringgetTaskID(int i)
    
public synchronized  String[]getTaskIDs()
    
public  EnumerationgetTasks()
     Get an Enumeration of all subtasks.
public  UIDgetUID()
    
public  EnumerationgetViolatedConstraints()
     Get the constraints that were violated.
public  Constraint[]getViolatedConstraintsAsArray()
    
public  booleanisConstraintPendingOrViolated(Constraint c)
    
public  booleanisConstraintViolated(Constraint c)
    
public  booleanisPropagatingToSubtasks()
    
public  voidremoveConstraint(Constraint constraint)
    
Parameters:
  constraint - the constraint to be removed.
public synchronized  voidremoveTask(Task remTask)
    
public  voidsetAllocationResultAggregator(AllocationResultAggregator aragg)
     sets a specific compute algorithm to use while computing the aggregated allocation results of the workflow.
public  voidsetAnnotation(Annotation pluginAnnotation)
    
public  voidsetConstraints(Enumeration enumofConstraints)
     Note any previous values will be dropped.
Parameters:
  enumofConstraints - setConstraints allows you to set the Enumerationof Constraints of a Workflow.
public  voidsetIsPropagatingToSubtasks(boolean isProp)
    
public  voidsetIsPropagatingToSubtasks()
    
public  voidsetParentTask(Task parentTask)
    
public synchronized  voidsetTasks(Enumeration tasks)
    
public  voidsetUID(UID u)
    
public  voidsetWalkingSubtasks(boolean walking)
    
public  StringtoString()
    

Field Detail
serialVersionUID
final static long serialVersionUID(Code)



subtasks
protected transient Vector subtasks(Code)




Constructor Detail
WorkflowImpl
public WorkflowImpl(MessageAddress owner, UID uid)(Code)




Method Detail
addConstraint
public void addConstraint(Constraint newConstraint)(Code)

Parameters:
  newConstraint - addConstraint allows you to add a Constraint to a Workflow.



addTask
public synchronized void addTask(Task newTask)(Code)

Parameters:
  newTask - addTask allows you to add a Task to a Workflow.



aggregateAllocationResults
public AllocationResult aggregateAllocationResults()(Code)
Calls calculate on the defined AllocationResultAggregator a new AllocationResult representing aggregation ofall subtask results



aggregateAllocationResults
public synchronized AllocationResult aggregateAllocationResults(List changedSubtaskUIDs)(Code)
This variant is used by the infrastructure (ReceiveNotificationLP) to record the list of changed subtasks contributing to the new allocation result.



clearSubTasks
public synchronized List clearSubTasks()(Code)



constraintViolation
public boolean constraintViolation()(Code)
Has a constraint been violated?



getAllocationResult
public synchronized AllocationResult getAllocationResult()(Code)



getAnnotation
public Annotation getAnnotation()(Code)



getConstraints
public Enumeration getConstraints()(Code)
Enumeration{Constraint} Enumerate over the constraints.



getConstraintsAsArray
public Constraint[] getConstraintsAsArray()(Code)



getNextPendingConstraint
public Constraint getNextPendingConstraint()(Code)
Returns first constraint for which the constraining event is defined and constrained event is undefined or violated with respect to constraining event.



getOwner
public MessageAddress getOwner()(Code)



getPairConstraints
public Enumeration getPairConstraints(Task constrainedTask, Task constrainingTask)(Code)

Parameters:
  constrainedTask - - the task being constrained
Parameters:
  constrainingTask - - the task that is constraining another task Enumeration{Constraints} - Constraints that are related to both tasks



getParentTask
public Task getParentTask()(Code)
Task for which this Workflow is an expansion



getParentTaskID
public String getParentTaskID()(Code)



getSubtaskResults
public synchronized SubtaskResults getSubtaskResults()(Code)
get the latest copy of the allocationresults for each subtask. Information is stored in a List which contains a SubTaskResult for each subtask. Each of the SubTaskResult objects contain the following information: Task - the subtask, boolean - whether the result changed, AllocationResult - the result used by the aggregator for this sub-task. The boolean indicates whether the AllocationResult changed since the last time the collection was cleared by the plugin (which should be the last time the plugin looked at the list). List of SubTaskResultObjects one for each subtask



getTaskConstraints
public Enumeration getTaskConstraints(Task task)(Code)

Parameters:
  task - - task which you are inquiring about Enumeration{Constraint} Enumerate over constraints that related to the passed in task.



getTaskID
public String getTaskID(int i)(Code)



getTaskIDs
public synchronized String[] getTaskIDs()(Code)



getTasks
public Enumeration getTasks()(Code)
Get an Enumeration of all subtasks. The subtasks of a workflow is volatile and subject to change at any time (due to rescind of the expansion) to guard against such volatility, the use of the returned Enumeration should be protected by synchronizing on the workflow. E.g.:
 synchronized (wf) {
 Enumeration en = wf.getTasks();
 // Use the en
 }
The code using the enumeration should be brief to avoid locking the workflow for an extended period of time. Enumeration{Task} Enumerate over our subtasks.



getUID
public UID getUID()(Code)
Return the Unique ID number for this object



getViolatedConstraints
public Enumeration getViolatedConstraints()(Code)
Get the constraints that were violated. Enumeration{Constraint}



getViolatedConstraintsAsArray
public Constraint[] getViolatedConstraintsAsArray()(Code)



isConstraintPendingOrViolated
public boolean isConstraintPendingOrViolated(Constraint c)(Code)
true iff the constraint is violated or the constrainedevent is undefined.



isConstraintViolated
public boolean isConstraintViolated(Constraint c)(Code)
true iff the constrained event is defined and theconstraint is violated.



isPropagatingToSubtasks
public boolean isPropagatingToSubtasks()(Code)



removeConstraint
public void removeConstraint(Constraint constraint)(Code)

Parameters:
  constraint - the constraint to be removed.



removeTask
public synchronized void removeTask(Task remTask)(Code)

Parameters:
  remTask - Remove the specified Task from the Workflow's sub-task collection *



setAllocationResultAggregator
public void setAllocationResultAggregator(AllocationResultAggregator aragg)(Code)
sets a specific compute algorithm to use while computing the aggregated allocation results of the workflow. If this method is not called, the allocationresult will be aggregated using the default AllocationResultAggregator (Sum).
Parameters:
  aragg - The AllocationResultAggregator to use.
See Also:   org.cougaar.planning.ldm.plan.AllocationResultAggregator



setAnnotation
public void setAnnotation(Annotation pluginAnnotation)(Code)



setConstraints
public void setConstraints(Enumeration enumofConstraints)(Code)
Note any previous values will be dropped.
Parameters:
  enumofConstraints - setConstraints allows you to set the Enumerationof Constraints of a Workflow.



setIsPropagatingToSubtasks
public void setIsPropagatingToSubtasks(boolean isProp)(Code)



setIsPropagatingToSubtasks
public void setIsPropagatingToSubtasks()(Code)



setParentTask
public void setParentTask(Task parentTask)(Code)

Parameters:
  parentTask - set the parent task



setTasks
public synchronized void setTasks(Enumeration tasks)(Code)

Parameters:
  tasks - set the tasks of the Workflow



setUID
public void setUID(UID u)(Code)



setWalkingSubtasks
public void setWalkingSubtasks(boolean walking)(Code)



toString
public String toString()(Code)



Methods inherited from org.cougaar.core.blackboard.ClaimableImpl
final public Object getClaim()(Code)(Java Doc)
final public String getClaimClassName()(Code)(Java Doc)
final public boolean isClaimed()(Code)(Java Doc)
final public void resetClaim(Object pch)(Code)(Java Doc)
final public void setClaim(Object pch)(Code)(Java Doc)
final public synchronized boolean tryClaim(Object pch)(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.