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

SupplyExpander
public class SupplyExpander extends InventoryProcessor (Code)
SupplyExpander expands supply tasks into withdraw tasks and if needed Transport and Load Tasks. The SupplyExpander also updates the allocation result whenever one of the subtasks are changed. It runs for new(added) and changed Supply tasks. This processor should be included IFF inventory is being handled in this cluster.

Inner Class :static class SupplyExpansionTaskPredicate implements UnaryPredicate
Inner Class :static class ProjectionExpansionTaskPredicate implements UnaryPredicate
Inner Class :static class ProjectionExpansionPredicate implements UnaryPredicate
Inner Class :static class SupplyExpansionPredicate implements UnaryPredicate

Field Summary
final public static  VerbLOADVERB
    
final public static  longLOAD_TIME
    
final public static  VerbPROJECTWITHDRAWVERB
    
final public static  VerbTRANSPORTVERB
    
final public static  longTRANSPORT_TIME
    
final public static  VerbWITHDRAWVERB
    
protected  booleanaddLoad
    
protected  booleanaddTransport
    

Constructor Summary
public  SupplyExpander(InventoryPlugin plugin, Organization org, String type)
     Constructor takes this processor's plugin, organization and the type of supply tasks that shall be handled.

Method Summary
protected  voidaddEndTimePref(NewTask task, long end)
    
protected  voidaddStartTimePref(NewTask task, long start)
    
protected  NewTaskcreateProjectSupplyWithdrawTask(Task parent_task)
    
protected  NewTaskcreateSupplyWithdrawTask(Task parent_task)
    
protected  NewTaskcreateWithdrawTask(Task parent_task)
    
protected  voidexpandSupplyTask(Task parentTask)
    
protected  voidhandleExpandableTasks(Enumeration tasks)
    
protected  voidhandleExpansionChanges(Enumeration expansions)
     Handle changes to our expansions of Supply tasks.
public  voidupdate()
     This method is called everytime a subscription has changed.
protected  voidupdateExpansion(Enumeration tasks)
    

Field Detail
LOADVERB
final public static Verb LOADVERB(Code)



LOAD_TIME
final public static long LOAD_TIME(Code)



PROJECTWITHDRAWVERB
final public static Verb PROJECTWITHDRAWVERB(Code)



TRANSPORTVERB
final public static Verb TRANSPORTVERB(Code)



TRANSPORT_TIME
final public static long TRANSPORT_TIME(Code)



WITHDRAWVERB
final public static Verb WITHDRAWVERB(Code)



addLoad
protected boolean addLoad(Code)



addTransport
protected boolean addTransport(Code)




Constructor Detail
SupplyExpander
public SupplyExpander(InventoryPlugin plugin, Organization org, String type)(Code)
Constructor takes this processor's plugin, organization and the type of supply tasks that shall be handled.




Method Detail
addEndTimePref
protected void addEndTimePref(NewTask task, long end)(Code)
Creates a start and end preference and attaches them to a task *



addStartTimePref
protected void addStartTimePref(NewTask task, long start)(Code)



createProjectSupplyWithdrawTask
protected NewTask createProjectSupplyWithdrawTask(Task parent_task)(Code)



createSupplyWithdrawTask
protected NewTask createSupplyWithdrawTask(Task parent_task)(Code)



createWithdrawTask
protected NewTask createWithdrawTask(Task parent_task)(Code)
creates a Withdraw task from a Supply task *



expandSupplyTask
protected void expandSupplyTask(Task parentTask)(Code)
Expands a Supply task into a withdraw task *



handleExpandableTasks
protected void handleExpandableTasks(Enumeration tasks)(Code)
Expands an enumeration of Supply tasks *



handleExpansionChanges
protected void handleExpansionChanges(Enumeration expansions)(Code)
Handle changes to our expansions of Supply tasks. Basically, a failure causes all unfailed subtasks to be rescinded. The will get recreated if the incoming supply task ever gets revived.



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



updateExpansion
protected void updateExpansion(Enumeration tasks)(Code)



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.