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

RefillGenerator
public class RefillGenerator extends InventoryLevelGenerator implements RefillGeneratorModule(Code)
The Refill Generator Module is responsible for generating new refill tasks as needed when new demand is received. This Refill Generator uses a total replan algorithm which ignores all previously generated refill tasks (that are not yet committed) and replans by creating new refills based on the new due out totals and the inventory levels. The Comparator module will decide whether to rescind all previous refills and publish all new refills generated by this module or whether to compare and merge the 'old' and 'new' refill tasks. Called by the Inventory Plugin when there is new demand. Uses the InventoryBG module for inventory bin calculations Generates Refill tasks which are passed to the InventoryPlugin to be added to the MaintainInventory workflow and published.


Field Summary
 ClassicRefillGeneratorInventoryManagerclassicInventoryManager
    

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

Method Summary
protected  voidcalculateInventoryLevelsForRG(int startBucket, int endBucket, LogisticsInventoryPG thePG)
    
public  voidcalculateRefills(Collection touchedInventories, ComparatorModule myComparator)
     Called by the Inventory Plugin to re-calculate refills when an demand has changed for an inventory.
protected  PrepositionalPhrasecreatePrepPhrase(String prep, Object io)
    
protected  PreferencecreateRefillQuantityPreference(double refill_qty)
     Utility method to create a Refill Quantity preference We use a Strictly At scoring function for this preference.
protected  DecimalFormatgetDecimalFormatter()
    
protected  GeolocLocationgetHomeLocation()
    
protected  OrganizationgetMyOrganization()
     Utility method to get and keep organization info from the InventoryPlugin.
protected  StringgetOrgName()
     Utility method to get the Org Name from my organization and keep it around.
public  intnextLegalRefillBucket(LogisticsInventoryPG thePG, int startBucket)
    
protected  doubleroundAmmoToHundrethsPlace(double refillQty)
    

Field Detail
classicInventoryManager
ClassicRefillGeneratorInventoryManager classicInventoryManager(Code)




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




Method Detail
calculateInventoryLevelsForRG
protected void calculateInventoryLevelsForRG(int startBucket, int endBucket, LogisticsInventoryPG thePG)(Code)



calculateRefills
public void calculateRefills(Collection touchedInventories, ComparatorModule myComparator)(Code)
Called by the Inventory Plugin to re-calculate refills when an demand has changed for an inventory. This method creates Refill Tasks and publishes them through the Inventory Plugin.
Parameters:
  touchedInventories - The collection of changed Inventories.
Parameters:
  myComparator - The RefillComparator to use.



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



createRefillQuantityPreference
protected Preference createRefillQuantityPreference(double refill_qty)(Code)
Utility method to create a Refill Quantity preference We use a Strictly At scoring function for this preference. Note that out use of strictly at allows for multiple shipments as long as the total amount delivered meets the best quantity for this preference inside the feasable delivery time (defined by the end_time scoring function)
Parameters:
  refill_qty - The quantity we want for this Refill Task Preference The new quantity preference for the Refill Task



getDecimalFormatter
protected DecimalFormat getDecimalFormatter()(Code)



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 method to get the Org Name from my organization and keep it around. *



nextLegalRefillBucket
public int nextLegalRefillBucket(LogisticsInventoryPG thePG, int startBucket)(Code)



roundAmmoToHundrethsPlace
protected double roundAmmoToHundrethsPlace(double refillQty)(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.