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

LogisticsInventoryBG
public class LogisticsInventoryBG implements PGDelegate(Code)
The LogisticsInventoryBG is responsible for maintaining all information concerning an Inventory Asset. The Logistics InventoryBG collects Withdraws, ProjectWithdraws, Supply and ProjectSupply tasks as well as calculated information such as inventory levels, refill levels and demand distribution over time.


Field Summary
protected  ListactualDemandTasksList
    
protected  longarrivalTime
    
protected  longbucketSize
    
protected  SchedulebufferedCriticalLevels
    
protected  SchedulebufferedInventoryLevels
    
protected  SchedulebufferedTargetLevels
    
protected  intcriticalLevel
    
protected  doublecriticalLevelsArray
    
protected  intdeletionBucket
    
protected  ListdueOutList
    
protected  intendOfLevelSixBucket
    
protected  doubleinventoryLevelsArray
    
protected  LogisticsInventoryPGmyPG
    
protected  longoplanEndTime
    
protected  intost
    
protected  ListoverlappingRefillProjections
    
protected  ListprojSupplyList
    
protected  ListprojWithdrawList
    
protected  doubleprojectedDemandArray
    
protected  ListrefillProjections
    
protected  ListrefillRequisitions
    
protected  intreorderPeriod
    
protected transient  longstartCDay
    
protected  longstartTime
    
protected  ListsupplyList
    
protected  ListtargetLevelsList
    
protected  inttimeZero
    
protected  ListwithdrawList
    

Constructor Summary
public  LogisticsInventoryBG(LogisticsInventoryPG pg)
    

Method Summary
public  voidTest()
    
public  voidaddRefillProjection(Task task)
    
public  voidaddRefillRequisition(Task task)
    
protected  voidaddShortfallPeriods(ShortfallInventory shortfallInv)
    
public  voidaddWithdrawProjection(Task task)
    
public  voidaddWithdrawRequisition(Task task)
    
protected  voidcalculateShortfallPeriod(ShortfallPeriod shortPeriod, List tasks)
    
public  ShortfallInventorycheckForShortfall(String invID, String unitOfIssue)
    
public  ListclearRefillProjectionTasks(long now)
    
public  ListclearRefillTasks(Date now)
    
public  voidclearTargetLevels(int startBucket)
    
public  longconvertBucketToTime(int bucket)
     Convert a bucket (int) into the start time of the bucket.
public  intconvertTimeToBucket(long time, boolean partialBuckets)
     Convert a time (long) into a bucket of this inventory that can be used to index duein/out vectors, levels, etc.
public  PGDelegatecopy(PropertyGroup pg)
    
protected  intcountActualShortfall(List taskList, boolean includeTemps)
    
protected  intcountProjFailures(List taskList, boolean isDemand, boolean includeTemps)
    
public  doublegetActualDemand(int bucket)
    
public  CollectiongetActualDemandTasks(int bucket)
    
public  ArrayListgetActualDemandTasksList()
    
public  longgetArrivalTime()
    
public  longgetBucketMillis()
    
public  SchedulegetBufferedCritLevels()
    
public  SchedulegetBufferedInvLevels()
    
public  SchedulegetBufferedTargetLevels()
    
public  doublegetCriticalLevel(int bucket)
    
public  intgetCriticalLevel()
    
public  HashMapgetCustomerHash()
    
public synchronized  longgetEffectiveProjectionStart(Task task, long start)
     Ignore projected demand that occurs before customer switchover day.
public  intgetEndOfLevelSixBucket()
    
public  booleangetFailuresFlag()
    
public  intgetFirstProjectWithdrawBucket()
    
public  StringgetItemName()
    
public  intgetLastDemandBucket()
    
public  intgetLastRefillRequisition()
    
public  intgetLastWithdrawBucket()
    
public  doublegetLevel(int bucket)
    
public  StringgetOrgName()
    
public  ListgetOverlappingRefillProjections()
    
public  ArrayListgetProjSupplyList()
    
public  ArrayListgetProjWithdrawList()
    
public  CollectiongetProjectWithdrawTasks(int bucket)
    
public  doublegetProjectedDemand(int bucket)
    
public  CollectiongetProjectedDemandTasks(int bucket)
    
public  doublegetProjectionTaskDemand(Task task, int bucket, long start, long end)
    
public  ArrayListgetRefillProjection(int bucket)
    
public  ArrayListgetRefillRequisitions()
    
public  doublegetReorderPeriod()
    
public  intgetStartBucket()
    
public  longgetStartTime()
    
public  ArrayListgetSupplyList()
    
public  StringgetSupplyType()
    
public  ArrayListgetWithdrawList()
    
public  CollectiongetWithdrawTasks(int bucket)
    
public  voidinitialize(long startTime, long oplanEndTime, int criticalLevel, int reorderPeriod, int ost, long bucketSize, long now, boolean logToCSV, InventoryManager parentPlugin)
    
public  voidlogAllToCSVFile(long aCycleStamp)
    
protected  ShortfallInventorynewShortfallInventory(String invId, String unitOfIssue)
    
