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


java.lang.Object
   org.cougaar.glm.plugins.BasicProcessor
      org.cougaar.glm.plugins.inventory.InventoryProcessor
         org.cougaar.glm.plugins.inventory.InventoryManager

All known Subclasses:   org.cougaar.glm.plugins.inventory.GeneralInventoryManager,
InventoryManager
abstract public class InventoryManager extends InventoryProcessor (Code)

Inner Class :static class PolicyPredicate implements UnaryPredicate
Inner Class :static class AllocToInventoryPredicate implements UnaryPredicate
Inner Class :static class ModifiedInventoryPredicate implements UnaryPredicate
Inner Class :public static class IMDeletionPolicy extends DeletionPolicyBase

Field Summary
final public  intREFILL_ADD_TASK
    
final public  intREFILL_ALTER_TASK
    
final public  intREFILL_CHANGE_METHOD
    
final public  intREFILL_REPLACE_TASK
    
protected  intdaysBackward_
    
protected  intdaysForward_
    
protected  intdaysOnHand_
     daysOnHand_ keep enough inventory on hand to cover N days of demand daysForward_ When calculating average daily demand, look N days forward from this day.
protected  booleanforcePrintConcise
    
protected  doublegoalLevelMultiplier_
    
protected  IncrementalSubscriptioninventoryAllocSubscription_
    
protected  IncrementalSubscriptioninventoryPolicySubscription_
    
protected  IncrementalSubscriptionmodifiedInventorySubscription_
    

Constructor Summary
public  InventoryManager(InventoryPlugin plugin, Organization org, String type)
    

Method Summary
protected  voidcheckDeletionPolicy()
     Checks the current deletion policy and insures that it is consistent with the current on hand policy.
protected static  doubleconvertScalarToDouble(Scalar measure)
     Given a Scalar, return a double value representing Gallons for Volume, Eaches for Count and Short Tons for Mass.
protected  RatecreateDailyRate(Measure qty)
    
protected  PreferencecreateRefillQuantityPreference(double refill_qty)
    
public  longdefaultRefillEndTime(long time, Inventory inv)
    
protected  doublegetAmountRequested(Task task)
    
protected  doublegetMaxReorderLevel(Inventory inventory)
    
protected  doublegetMinReorderLevel(Inventory inventory)
    
protected  voidhandleGLSRescind()
     method called from update when a GLS Rescind is detected.
protected  doubleignoreSmallIncrement(double increment, double x)
    
abstract protected  SetneedUpdate(Set inv)
    
protected static  ScalarnewScalarFromOldToDouble(Scalar old, double newVal)
    
public  voidupdate()
     This method is called everytime a subscription has changed.
protected  booleanupdateInventoryPolicy(Enumeration policies)
    

Field Detail
REFILL_ADD_TASK
final public int REFILL_ADD_TASK(Code)



REFILL_ALTER_TASK
final public int REFILL_ALTER_TASK(Code)



REFILL_CHANGE_METHOD
final public int REFILL_CHANGE_METHOD(Code)



REFILL_REPLACE_TASK
final public int REFILL_REPLACE_TASK(Code)



daysBackward_
protected int daysBackward_(Code)



daysForward_
protected int daysForward_(Code)



daysOnHand_
protected int daysOnHand_(Code)
daysOnHand_ keep enough inventory on hand to cover N days of demand daysForward_ When calculating average daily demand, look N days forward from this day. daysBackward_ When calculating average daily demand, look N days backward from this day. goalLevelMultiplier_ Multiplier for reorder level which yields goal level



forcePrintConcise
protected boolean forcePrintConcise(Code)



goalLevelMultiplier_
protected double goalLevelMultiplier_(Code)



inventoryAllocSubscription_
protected IncrementalSubscription inventoryAllocSubscription_(Code)



inventoryPolicySubscription_
protected IncrementalSubscription inventoryPolicySubscription_(Code)
Subscription to policies



modifiedInventorySubscription_
protected IncrementalSubscription modifiedInventorySubscription_(Code)




Constructor Detail
InventoryManager
public InventoryManager(InventoryPlugin plugin, Organization org, String type)(Code)




Method Detail
checkDeletionPolicy
protected void checkDeletionPolicy()(Code)
Checks the current deletion policy and insures that it is consistent with the current on hand policy. Generally, due out tasks must not be deleted until the daysBackward_ days have passed. The DeletionPolicy is created or updated to reflect this.



