Java Doc for TranscomVishnuPlugin.java in  » Science » Cougaar12_4 » org » cougaar » logistics » plugin » trans » 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.logistics.plugin.trans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.lib.vishnu.client.custom.CustomVishnuAllocatorPlugin
   org.cougaar.logistics.plugin.trans.TranscomVishnuPlugin

All known Subclasses:   org.cougaar.logistics.plugin.trans.TranscomRouterVishnuPlugin,
TranscomVishnuPlugin
public class TranscomVishnuPlugin extends CustomVishnuAllocatorPlugin (Code)


Field Summary
protected  ListdelayedTasks
    
protected  SetexpectedIDs
    
protected  SetreportedIDs
    
protected  TranscomDataXMLizetranscomDataXMLizer
    
protected  longwaitTime
    


Method Summary
protected  voidaddExpectedProviders()
    
protected  booleanallNecessaryAssetsReported()
    
protected  XMLizercreateXMLizer(boolean direct)
    
protected  voidexecute()
     Calls processTasks if any delayed tasks left to process.
protected  CollectiongetAllAssets()
    
protected  StringgetOrganizationRole(Asset asset)
    
public  voidhandleAssignment(org.cougaar.planning.ldm.plan.Task task, Asset asset, Date start, Date end, Date setupStart, Date wrapupEnd, String contribs, String taskText)
    
public  voidhandleChangedAssets(Enumeration newAssets)
     Sort through assets to make sure we have the proper subordinates.
public  voidhandleNewAssets(Enumeration newAssets)
    
public  booleaninterestingTask(Task t)
     Is the task interesting to the plugin? This is the inner-most part of the predicate.
public  voidlocalSetup()
    
protected  voidprepareData(List stuffToSend, Document objectFormatDoc)
     Overridden to provide check for missing assets.
public  voidprocessTasks(List tasks)
     If necessary subordinates have not reported yet, accumulates tasks into a delayedTasks list, and asks to be kicked again in 10 seconds, by which time hopefully the subordinates have reported.
protected  voidreportMissingAssets()
    

Field Detail
delayedTasks
protected List delayedTasks(Code)



expectedIDs
protected Set expectedIDs(Code)



reportedIDs
protected Set reportedIDs(Code)



transcomDataXMLizer
protected TranscomDataXMLize transcomDataXMLizer(Code)



waitTime
protected long waitTime(Code)





Method Detail
addExpectedProviders
protected void addExpectedProviders()(Code)



allNecessaryAssetsReported
protected boolean allNecessaryAssetsReported()(Code)



createXMLizer
protected XMLizer createXMLizer(boolean direct)(Code)
use the TranscomDataXMLize XMLizer



execute
protected void execute()(Code)
Calls processTasks if any delayed tasks left to process.



getAllAssets
protected Collection getAllAssets()(Code)



getOrganizationRole
protected String getOrganizationRole(Asset asset)(Code)
calls TranscomDataXMLize



handleAssignment
public void handleAssignment(org.cougaar.planning.ldm.plan.Task task, Asset asset, Date start, Date end, Date setupStart, Date wrapupEnd, String contribs, String taskText)(Code)



handleChangedAssets
public void handleChangedAssets(Enumeration newAssets)(Code)
Sort through assets to make sure we have the proper subordinates.
Parameters:
  newAssets - new assets found in the container



handleNewAssets
public void handleNewAssets(Enumeration newAssets)(Code)



interestingTask
public boolean interestingTask(Task t)(Code)
Is the task interesting to the plugin? This is the inner-most part of the predicate.
By default, it ignores tasks produced from this plugin
If you redefine this, it's good to call this using super.
Parameters:
  t - - the task begin checked
See Also:   org.cougaar.lib.callback.UTILGenericListener.interestingTask



localSetup
public void localSetup()(Code)



prepareData
protected void prepareData(List stuffToSend, Document objectFormatDoc)(Code)
Overridden to provide check for missing assets. Calls super first.
Parameters:
  stuffToSend - - initially the list of tasks to send to scheduler
Parameters:
  objectFormatDoc - - optional object format used by data xmlizersto determine types for fields when running directly



processTasks
public void processTasks(List tasks)(Code)
If necessary subordinates have not reported yet, accumulates tasks into a delayedTasks list, and asks to be kicked again in 10 seconds, by which time hopefully the subordinates have reported. Solves the race condition between tasks showing up and subordinates showing up.
Parameters:
  tasks - to process



reportMissingAssets
protected void reportMissingAssets()(Code)



Methods inherited from org.cougaar.lib.vishnu.client.custom.CustomVishnuAllocatorPlugin
protected XMLProcessor createXMLProcessor()(Code)(Java Doc)
protected XMLizer createXMLizer(boolean direct)(Code)(Java Doc)
protected double getConfidence(Asset asset)(Code)(Java Doc)
public void prepareVishnuObjects(List alpObjects, Collection changed, List vishnuTasks, List vishnuResources, List changedVishnuResources, Document formatDoc, SchedulingData schedData)(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.