protected  ShortfallPeriodnewShortfallPeriod(long start, long end)
    
public  voidrebuildCustomerHash()
    
public  voidrecalculateInitialLevel()
    
public  voidreinitialize(boolean logToCSV, UtilsProvider parentPlugin)
    
public  voidremoveRefillProjection(Task task)
    
public  voidremoveRefillRequisition(Task task)
    
public  voidremoveWithdrawProjection(Task task)
     Called by SupplyExpander to remove a Withdraw task that has either been rescinded or changed.
public  voidremoveWithdrawRequisition(Task task)
    
public  voidsetArrivalTime(long anArrivalTime)
    
protected  voidsetDeletionBucket(int bucket)
     Called by all methods which remove tasks from lists.
public  voidsetEndOfLevelSixBucket(int bucket)
    
public  voidsetFailuresFlag(boolean value)
    
public  voidsetLevel(int bucket, double value)
    
public  voidsetStartCDay(long startCTime)
    
public  voidsetTarget(int bucket, double value)
    
public  voidtakeSnapshot(Inventory inventory)
    
protected  doubletotalShortfall(List taskList)
    
public  longtruncateToBucketStart(long aTime)
    
public  voidupdateRefillProjection(Task task)
    
public  voidupdateRefillRequisition(Task task)
    
public  voidupdateWithdrawProjection(Task task)
    
public  voidupdateWithdrawRequisition(Task task)
    

Field Detail
actualDemandTasksList
protected List actualDemandTasksList(Code)



arrivalTime
protected long arrivalTime(Code)



bucketSize
protected long bucketSize(Code)



bufferedCriticalLevels
protected Schedule bufferedCriticalLevels(Code)



bufferedInventoryLevels
protected Schedule bufferedInventoryLevels(Code)



bufferedTargetLevels
protected Schedule bufferedTargetLevels(Code)



criticalLevel
protected int criticalLevel(Code)



criticalLevelsArray
protected double criticalLevelsArray(Code)



deletionBucket
protected int deletionBucket(Code)



dueOutList
protected List dueOutList(Code)



endOfLevelSixBucket
protected int endOfLevelSixBucket(Code)



inventoryLevelsArray
protected double inventoryLevelsArray(Code)



myPG
protected LogisticsInventoryPG myPG(Code)



oplanEndTime
protected long oplanEndTime(Code)



ost
protected int ost(Code)



overlappingRefillProjections
protected List overlappingRefillProjections(Code)



projSupplyList
protected List projSupplyList(Code)



projWithdrawList
protected List projWithdrawList(Code)



projectedDemandArray
protected double projectedDemandArray(Code)



refillProjections
protected List refillProjections(Code)



refillRequisitions
protected List refillRequisitions(Code)



reorderPeriod
protected int reorderPeriod(Code)



startCDay
protected transient long startCDay(Code)



startTime
protected long startTime(Code)



supplyList
protected List supplyList(Code)



targetLevelsList
protected List targetLevelsList(Code)



timeZero
protected int timeZero(Code)



withdrawList
protected List withdrawList(Code)




Constructor Detail
LogisticsInventoryBG
public LogisticsInventoryBG(LogisticsInventoryPG pg)(Code)




Method Detail
Test
public void Test()(Code)



addRefillProjection
public void addRefillProjection(Task task)(Code)



addRefillRequisition
public void addRefillRequisition(Task task)(Code)



addShortfallPeriods
protected void addShortfallPeriods(ShortfallInventory shortfallInv)(Code)



addWithdrawProjection
public void addWithdrawProjection(Task task)(Code)



addWithdrawRequisition
public void addWithdrawRequisition(Task task)(Code)



calculateShortfallPeriod
protected void calculateShortfallPeriod(ShortfallPeriod shortPeriod, List tasks)(Code)



checkForShortfall
public ShortfallInventory checkForShortfall(String invID, String unitOfIssue)(Code)



clearRefillProjectionTasks
public List clearRefillProjectionTasks(long now)(Code)



clearRefillTasks
public List clearRefillTasks(Date now)(Code)



clearTargetLevels
public void clearTargetLevels(int startBucket)(Code)



convertBucketToTime
public long convertBucketToTime(int bucket)(Code)
Convert a bucket (int) into the start time of the bucket. The end time of the bucket must be inferred from the next sequential bucket's start time (non-inclusive).



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



copy
public PGDelegate copy(PropertyGroup pg)(Code)



countActualShortfall
protected int countActualShortfall(List taskList, boolean includeTemps)(Code)



countProjFailures
protected int countProjFailures(List taskList, boolean isDemand, boolean includeTemps)(Code)



getActualDemand
public double getActualDemand(int bucket)(Code)



getActualDemandTasks
public Collection getActualDemandTasks(int bucket)(Code)



getActualDemandTasksList
public ArrayList getActualDemandTasksList()(Code)



getArrivalTime
public long getArrivalTime()(Code)



getBucketMillis
public long getBucketMillis()(Code)
long The amount of ms the bucket spans *