convertScalarToDouble
protected static double convertScalarToDouble(Scalar measure)(Code)
Given a Scalar, return a double value representing Gallons for Volume, Eaches for Count and Short Tons for Mass.



createDailyRate
protected Rate createDailyRate(Measure qty)(Code)



createRefillQuantityPreference
protected Preference createRefillQuantityPreference(double refill_qty)(Code)



defaultRefillEndTime
public long defaultRefillEndTime(long time, Inventory inv)(Code)



getAmountRequested
protected double getAmountRequested(Task task)(Code)
a double indicating the amount requests by the task (in terms of the standard unit of measure for the item)



getMaxReorderLevel
protected double getMaxReorderLevel(Inventory inventory)(Code)



getMinReorderLevel
protected double getMinReorderLevel(Inventory inventory)(Code)



handleGLSRescind
protected void handleGLSRescind()(Code)
method called from update when a GLS Rescind is detected. This is an entry point for any additional handling by subclasses.



ignoreSmallIncrement
protected double ignoreSmallIncrement(double increment, double x)(Code)



needUpdate
abstract protected Set needUpdate(Set inv)(Code)



newScalarFromOldToDouble
protected static Scalar newScalarFromOldToDouble(Scalar old, double newVal)(Code)



update
public void update()(Code)
This method is called everytime a subscription has changed.



updateInventoryPolicy
protected boolean updateInventoryPolicy(Enumeration policies)(Code)
Update the current InventoryPolicy



Fields inherited from org.cougaar.glm.plugins.inventory.InventoryProcessor
protected String GEOLOC(Code)(Java Doc)
public static NumberFormat demandFormat(Code)(Java Doc)
protected InventoryPlugin inventoryPlugin_(Code)(Java Doc)
protected IncrementalSubscription myProjectionTasks_(Code)(Java Doc)
protected long oplanEndTime_(Code)(Java Doc)
protected long oplanStartTime_(Code)(Java Doc)
protected IncrementalSubscription projectionTasks_(Code)(Java Doc)
protected IncrementalSubscription refillTasks_(Code)(Java Doc)
protected long startTime_(Code)(Java Doc)
protected IncrementalSubscription supplyTasks_(Code)(Java Doc)
protected String supplyType_(Code)(Java Doc)
protected GeolocLocation thisGeoloc_(Code)(Java Doc)

Methods inherited from org.cougaar.glm.plugins.inventory.InventoryProcessor
public static String arDates(AllocationResult ar)(Code)(Java Doc)
public static long arTime(AllocationResult ar)(Code)(Java Doc)
protected Schedule createProjectionSchedule(Task maintainInv)(Code)(Java Doc)
public Preference createStrategicTransportEndPref(long rdd)(Code)(Java Doc)
public Preference createStrategicTransportStartPref(long rdd)(Code)(Java Doc)
public Preference createTransportEndPref(long end)(Code)(Java Doc)
public Preference createTransportStartPref(long start)(Code)(Java Doc)
public Asset getInventoryAsset(Inventory inventory)(Code)(Java Doc)
public String getInventoryType(Inventory inventory)(Code)(Java Doc)
public String inventoryDesc(Inventory inv)(Code)(Java Doc)
protected void publishChangeProjection(Inventory inventory, Enumeration tasks)(Code)(Java Doc)
public long roundTimeDown(long time)(Code)(Java Doc)
public long roundTimeUp(long time)(Code)(Java Doc)
public void update()(Code)(Java Doc)

Fields inherited from org.cougaar.glm.plugins.BasicProcessor
final protected static long MSEC_PER_DAY(Code)(Java Doc)
final protected static long MSEC_PER_HOUR(Code)(Java Doc)
final protected static long MSEC_PER_MIN(Code)(Java Doc)
public AllocationResultAggregator UnlikeTaskARA_(Code)(Java Doc)
protected Calendar calendar_(Code)(Java Doc)
protected String className_(Code)(Java Doc)
protected MessageAddress clusterId_(Code)(Java Doc)
protected PluginDelegate delegate_(Code)(Java Doc)
public static NumberFormat demandFormat(Code)(Java Doc)
protected PlanningFactory ldmFactory_(Code)(Java Doc)
protected String myOrgName_(Code)(Java Doc)
protected Organization myOrganization_(Code)(Java Doc)
protected DecorationPlugin plugin_(Code)(Java Doc)

