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


org.cougaar.logistics.plugin.packer.GenericPlugin
   org.cougaar.logistics.plugin.packer.ALPacker

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


Field Summary
protected  IncrementalSubscriptionallInternalTasks
    
 MapreceiverToType
    

Constructor Summary
public  ALPacker()
    

Method Summary
protected  voidaddToReceiver(String receiverID, String type, double newQuantity)
    
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. Rescind current PlanElement and reprocess tasks.
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.
protected  voidreportQuantities()
    
protected  voidsetupSubscriptions()
    
protected  voidsubtractFromReceiver(String receiverID, String type, double newQuantity)
    
protected  voidsubtractTaskFromReceiver(Task task)
    
protected  voidupdateAllocationResult(IncrementalSubscription planElements)
    

Field Detail
allInternalTasks
protected IncrementalSubscription allInternalTasks(Code)



receiverToType
Map receiverToType(Code)




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




Method Detail
addToReceiver
protected void addToReceiver(String receiverID, String type, double newQuantity)(Code)



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. Rescind current PlanElement and reprocess tasks.
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 ****



reportQuantities
protected void reportQuantities()(Code)



setupSubscriptions
protected void setupSubscriptions()(Code)



subtractFromReceiver
protected void subtractFromReceiver(String receiverID, String type, double newQuantity)(Code)



subtractTaskFromReceiver
protected void subtractTaskFromReceiver(Task task)(Code)



updateAllocationResult
protected void updateAllocationResult(IncrementalSubscription planElements)(Code)



Fields inherited from org.cougaar.logistics.plugin.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.logistics.plugin.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 reportQuantities()(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.