Java Doc for RefillProjectionGenerator.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.RefillProjectionGenerator

RefillProjectionGenerator
public class RefillProjectionGenerator extends InventoryLevelGenerator implements RefillProjectionGeneratorModule(Code)
The Refill Projection Generator Module is responsible for generating projection refill tasks. These projections will be calculated by time shifting the projections from each customer and summing the results. Called by the Inventory Plugin when there is new projection demand. Uses the InventoryBG module to gather projected demand. Generates Refill Projection tasks NOTE: Right now this module assumes that all customers have the same VTH boundaries as we do. This means that Level 2 demand is calculated soley from Level 2 incoming demand. In the future we will need to account for differing level2 boundaries and calculate level 2 projections by summing the tonnage across level 6 projections for all inventories.


Field Summary
 LevelOfDetailInventoryManagerdetailInventoryManager
    

Constructor Summary
public  RefillProjectionGenerator(InventoryManager imPlugin, LevelOfDetailInventoryManager detailInventoryManager)
     Need to pass in the IM Plugin for now to get services and util classes.

Method Summary
protected  voidcalculateLevelSixProjections(Collection touchedInventories, int daysOnHand, long endOfLevelSix, ComparatorModule myComparator)
     Calculate Projection Refills in level Six detail until the end of the Level 6 VTH window.
public  voidcalculateRefillProjections(Collection touchedInventories, int daysOnHand, long endOfLevelSix, long endOfLevelTwo, ComparatorModule theComparator)
     Called by the InventoryPlugin to calculate new Refills.
protected  PrepositionalPhrasecreatePrepPhrase(String prep, Object io)
    
protected  TaskcreateProjectionRefill(long start, long end, double demand, LogisticsInventoryPG thePG)
     Make a Projection Refill Task and publish it to the InventoryPlugin.
protected  PreferencecreateRefillRatePreference(double refill_qty, long bucketMillis)
     Utility method to create Refill Projection Rate preference We use a V scoring function for this preference.
protected  NewTaskfillInTask(NewTask newRefill, long start, long end, long earliest, double qty, LogisticsInventoryPG thePG)
    
protected  GeolocLocationgetHomeLocation()
    
protected  OrganizationgetMyOrganization()
     Utility method to get and keep organization info from the InventoryPlugin.
protected  StringgetOrgName()
    

Field Detail
detailInventoryManager
LevelOfDetailInventoryManager detailInventoryManager(Code)




Constructor Detail
RefillProjectionGenerator
public RefillProjectionGenerator(InventoryManager imPlugin, LevelOfDetailInventoryManager detailInventoryManager)(Code)
Need to pass in the IM Plugin for now to get services and util classes.




Method Detail
calculateLevelSixProjections
protected void calculateLevelSixProjections(Collection touchedInventories, int daysOnHand, long endOfLevelSix, ComparatorModule myComparator)(Code)
Calculate Projection Refills in level Six detail until the end of the Level 6 VTH window.
Parameters:
  touchedInventories - The Inventories that have changed wrt projections.We will only recalculate refill projections for these.
Parameters:
  daysOnHand - DaysOnHand policy.
Parameters:
  endOfLevelSix - The date representing the end of the Level 6 VTH window.



calculateRefillProjections
public void calculateRefillProjections(Collection touchedInventories, int daysOnHand, long endOfLevelSix, long endOfLevelTwo, ComparatorModule theComparator)(Code)
Called by the InventoryPlugin to calculate new Refills. We only want to calculate new Refills for inventories that have changed because of projection changes.
Parameters:
  touchedInventories - Inventories that have changed
Parameters:
  daysOnHand - Number of DaysOnHand from the InventoryPolicy
Parameters:
  endOfLevelSix - The day representing the end of the Level 6 windowfrom the VariableTimeHorizon OperatingMode (knob)
Parameters:
  endOfLevelTwo - The day representing the end of the Level 2 windowfrom the VariableTimeHorizon OperatingMode (knob)



createPrepPhrase
protected PrepositionalPhrase createPrepPhrase(String prep, Object io)(Code)
Utility method to create a Refill Projection Prepositional Phrase
Parameters:
  prep - The preposition
Parameters:
  io - The indirect object PrepositionalPhrase A new prep phrase for the task



createProjectionRefill
protected Task createProjectionRefill(long start, long end, double demand, LogisticsInventoryPG thePG)(Code)
Make a Projection Refill Task and publish it to the InventoryPlugin. The InventoryPlugin will hook the task in to the proper workflow and publish it to the blackboard.
Parameters:
  start - The start time for the Task
Parameters:
  end - The end time for the Task
Parameters:
  demand - The demandrate value of the task
Parameters:
  thePG - The Property Group of the Inventory Asset Task The new Projection Refill



createRefillRatePreference
protected Preference createRefillRatePreference(double refill_qty, long bucketMillis)(Code)
Utility method to create Refill Projection Rate preference We use a V scoring function for this preference.
Parameters:
  refill_qty - The quantity we want for this Refill Task Preference The new demand rate preference for the Refill Task



fillInTask
protected NewTask fillInTask(NewTask newRefill, long start, long end, long earliest, double qty, LogisticsInventoryPG thePG)(Code)
Utility method to fill in task details
Parameters:
  newRefill - The task to fill in
Parameters:
  start - Start time for Task
Parameters:
  end - End Time for Task
Parameters:
  qty - Quantity Pref for Task
Parameters:
  thePG - The property group attached to the Inventory NewTask the filled in Task



getHomeLocation
protected GeolocLocation getHomeLocation()(Code)
Utility method to get the default (home) location of the Org *



getMyOrganization
protected Organization getMyOrganization()(Code)
Utility method to get and keep organization info from the InventoryPlugin. *



getOrgName
protected String getOrgName()(Code)
Utility accessor to get the Org Name from my organization and keep it around *



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.