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


org.cougaar.glm.plugins.GLMDecorationPlugin
   org.cougaar.glm.plugins.inventory.InventoryPlugin

All known Subclasses:   org.cougaar.mlm.construction.ConstructionInventoryPlugin,
InventoryPlugin
abstract public class InventoryPlugin extends GLMDecorationPlugin (Code)

Inner Class :public static class InventoryItemInfo
Inner Class :public static class WithdrawTaskPredicate implements UnaryPredicate

Field Summary
protected  HashtableinventoryInitHash_
    

Constructor Summary
public  InventoryPlugin()
    

Method Summary
protected  UnaryPredicatecreateDueOutPredicate(String supplyType)
    
abstract public  InventorycreateInventory(String supplytype, Asset resource)
    
protected  ProjectionWeightcreateProjectionWeight(String supplyType)
     Create a default ProjectWeight for a class of supply.
public synchronized  voidexecute()
    
public synchronized  InventoryfindOrMakeInventory(String supplytype, String id)
    
public synchronized  InventoryfindOrMakeInventory(String supplytype, Asset resource)
    
public  TaskfindOrMakeMILTask(Inventory inventory)
     Find or make the aggregated MIL task for an inventory.
public  StringgetAssetType(Inventory inventory)
    
public  TaskgetDetermineRequirementsTask()
     Get _the_ aggregate MIL task.
final public synchronized  UnaryPredicategetDueOutPredicate(String supplyType)
    
public  booleangetFillToCapacity(String supplyType)
    
public  EnumerationgetInventoryBins(String assetType)
    
public  StringgetInventoryType(Inventory inventory)
    
public  booleangetMaintainAtCapacity(String supplyType)
    
public  ProjectionWeightgetProjectionWeight(String supplyType)
    
public  voidinitializeInventoryFile(String type)
    
public  voidrecordCustomerForTask(Task task)
    
public  voidsetFillToCapacity(String supplyType, boolean fill_to_capacity)
     Set the fillToCapacity for a class of supply.
public  voidsetMaintainAtCapacity(String supplyType, boolean maintain_at_capacity)
     Set the maintainAtCapacity for a class of supply.
public  voidsetProjectionWeight(String supplyType, ProjectionWeight weight)
     Set the ProjectionWeight for a class of supply.
protected  voidsetupSubscriptions()
    

Field Detail
inventoryInitHash_
protected Hashtable inventoryInitHash_(Code)




Constructor Detail
InventoryPlugin
public InventoryPlugin()(Code)




Method Detail
createDueOutPredicate
protected UnaryPredicate createDueOutPredicate(String supplyType)(Code)
Override this if you want to use a different predicate for selecting due out tasks



createInventory
abstract public Inventory createInventory(String supplytype, Asset resource)(Code)



createProjectionWeight
protected ProjectionWeight createProjectionWeight(String supplyType)(Code)
Create a default ProjectWeight for a class of supply. This implementation creates a new ProjectionWeightImpl with default settings. Override this if you want a different default.



execute
public synchronized void execute()(Code)



findOrMakeInventory
public synchronized Inventory findOrMakeInventory(String supplytype, String id)(Code)



findOrMakeInventory
public synchronized Inventory findOrMakeInventory(String supplytype, Asset resource)(Code)



findOrMakeMILTask
public Task findOrMakeMILTask(Inventory inventory)(Code)
Find or make the aggregated MIL task for an inventory. If the MILTaskHash_ does not contain an existing task, create a new one and link it to the determine requirements tasks.



getAssetType
public String getAssetType(Inventory inventory)(Code)



getDetermineRequirementsTask
public Task getDetermineRequirementsTask()(Code)
Get _the_ aggregate MIL task. This is complicated because we want to detect when the task has been deleted, but we only want to create one of them. The lag between publishing a new task and its appearance in the subscription poses a problem because, typically, this method is called repeatedly in one transaction. We store the task temporarily in a variable (aggMILTask_) to prevent multiple creation, but clear the variable at the beginning of each new transaction. If the task has not yet been created, we try to create it by aggregating all the existing per-oplan DetermineRequirements tasks into it. Subsequent per-oplan tasks will be aggregated in as they arrive. There will be no task if there are no DetermineRequirements tasks to be aggregated.



getDueOutPredicate
final public synchronized UnaryPredicate getDueOutPredicate(String supplyType)(Code)



getFillToCapacity
public boolean getFillToCapacity(String supplyType)(Code)



getInventoryBins
public Enumeration getInventoryBins(String assetType)(Code)



getInventoryType
public String getInventoryType(Inventory inventory)(Code)



getMaintainAtCapacity
public boolean getMaintainAtCapacity(String supplyType)(Code)



getProjectionWeight
public ProjectionWeight getProjectionWeight(String supplyType)(Code)



initializeInventoryFile
public void initializeInventoryFile(String type)(Code)



recordCustomerForTask
public void recordCustomerForTask(Task task)(Code)



setFillToCapacity
public void setFillToCapacity(String supplyType, boolean fill_to_capacity)(Code)
Set the fillToCapacity for a class of supply. This becomes the default fillToCapacity for new Inventory Assets for the class of supply. The fillToCapacity of existing Inventory assets is updated to the new value (true/false). Override this if you don't want this behavior.



setMaintainAtCapacity
public void setMaintainAtCapacity(String supplyType, boolean maintain_at_capacity)(Code)
Set the maintainAtCapacity for a class of supply. This becomes the default maintainAtCapacity for new Inventory Assets for the class of supply. The maintainAtCapacity of existing Inventory assets is updated to the new value (true/false). Override this if you don't want this behavior.



setProjectionWeight
public void setProjectionWeight(String supplyType, ProjectionWeight weight)(Code)
Set the ProjectionWeight for a class of supply. This becomes the default ProjectionWeight for new Inventory Assets for the class of supply. The ProjectionWeight of existing Inventory assets is updated to the new ProjectionWeight. Override this if you don't want this behavior.



setupSubscriptions
protected void setupSubscriptions()(Code)



Fields inherited from org.cougaar.glm.plugins.GLMDecorationPlugin
public Map ClusterOPlans_(Code)(Java Doc)
public boolean oplanChanged_orgActChanged_clusterOplanChanged_(Code)(Java Doc)
public IncrementalSubscription oplans_(Code)(Java Doc)

Methods inherited from org.cougaar.glm.plugins.GLMDecorationPlugin
public synchronized void execute()(Code)(Java Doc)
public ClusterOPlan findOPlan(UID oplanUID)(Code)(Java Doc)
public ClusterOPlan findOPlan(Oplan oplan)(Code)(Java Doc)
public GeolocLocation getGeoLoc(long time)(Code)(Java Doc)
public Vector getOPlans()(Code)(Java Doc)
public ClusterOPlan getOperativeOPlan(long time, ContextOfUIDs context)(Code)(Java Doc)
public boolean oplanChanged()(Code)(Java Doc)
protected void setupSubscriptions()(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.