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


java.lang.Object
   org.cougaar.glm.ldm.asset.InventoryBG

All known Subclasses:   org.cougaar.mlm.construction.ConstructionInventoryBG,
InventoryBG
public class InventoryBG implements PGDelegate(Code)


Field Summary
final public static  longCANONICAL_TIME_OFFSET
    
final protected static  intGOAL_EXCEEDED_CAPACITY_DEBUG_THRESHOLD
    
final public static  doubleGOAL_LEVEL_BOOST_CAPACITY_FACTOR
    
final public static  intPRIORITY_LEVELS
    
protected  Calendarcalendar_
    
protected  intdaysBackward_
    
protected  intdaysForward_
    
protected  intdaysOfDemand_
    
protected  double[]demandSchedule_
    
protected transient  intdirtyDay_
    
protected transient  VectordueInTasks_
    
protected transient  VectordueInsByRequestDay_
    
protected transient  VectordueIns_
    
protected transient  VectordueOut_
    
protected  intfirstDayOfDemand_
    
protected  intgoalExceededCap
    
protected  doublegoalLevelMultiplier_
    
protected  booleaninitialized_
    
protected  InventoryReportlatest_report
    
protected transient  double[]level_
    
protected  doublemaxReorderLevel_
    
protected  doubleminReorderLevel_
    
protected  InventoryPGmyPG_
    
protected transient  booleanneedInitializeInventoryLevels
    
protected  InventoryReportoldest_report
    
protected  ArrayListreport_history
    
protected  inttoday_
    

Constructor Summary
public  InventoryBG(InventoryPG pg)
    

Method Summary
public  intaddDueIn(Task refillTask)
    
public  voidaddInventoryReport(InventoryReport newInventoryReport)
    
public  intaddPreviousRefillsToInventory(Task maintainInv)
    
public  intclearContentSchedule(Inventory inventory)
    
public  intclearInventoryLevelsSchedule(Inventory inventory)
    
protected  voidcomputeDemandSchedule()
    
protected  voidcomputeDemandSchedule(int daysOfDemand, int daysForward, int daysBackward)
     Compute a schedule of the NDaysOfDemand using and averaging window put the results in the a schedule.
public  voidcomputeThresholdSchedule(int daysOfDemand, int daysForward, int daysBackward, double minReorderLevel, double maxReorderLevel, double goalLevelMultiplier)
    
public  longconvertDayToTime(int day)
    
public  intconvertTimeToDay(long time)
     Convert a time (long) into a day of this inventory that can be used to index duein/out vectors, levels, etc.
public  PGDelegatecopy(PropertyGroup pg)
    
public  intdetermineInventoryLevels()
    
public  EnumerationgetAllDueIns()
    
public  IntegergetFirstOverflow(int i, MessageAddress cluster)
    
public  intgetFirstPlanningDay()
    
public  doublegetGoalLevel(int day)
    
public  intgetImputedDay(int day)
    
public  intgetImputedDayOfTime(long time)
    
public  InventoryReportgetLatestInventoryReport()
    
public  ScalargetLevel(long time)
    
public  ScalargetLevel(int day)
     Get inventory level on a particular day relative to the start time of the inventory.
public  DueOutgetLowestPriorityDueOutBeforeDay(int end)
    
public  doublegetNDaysDemand(int day)
    
public  InventoryReportgetOldestInventoryReport()
    
public  intgetPlanningDays()
    
public  ScalargetProjected(int day)
    
public  ScalargetProjectedRefill(int day)
    
public  ProjectionWeightgetProjectionWeight()
    
public  TaskgetRefillOnDay(int day)
     Get _the_ refill for a particular day.
public  doublegetReorderLevel(int day)
    
public  longgetStartOfDay(int day)
    
public  longgetStartTime()
    
public  intgetToday()
    
protected  doublegetTotalValidDueOuts(int day)
    
protected  voidinitializeInventoryLevels()
    
public  DatelastDemandTaskEnd(Inventory inventory)
    
public  intprintInventoryLevels(Inventory inventory, MessageAddress clusterID)
    
public  intprintQuantityScheduleTimes(Schedule sched)
    
