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


org.cougaar.glm.packer.GenericPlugin
   org.cougaar.glm.packer.Packer

All known Subclasses:   org.cougaar.glm.packer.AmmoPacker,
Packer
abstract public class Packer extends GenericPlugin (Code)
Packer - handles packing supply requests



Constructor Summary
public  Packer()
    

Method Summary
protected  doubledoPacking(ArrayList tasks, Comparator sortfun, PreferenceAggregator prefagg, AllocationResultDistributor ard)
     doPacking - packs specified set of supply tasks. Assumes that it's called within an open/close transaction.
Parameters:
  tasks - ArrayList with the tasks which should be packed
Parameters:
  sortfun - BinaryPredicate to be used in sorting the tasks
Parameters:
  prefagg - PreferenceAggregator for setting the start/end times on thetransport tasks.
Parameters:
  ard - AllocationResultDistributor to be used in distributing allocation resultsfor the transport task amount the initial supply tasks.
abstract public  AggregationClosuregetAggregationClosure(ArrayList tasks)
    
public  AllocationResultDistributorgetAllocationResultDistributor()
     getAllocationResultDistributor - returns the AllocationResultDistributor be used in distributing allocation result for the transport task among the initial supply tasks.
public  PreferenceAggregatorgetPreferenceAggregator()
     getPreferenceAggregator - returns PreferenceAggregator for setting the start/end times on the transport tasks.
public  ComparatorgetSortFunction()
     getSortFunction - returns comparator to be used in sorting the tasks to be packed.
public  intgetTaskQuantityUnit()
    
abstract protected  CollectiongroupByAggregationClosure(Collection tasks)
    
protected  voidhandleUnplanned(Collection unplanned)
    
public  voidprocessChangedTasks(Enumeration changedTasks)
     processChangedTasks - handle changed supply tasks Called within GenericPlugin.execute. Tasks are currently ignored ****
Parameters:
  changedTasks - Enumeration of changed ammo supply tasks.
public  voidprocessNewTasks(Enumeration newTasks)
     processNewTasks - handle new ammo supply tasks Called within GenericPlugin.execute.
public  voidprocessRemovedTasks(Enumeration removedTasks)
     processRemovedTasks - handle removed supply tasks Called within GenericPlugin.execute. Tasks are currently ignored ****
Parameters:
  removedTasks - Enumeration of removed ammo supply tasks.
protected  voidsetupSubscriptions()
    
protected  voidupdateAllocationResult(IncrementalSubscription planElements)
    


Constructor Detail
Packer
public Packer()(Code)
Packer - constructor




Method Detail
doPacking
protected double doPacking(ArrayList tasks, Comparator sortfun, PreferenceAggregator prefagg, AllocationResultDistributor ard)(Code)
doPacking - packs specified set of supply tasks. Assumes that it's called within an open/close transaction.
Parameters:
  tasks - ArrayList with the tasks which should be packed
Parameters:
  sortfun - BinaryPredicate to be used in sorting the tasks
Parameters:
  prefagg - PreferenceAggregator for setting the start/end times on thetransport tasks.
Parameters:
  ard - AllocationResultDistributor to be used in distributing allocation resultsfor the transport task amount the initial supply tasks. *



getAggregationClosure
abstract public AggregationClosure getAggregationClosure(ArrayList tasks)(Code)
getAggregationClosure - return AggregationClosure to be used for creating transport tasks



getAllocationResultDistributor
public AllocationResultDistributor getAllocationResultDistributor()(Code)
getAllocationResultDistributor - returns the AllocationResultDistributor be used in distributing allocation result for the transport task among the initial supply tasks. Defaults to ProportionalDistributor.DEFAULT_PROPORTIONAL_DISTRIBUTOR; AllocationResultDistributor



getPreferenceAggregator
public PreferenceAggregator getPreferenceAggregator()(Code)
getPreferenceAggregator - returns PreferenceAggregator for setting the start/end times on the transport tasks. Defaults to DefaultPreferenceAggregator. PreferenceAggregator



getSortFunction
public Comparator getSortFunction()(Code)
getSortFunction - returns comparator to be used in sorting the tasks to be packed. Default implementation sorts on end time. Comparator



getTaskQuantityUnit
public int getTaskQuantityUnit()(Code)



groupByAggregationClosure
abstract protected Collection groupByAggregationClosure(Collection tasks)(Code)



handleUnplanned
protected void handleUnplanned(Collection unplanned)(Code)



processChangedTasks
public void processChangedTasks(Enumeration changedTasks)(Code)
processChangedTasks - handle changed supply tasks Called within GenericPlugin.execute. Tasks are currently ignored ****
Parameters:
  changedTasks - Enumeration of changed ammo supply tasks. Ignored.



processNewTasks
public void processNewTasks(Enumeration newTasks)(Code)
processNewTasks - handle new ammo supply tasks Called within GenericPlugin.execute.
Parameters:
  newTasks - Enumeration of the new tasks



processRemovedTasks
public void processRemovedTasks(Enumeration removedTasks)(Code)
processRemovedTasks - handle removed supply tasks Called within GenericPlugin.execute. Tasks are currently ignored ****
Parameters:
  removedTasks - Enumeration of removed ammo supply tasks. Ignored.



setupSubscriptions
protected void setupSubscriptions()(Code)



updateAllocationResult
protected void updateAllocationResult(IncrementalSubscription planElements)(Code)



Fields inherited from org.cougaar.glm.packer.GenericPlugin
final public static String DEBUG_STRING(Code)(Java Doc)
final public static int DEFAULT_LOGGING_LEVEL(Code)(Java Doc)
final public static String ERROR_STRING(Code)(Java Doc)
final public static String FATAL_STRING(Code)(Java Doc)
final public static String INFO_STRING(Code)(Java Doc)
public static String INTERNAL(Code)(Java Doc)
final public static String WARN_STRING(Code)(Java Doc)

Methods inherited from org.cougaar.glm.packer.GenericPlugin
public boolean createAggregation(Iterator tasksToAgg, MPTask childTask, Plan plan, AllocationResultDistributor distributor)(Code)(Java Doc)
public void createExpansion(Iterator tasksForWorkflow, Task parentTask)(Code)(Java Doc)
protected void execute()(Code)(Java Doc)
public PlanningFactory getGPFactory()(Code)(Java Doc)
public MessageAddress getGPMessageAddress()(Code)(Java Doc)
protected int getLogLevel(String logging)(Code)(Java Doc)
public LoggingService getLoggingService()(Code)(Java Doc)
abstract public UnaryPredicate getPlanElementPredicate()(Code)(Java Doc)
public UnaryPredicate getTaskPredicate()(Code)(Java Doc)
abstract public void processChangedTasks(Enumeration changedTasks)(Code)(Java Doc)
abstract public void processNewTasks(Enumeration newTasks)(Code)(Java Doc)
abstract public void processRemovedTasks(Enumeration removedTasks)(Code)(Java Doc)
protected void setupSubscriptions()(Code)(Java Doc)
protected Collection tasksForPred(UnaryPredicate up)(Code)(Java Doc)
public boolean testInstance(Object arg, String ty)(Code)(Java Doc)
protected void updateAllocationResult(IncrementalSubscription planElements)(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.