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


java.lang.Object
   org.cougaar.logistics.plugin.inventory.InventoryModule
      org.cougaar.logistics.plugin.inventory.InventoryLevelGenerator
         org.cougaar.logistics.plugin.inventory.AllocationAssessor

AllocationAssessor
public class AllocationAssessor extends InventoryLevelGenerator (Code)
AllocationAssessor module is a module of the InventoryPlugin looks at Refill results and Inventory levels to allocate Withdraws against the Inventories. Right now this is implemented with first come first serve, but it should be changed to allocate withdraws that have the highest score first where the score is something like quantity * time late or scoring function scores. Note that this allocator does NOT allocate split shipments.

Inner Class :public class AllocPhase
Inner Class :public class TaskDeficit
Inner Class :public class ConstantRateBlock


Constructor Summary
public  AllocationAssessor(InventoryManager imPlugin, Role role)
    

Method Summary
protected  voidallocateCountedEarlyProjections(int today_bucket, Inventory inventory, LogisticsInventoryPG thePG)
     Create best allocations for Projections that are counted but in the past.
protected  voidallocateNotCountedProjections(Inventory inventory, LogisticsInventoryPG thePG)
     Create best allocations for Projections that are not being counted.
public  voidcompareResults(AllocationResult estimatedResult, Task withdraw, Inventory inv, LogisticsInventoryPG thePG)
    
protected  voidcreateAllocations(int todayBucket, int endBucket, Inventory inv, LogisticsInventoryPG thePG)
    
public  voidcreatePhasedAllocationResult(TaskDeficit td, Inventory inv, LogisticsInventoryPG thePG, boolean success)
    
public  doublegetBestBucketQty(Task task, LogisticsInventoryPG thePG, long time)
    
public  AspectValuegetDemandRateAV(double amount, long millis)
    
public  doublegetQuantityForDuration(Rate r, long duration)
    
public  voidreconcileInventoryLevels(Collection inventories)
     Called by the InventoryPlugin when we are processing in Backwards Flow (which is allocation result notifications) to try and allocated withdraw tasks.
public  voidreconcileThePast(int today_bucket, LogisticsInventoryPG thePG)
     Update the inventory levels from time zero to today.
protected  voidresetTrailingPointers()
    
protected  booleanshouldSkipMakingResult(Task task)
    
public  doubletaskQtyInBucket(Task task, int currentBucket, LogisticsInventoryPG thePG)
    
public  voidupdatePG(Task withdraw, LogisticsInventoryPG thePG)
    


Constructor Detail
AllocationAssessor
public AllocationAssessor(InventoryManager imPlugin, Role role)(Code)
Constructor for this module
Parameters:
  imPlugin - The Plugin calling this module.
Parameters:
  role - The role the Plugin is playing.




Method Detail
allocateCountedEarlyProjections
protected void allocateCountedEarlyProjections(int today_bucket, Inventory inventory, LogisticsInventoryPG thePG)(Code)
Create best allocations for Projections that are counted but in the past. These may need to be re-allocated in the past if the optempo changes and these tasks are still counted.
Parameters:
  today_bucket - The current day of the society
Parameters:
  inventory - The Inventory we are processing
Parameters:
  thePG - This is the PG for the Inventory we are processing



allocateNotCountedProjections
protected void allocateNotCountedProjections(Inventory inventory, LogisticsInventoryPG thePG)(Code)
Create best allocations for Projections that are not being counted. These are likely early projections that are not counted because Supply tasks (actuals) are being counted in their place. Allocate these with yes or best. Note that projections that span the not counted and counted projection windows are not allocated here.
Parameters:
  inventory - The Inventory we are processing
Parameters:
  thePG - This is the PG for the Inventory we are processing



compareResults
public void compareResults(AllocationResult estimatedResult, Task withdraw, Inventory inv, LogisticsInventoryPG thePG)(Code)



createAllocations
protected void createAllocations(int todayBucket, int endBucket, Inventory inv, LogisticsInventoryPG thePG)(Code)
Create and update Withdraw and ProjectWithdraw Task Allocations for a particular Inventory
Parameters:
  todayBucket - This is the starting bucket to process
Parameters:
  endBucket - Whats the last valid bucket for the inventory
Parameters:
  inv - The Inventory we are processing
Parameters:
  thePG - This is the PG for the Inventory we are processing



createPhasedAllocationResult
public void createPhasedAllocationResult(TaskDeficit td, Inventory inv, LogisticsInventoryPG thePG, boolean success)(Code)



getBestBucketQty
public double getBestBucketQty(Task task, LogisticsInventoryPG thePG, long time)(Code)



getDemandRateAV
public AspectValue getDemandRateAV(double amount, long millis)(Code)



getQuantityForDuration
public double getQuantityForDuration(Rate r, long duration)(Code)



reconcileInventoryLevels
public void reconcileInventoryLevels(Collection inventories)(Code)
Called by the InventoryPlugin when we are processing in Backwards Flow (which is allocation result notifications) to try and allocated withdraw tasks. It also updates the BG's Inventory Levels.
Parameters:
  inventories - The collection of inventories to be processed



reconcileThePast
public void reconcileThePast(int today_bucket, LogisticsInventoryPG thePG)(Code)
Update the inventory levels from time zero to today.
Parameters:
  today_bucket - Representation of today.
Parameters:
  thePG - The PG for the Inventory Asset we are working with.



resetTrailingPointers
protected void resetTrailingPointers()(Code)
Reset Pointers Map, list of pointers, and pointer remove list



shouldSkipMakingResult
protected boolean shouldSkipMakingResult(Task task)(Code)
Do not process tasks whose end times are beyond level 2
Parameters:
  task - true if after level 2 horizon



taskQtyInBucket
public double taskQtyInBucket(Task task, int currentBucket, LogisticsInventoryPG thePG)(Code)



updatePG
public void updatePG(Task withdraw, LogisticsInventoryPG thePG)(Code)



Methods inherited from org.cougaar.logistics.plugin.inventory.InventoryLevelGenerator
protected double calculateDemandForPeriod(LogisticsInventoryPG thePG, int refillBucket, int endOfPeriodBucket)(Code)(Java Doc)
public void calculateInventoryLevels(int startBucket, int endBucket, LogisticsInventoryPG thePG)(Code)(Java Doc)
protected double findCommittedRefill(int bucket, LogisticsInventoryPG thePG, boolean countProjections)(Code)(Java Doc)
public static int getIndexForType(int[] types, int type)(Code)(Java Doc)
protected double getTargetLevel(int refillBucket, int reorderPeriodEndBucket, LogisticsInventoryPG thePG)(Code)(Java Doc)
protected void setTargetForProjectionPeriod(LogisticsInventoryPG thePG, int startBucket, double prevTarget)(Code)(Java Doc)

Fields inherited from org.cougaar.logistics.plugin.inventory.InventoryModule
protected transient InventoryManager inventoryPlugin(Code)(Java Doc)
protected transient Logger logger(Code)(Java Doc)

Methods inherited from org.cougaar.logistics.plugin.inventory.InventoryModule
public AssetUtils getAssetUtils()(Code)(Java Doc)
public TaskUtils getTaskUtils()(Code)(Java Doc)
public TimeUtils getTimeUtils()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.