getBufferedCritLevels
public Schedule getBufferedCritLevels()(Code)



getBufferedInvLevels
public Schedule getBufferedInvLevels()(Code)



getBufferedTargetLevels
public Schedule getBufferedTargetLevels()(Code)



getCriticalLevel
public double getCriticalLevel(int bucket)(Code)



getCriticalLevel
public int getCriticalLevel()(Code)



getCustomerHash
public HashMap getCustomerHash()(Code)



getEffectiveProjectionStart
public synchronized long getEffectiveProjectionStart(Task task, long start)(Code)
Ignore projected demand that occurs before customer switchover day.



getEndOfLevelSixBucket
public int getEndOfLevelSixBucket()(Code)



getFailuresFlag
public boolean getFailuresFlag()(Code)



getFirstProjectWithdrawBucket
public int getFirstProjectWithdrawBucket()(Code)



getItemName
public String getItemName()(Code)



getLastDemandBucket
public int getLastDemandBucket()(Code)



getLastRefillRequisition
public int getLastRefillRequisition()(Code)



getLastWithdrawBucket
public int getLastWithdrawBucket()(Code)



getLevel
public double getLevel(int bucket)(Code)



getOrgName
public String getOrgName()(Code)



getOverlappingRefillProjections
public List getOverlappingRefillProjections()(Code)



getProjSupplyList
public ArrayList getProjSupplyList()(Code)



getProjWithdrawList
public ArrayList getProjWithdrawList()(Code)



getProjectWithdrawTasks
public Collection getProjectWithdrawTasks(int bucket)(Code)



getProjectedDemand
public double getProjectedDemand(int bucket)(Code)



getProjectedDemandTasks
public Collection getProjectedDemandTasks(int bucket)(Code)



getProjectionTaskDemand
public double getProjectionTaskDemand(Task task, int bucket, long start, long end)(Code)



getRefillProjection
public ArrayList getRefillProjection(int bucket)(Code)



getRefillRequisitions
public ArrayList getRefillRequisitions()(Code)



getReorderPeriod
public double getReorderPeriod()(Code)



getStartBucket
public int getStartBucket()(Code)



getStartTime
public long getStartTime()(Code)



getSupplyList
public ArrayList getSupplyList()(Code)



getSupplyType
public String getSupplyType()(Code)



getWithdrawList
public ArrayList getWithdrawList()(Code)



getWithdrawTasks
public Collection getWithdrawTasks(int bucket)(Code)



initialize
public void initialize(long startTime, long oplanEndTime, int criticalLevel, int reorderPeriod, int ost, long bucketSize, long now, boolean logToCSV, InventoryManager parentPlugin)(Code)



logAllToCSVFile
public void logAllToCSVFile(long aCycleStamp)(Code)



newShortfallInventory
protected ShortfallInventory newShortfallInventory(String invId, String unitOfIssue)(Code)



newShortfallPeriod
protected ShortfallPeriod newShortfallPeriod(long start, long end)(Code)



rebuildCustomerHash
public void rebuildCustomerHash()(Code)



recalculateInitialLevel
public void recalculateInitialLevel()(Code)



reinitialize
public void reinitialize(boolean logToCSV, UtilsProvider parentPlugin)(Code)



removeRefillProjection
public void removeRefillProjection(Task task)(Code)



removeRefillRequisition
public void removeRefillRequisition(Task task)(Code)



removeWithdrawProjection
public void removeWithdrawProjection(Task task)(Code)
Called by SupplyExpander to remove a Withdraw task that has either been rescinded or changed.
Parameters:
  task - The ProjectWithdraw task being removed



removeWithdrawRequisition
public void removeWithdrawRequisition(Task task)(Code)



setArrivalTime
public void setArrivalTime(long anArrivalTime)(Code)



setDeletionBucket
protected void setDeletionBucket(int bucket)(Code)
Called by all methods which remove tasks from lists. When a task is deleted, the last affected bucket back to the beginning of list are emptied IFF the buckets have not already been emptied.
Parameters:
  bucket - Last effected bucket by task deletion



setEndOfLevelSixBucket
public void setEndOfLevelSixBucket(int bucket)(Code)



setFailuresFlag
public void setFailuresFlag(boolean value)(Code)



setLevel
public void setLevel(int bucket, double value)(Code)



setStartCDay
public void setStartCDay(long startCTime)(Code)



setTarget
public void setTarget(int bucket, double value)(Code)



takeSnapshot
public void takeSnapshot(Inventory inventory)(Code)



totalShortfall
protected double totalShortfall(List taskList)(Code)



truncateToBucketStart
public long truncateToBucketStart(long aTime)(Code)
Take the incomming time and convert it to the beginning of the bucket in which it falls



updateRefillProjection
public void updateRefillProjection(Task task)(Code)



updateRefillRequisition
public void updateRefillRequisition(Task task)(Code)



updateWithdrawProjection
public void updateWithdrawProjection(Task task)(Code)



updateWithdrawRequisition
public void updateWithdrawRequisition(Task task)(Code)



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.