Java Doc for UTILAllocationListener.java in  » Science » Cougaar12_4 » org » cougaar » lib » callback » 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.callback 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.lib.callback.UTILAllocationListener

All known Subclasses:   org.cougaar.logistics.plugin.trans.base.SequentialPlannerPlugin,  org.cougaar.glm.plugins.tools.GLMTestingStimulatorPlugin,
UTILAllocationListener
public interface UTILAllocationListener extends UTILFilterCallbackListener(Code)
Interface defining what to do when an allocation changes. Paired with UTILAllocationCallback.
See Also:   org.cougaar.lib.callback.UTILAllocationCallback
See Also:   org.cougaar.lib.callback.UTILExpansionListener
See Also:   org.cougaar.lib.callback.UTILAggregationListener




Method Summary
 voidhandleRemovedAlloc(Allocation alloc)
     Called when an allocation is removed from the cluster. I.e.
 booleanhandleRescindedAlloc(Allocation alloc)
     What to do with a rescinded allocation.
 voidhandleSuccessfulAlloc(Allocation alloc)
     What to do with a successful allocation.
 booleaninterestingNotification(Task t)
     Filter for task notifications on allocations that are interesting.
 booleanneedToRescind(Allocation alloc)
     Defines conditions for rescinding tasks.
 voidpublishRemovalOfAllocation(Allocation alloc)
     Public version of publishRemove Called when needToRescind returns TRUE.
 voidupdateAllocationResult(PlanElement cpe)
     Default implementation automatically moves the reported allocation result (AR) to the estimated AR on a plan element that was previously allocated.



Method Detail
handleRemovedAlloc
void handleRemovedAlloc(Allocation alloc)(Code)
Called when an allocation is removed from the cluster. I.e. an upstream cluster removed an allocation, and this has resulted in this allocation being removed. If the plugin maintains some local state of the availability of assets, it should update them here.



handleRescindedAlloc
boolean handleRescindedAlloc(Allocation alloc)(Code)
What to do with a rescinded allocation. See comment on UTILAllocatorPluginAdapter.needToRescind. Implementers need to take into consideration that the asset chosen last time is not available this time.
Parameters:
  alloc - the allocation that has been rescinded true if handled
See Also:   UTILAllocationListener.needToRescind
See Also:   org.cougaar.lib.filter.UTILAllocatorPluginAdapter.needToRescind



handleSuccessfulAlloc
void handleSuccessfulAlloc(Allocation alloc)(Code)
What to do with a successful allocation. For implementers who DON'T extend UTILPluginAdapter, this is equivalent to updateAllocationResult and therefore should be implemented with an empty body. Called after updateAllocationResult when needToRescind returns FALSE. Implementers need to take into consideration that the asset chosen last time is not available this time.
Parameters:
  alloc - the returned successful allocation
See Also:   UTILAllocationListener.needToRescind
See Also:   org.cougaar.lib.filter.UTILAllocatorPluginAdapter.needToRescind



interestingNotification
boolean interestingNotification(Task t)(Code)
Filter for task notifications on allocations that are interesting.
Parameters:
  t - task to check for notification boolean true if task is interesting



needToRescind
boolean needToRescind(Allocation alloc)(Code)
Defines conditions for rescinding tasks. When returns TRUE, handleRescindedAlloc is called. See comment on UTILAllocatorPluginAdapter.needToRescind.
Parameters:
  alloc - allocation to check for boolean true if task needs to be rescinded
See Also:   UTILAllocationListener.handleRescindedAlloc
See Also:   org.cougaar.lib.filter.UTILAllocatorPluginAdapter.needToRescind



publishRemovalOfAllocation
void publishRemovalOfAllocation(Allocation alloc)(Code)
Public version of publishRemove Called when needToRescind returns TRUE.
Parameters:
  alloc - the allocation to remove...



updateAllocationResult
void updateAllocationResult(PlanElement cpe)(Code)
Default implementation automatically moves the reported allocation result (AR) to the estimated AR on a plan element that was previously allocated. Called when needToRescind returns FALSE. (This is the COUGAAR notification mechanism.)
Parameters:
  cpe - the PlanElement that needs to be updated.
See Also:   UTILAllocationListener.needToRescind



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