Methods inherited from org.cougaar.glm.plugins.BasicProcessor
public String arDesc(AllocationResult ar)(Code)(Java Doc)
public AllocationResult buildExpansionResult(Expansion expansion)(Code)(Java Doc)
public AllocationResult buildExpansionResult(Expansion expansion, boolean like_tasks)(Code)(Java Doc)
public NewTask buildNewTask(Task input_task, String output_verb, Asset direct_object)(Code)(Java Doc)
public Task buildTask(Task input_task, String output_verb, Asset direct_object, PrepositionalPhrase pp)(Code)(Java Doc)
public Task buildTask(Task input_task, String output_verb, Asset direct_object, Vector preposition_phrases)(Code)(Java Doc)
public Task buildTask(Task input_task, String output_verb, Asset direct_object, Vector preposition_phrases, Preference pref)(Code)(Java Doc)
public Task buildTask(Task input_task, String output_verb, Asset direct_object, Vector preposition_phrases, Enumeration prefs)(Code)(Java Doc)
public Task buildTask(Task input_task, String output_verb, Asset direct_object, Enumeration prefs)(Code)(Java Doc)
public Workflow buildWorkflow(Task parent, Vector subtasks)(Code)(Java Doc)
public Workflow buildWorkflow(Task parent, Task task)(Code)(Java Doc)
protected Task changeTask(Task prev_task, Task new_task)(Code)(Java Doc)
public Preference createDateAfterPreference(int aspect, long value)(Code)(Java Doc)
public Preference createDateBeforePreference(int aspect, long value)(Code)(Java Doc)
public AllocationResult createEstimatedAllocationResult(Task t)(Code)(Java Doc)
public Preference createPreference(int aspect, double value)(Code)(Java Doc)
public Preference createQuantityPreference(int aspect, double value)(Code)(Java Doc)
protected Enumeration diffProjections(Schedule published_schedule, Schedule newtask_schedule)(Code)(Java Doc)
public long getAlpTime()(Code)(Java Doc)
public boolean isSubscriptionChanged(IncrementalSubscription sub)(Code)(Java Doc)
public static Schedule newObjectSchedule(Enumeration tasks)(Code)(Java Doc)
public PrepositionalPhrase newPrepositionalPhrase(String preposition, Object io)(Code)(Java Doc)
public PrepositionalPhrase newPrepositionalPhrase(String preposition)(Code)(Java Doc)
public NewWorkflow newWorkflow(Task parent)(Code)(Java Doc)
protected String printProjection(String msg, Task task)(Code)(Java Doc)
protected void publishAddTask(Task task)(Code)(Java Doc)
protected boolean publishAllocation(Task task, Asset asset, org.cougaar.planning.ldm.plan.Role role)(Code)(Java Doc)
protected boolean publishAllocation(Task task, Asset asset, Role role, AllocationResult ar)(Code)(Java Doc)
protected boolean publishAllocation(Task task, Asset asset, Role role, AllocationResult ar, boolean needAR)(Code)(Java Doc)
protected void publishAsset(Asset asset)(Code)(Java Doc)
protected void publishChangeAsset(Asset asset)(Code)(Java Doc)
protected void publishChangeTask(Task task)(Code)(Java Doc)
protected void publishExpansion(Task parent, Vector tasks)(Code)(Java Doc)
protected void publishFailedDisposition(Task task, AllocationResult ar)(Code)(Java Doc)
protected void publishRemoveAllocation(Allocation alloc)(Code)(Java Doc)
protected void publishRemoveAsset(Asset asset)(Code)(Java Doc)
protected void publishRemoveExpansion(Expansion exp)(Code)(Java Doc)
protected void publishRemoveTask(Task task)(Code)(Java Doc)
public String qseString(QuantityScheduleElement qse)(Code)(Java Doc)
protected void setEndTimePreference(NewTask task, long end)(Code)(Java Doc)
protected void setStartTimePreference(NewTask task, long start)(Code)(Java Doc)
protected IncrementalSubscription subscribe(UnaryPredicate predicate)(Code)(Java Doc)
protected String taskKey(Task t)(Code)(Java Doc)
abstract public void update()(Code)(Java Doc)
public void updateAllocationResult(PlanElement pe)(Code)(Java Doc)
protected void updateExpansionResult(Enumeration planelements)(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.