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

ExternalAllocator
public class ExternalAllocator extends InventoryProcessor (Code)

Inner Class :static class RefillAllocPredicate implements UnaryPredicate
Inner Class :public static class ItemProviderPredicate implements UnaryPredicate

Field Summary
protected  Vectornotified_
    
protected  IncrementalSubscriptionproviderOrgs_
    
protected  RoleproviderRole_
    
public  Vectorproviders_
    
protected  IncrementalSubscriptionrefillAllocs_
    

Constructor Summary
public  ExternalAllocator(InventoryPlugin plugin, Organization org, String type, org.cougaar.planning.ldm.plan.Role role)
    

Method Summary
public  voidallocateRefillTasks(Enumeration tasks)
    
public  voidallocateSupplyTasks(Enumeration tasks)
    
protected  voidallocateTask(Task task)
    
public  OrganizationfindBestSource(Task task)
     Figure out which organization supplying item is best for us.
public  voidrememberProviders()
    
public  voidupdate()
     This method is called everytime a subscription has changed.

Field Detail
notified_
protected Vector notified_(Code)
list of nsn's with no resupply point



providerOrgs_
protected IncrementalSubscription providerOrgs_(Code)



providerRole_
protected Role providerRole_(Code)



providers_
public Vector providers_(Code)
Organizations with the right type of role



refillAllocs_
protected IncrementalSubscription refillAllocs_(Code)




Constructor Detail
ExternalAllocator
public ExternalAllocator(InventoryPlugin plugin, Organization org, String type, org.cougaar.planning.ldm.plan.Role role)(Code)




Method Detail
allocateRefillTasks
public void allocateRefillTasks(Enumeration tasks)(Code)



allocateSupplyTasks
public void allocateSupplyTasks(Enumeration tasks)(Code)



allocateTask
protected void allocateTask(Task task)(Code)



findBestSource
public Organization findBestSource(Task task)(Code)
Figure out which organization supplying item is best for us.



rememberProviders
public void rememberProviders()(Code)
reset providers table



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



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.