public  voidpruneOldInventoryReports(long pruneTime)
     Remove inventory reports older than a specified time.
public  TaskrefillAlreadyFailedOnDay(int day)
    
public  intremoveDueIn(Task refillTask)
    
public  voidremoveRefillProjection(int day)
    
public  intresetInventory(Inventory inventory, long today)
    
public  voidsetDueOutFilled(DueOut dueOut, boolean newFilled)
    
public  voidsetProjectionWeight(ProjectionWeight weight)
    
public  intupdateContentSchedule(Inventory inventory)
    
public  intupdateDetailedContentSchedule(Inventory inventory)
    
public  ListupdateDueOutAllocations()
     Update the allocations results of all the allocations of DueOuts for this inventory.
public  intupdateInventoryLevelsSchedule(Inventory inventory)
    
public  intwithdrawFromInventory(Inventory inventory, MessageAddress clusterID)
     Record all demand tasks as dueouts.

Field Detail
CANONICAL_TIME_OFFSET
final public static long CANONICAL_TIME_OFFSET(Code)



GOAL_EXCEEDED_CAPACITY_DEBUG_THRESHOLD
final protected static int GOAL_EXCEEDED_CAPACITY_DEBUG_THRESHOLD(Code)



GOAL_LEVEL_BOOST_CAPACITY_FACTOR
final public static double GOAL_LEVEL_BOOST_CAPACITY_FACTOR(Code)



PRIORITY_LEVELS
final public static int PRIORITY_LEVELS(Code)



calendar_
protected Calendar calendar_(Code)



daysBackward_
protected int daysBackward_(Code)



daysForward_
protected int daysForward_(Code)



daysOfDemand_
protected int daysOfDemand_(Code)



demandSchedule_
protected double[] demandSchedule_(Code)



dirtyDay_
protected transient int dirtyDay_(Code)



dueInTasks_
protected transient Vector dueInTasks_(Code)



dueInsByRequestDay_
protected transient Vector dueInsByRequestDay_(Code)



dueIns_
protected transient Vector dueIns_(Code)



dueOut_
protected transient Vector dueOut_(Code)



firstDayOfDemand_
protected int firstDayOfDemand_(Code)



goalExceededCap
protected int goalExceededCap(Code)



goalLevelMultiplier_
protected double goalLevelMultiplier_(Code)



initialized_
protected boolean initialized_(Code)



latest_report
protected InventoryReport latest_report(Code)



level_
protected transient double[] level_(Code)



maxReorderLevel_
protected double maxReorderLevel_(Code)



minReorderLevel_
protected double minReorderLevel_(Code)



myPG_
protected InventoryPG myPG_(Code)



needInitializeInventoryLevels
protected transient boolean needInitializeInventoryLevels(Code)



oldest_report
protected InventoryReport oldest_report(Code)



report_history
protected ArrayList report_history(Code)



today_
protected int today_(Code)




Constructor Detail
InventoryBG
public InventoryBG(InventoryPG pg)(Code)




Method Detail
addDueIn
public int addDueIn(Task refillTask)(Code)



addInventoryReport
public void addInventoryReport(InventoryReport newInventoryReport)(Code)
Add the newInventoryReport to the report_history ArrayList



addPreviousRefillsToInventory
public int addPreviousRefillsToInventory(Task maintainInv)(Code)



clearContentSchedule
public int clearContentSchedule(Inventory inventory)(Code)



clearInventoryLevelsSchedule
public int clearInventoryLevelsSchedule(Inventory inventory)(Code)



computeDemandSchedule
protected void computeDemandSchedule()(Code)



computeDemandSchedule
protected void computeDemandSchedule(int daysOfDemand, int daysForward, int daysBackward)(Code)
Compute a schedule of the NDaysOfDemand using and averaging window put the results in the a schedule.



computeThresholdSchedule
public void computeThresholdSchedule(int daysOfDemand, int daysForward, int daysBackward, double minReorderLevel, double maxReorderLevel, double goalLevelMultiplier)(Code)



convertDayToTime
public long convertDayToTime(int day)(Code)



convertTimeToDay
public int convertTimeToDay(long time)(Code)
Convert a time (long) into a day of this inventory that can be used to index duein/out vectors, levels, etc.



copy
public PGDelegate copy(PropertyGroup pg)(Code)



determineInventoryLevels
public int determineInventoryLevels()(Code)



getAllDueIns
public Enumeration getAllDueIns()(Code)



getFirstOverflow
public Integer getFirstOverflow(int i, MessageAddress cluster)(Code)



getFirstPlanningDay
public int getFirstPlanningDay()(Code)



getGoalLevel
public double getGoalLevel(int day)(Code)



getImputedDay
public int getImputedDay(int day)(Code)



getImputedDayOfTime
public int getImputedDayOfTime(long time)(Code)



getLatestInventoryReport
public InventoryReport getLatestInventoryReport()(Code)
Returns the InventoryReport with the latest date



getLevel
public Scalar getLevel(long time)(Code)
Get the inventory level at a particular execution time



getLevel
public Scalar getLevel(int day)(Code)
Get inventory level on a particular day relative to the start time of the inventory. If the specified day is before the start time of the inventory, the initial level is returned. If after the maximum day, the level on that maximum day is returned.



getLowestPriorityDueOutBeforeDay
public DueOut getLowestPriorityDueOutBeforeDay(int end)(Code)



getNDaysDemand
public double getNDaysDemand(int day)(Code)



getOldestInventoryReport
public InventoryReport getOldestInventoryReport()(Code)
Returns the InventoryReport with the oldest date



getPlanningDays
public int getPlanningDays()(Code)



getProjected
public Scalar getProjected(int day)(Code)



getProjectedRefill
public Scalar getProjectedRefill(int day)(Code)



getProjectionWeight
public ProjectionWeight getProjectionWeight()(Code)



getRefillOnDay
public Task getRefillOnDay(int day)(Code)
Get _the_ refill for a particular day. This assumes that only one refill exists for a particular day. In fact, we return the smallest refill for a particular day.



getReorderLevel
public double getReorderLevel(int day)(Code)



getStartOfDay
public long getStartOfDay(int day)(Code)



getStartTime
public long getStartTime()(Code)



getToday
public int getToday()(Code)
the day number of the current execution time.



getTotalValidDueOuts
protected double getTotalValidDueOuts(int day)(Code)



initializeInventoryLevels
protected void initializeInventoryLevels()(Code)



lastDemandTaskEnd
public Date lastDemandTaskEnd(Inventory inventory)(Code)



printInventoryLevels
public int printInventoryLevels(Inventory inventory, MessageAddress clusterID)(Code)



printQuantityScheduleTimes
public int printQuantityScheduleTimes(Schedule sched)(Code)



pruneOldInventoryReports
public void pruneOldInventoryReports(long pruneTime)(Code)
Remove inventory reports older than a specified time. Never removes the latest report.



refillAlreadyFailedOnDay
public Task refillAlreadyFailedOnDay(int day)(Code)



removeDueIn
public int removeDueIn(Task refillTask)(Code)



removeRefillProjection
public void removeRefillProjection(int day)(Code)



resetInventory
public int resetInventory(Inventory inventory, long today)(Code)



setDueOutFilled
public void setDueOutFilled(DueOut dueOut, boolean newFilled)(Code)



setProjectionWeight
public void setProjectionWeight(ProjectionWeight weight)(Code)



updateContentSchedule
public int updateContentSchedule(Inventory inventory)(Code)



updateDetailedContentSchedule
public int updateDetailedContentSchedule(Inventory inventory)(Code)



updateDueOutAllocations
public List updateDueOutAllocations()(Code)
Update the allocations results of all the allocations of DueOuts for this inventory. Cycles through all the dueouts and updates the allocation results to be success or fail on the day of the dueout. List of the changed Allocations



updateInventoryLevelsSchedule
public int updateInventoryLevelsSchedule(Inventory inventory)(Code)



withdrawFromInventory
public int withdrawFromInventory(Inventory inventory, MessageAddress clusterID)(Code)
Record all demand tasks as dueouts. As a side effect compute the firstDayOfDemand_



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.