Java Doc for GenerateProjectionsExpander.java in  » Science » Cougaar12_4 » org » cougaar » logistics » plugin » demand » 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.demand 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.logistics.plugin.demand.DemandForecastModule
      org.cougaar.logistics.plugin.demand.GenerateProjectionsExpander

GenerateProjectionsExpander
public class GenerateProjectionsExpander extends DemandForecastModule implements GenProjExpanderIfc(Code)
 The default ProjectionsExpander for the DemandForecastPlugin.
 This class expands a generate projections task into ProjectSupply tasks for all the
 resource components (Parts,fuel,ammo) of the supply class needed by the GP's MEI.



Constructor Summary
public  GenerateProjectionsExpander(DemandForecastPlugin dfPlugin)
    

Method Summary
protected  voidaddToAndPublishExpansion(Task parent, Collection subtasks)
    
protected  SchedulebuildRateSchedule(PropertyGroup pg, Asset consumedItem, Schedule schedule, Asset consumer)
    
protected  CollectionbuildTaskList(PropertyGroup pg, Collection items, Schedule schedule, Task gpTask, Asset consumer)
    
public  WorkflowbuildWorkflow(Task parent, Collection subtasks)
     Build a workflow from a vector of tasks.
protected  AssetconvertAggregateToAsset(Asset consumer)
    
protected  voidcreateAndPublishExpansion(Task parent, Collection subtasks)
    
protected  voidcreateDisposition(Task gpTask)
    
protected  voidcreateGeolocPrepPhrases(Task parentTask, long end, Vector prepPhrases)
    
protected  voidcreateMaintainingPrepPhrases(Object consumer, Vector prepPhrases)
    
protected  VectorcreatePrepPhrases(Object consumer, Task parentTask, long end, Schedule rate_schedule)
     Create FOR, TO, MAINTAIN, OFTYPE, and DEMANDRATE prepositional phrases for use by the subclasses.
protected  NewTaskcreateProjectSupplyTask(Task parentTask, Asset consumer, Asset consumedItem, long start, long end, Rate rate)
    
protected  NewTaskcreateProjectSupplyTask(Task parentTask, Asset consumer, Asset consumedItem, Schedule rate_schedule)
    
protected  CollectiondiffProjections(Schedule published_schedule, Schedule newtask_schedule, TimeSpan timespan)
     Reconcile an intended schedule of projections with the currently published schedule of projections so as to reuse as many of the existing projection tasks as possible. Generally as elements from the published schedule are used they are removed from the schedule.
public  voidexpandGenerateProjections(Task gpTask, Schedule schedule, Asset consumer, TimeSpan timespan)
     Expand the passed in GenerateProjectins task into the requisite ProjectSupply tasks - one for each resource need of this MEI/Asset determined by the BG associated with the passed in supplyPGClass.
public  CollectiongetConsumed(PropertyGroup pg)
    
public  doublegetDailyQuantity(Rate r)
    
protected  GeolocLocationgetGeolocLocation(Task parent_task, long time)
    
public  RategetRate(PropertyGroup pg, Asset consumedItem, List params)
    
protected  ListgetRateParams(ObjectScheduleElement ose)
    
protected  voidhandleExpandedGpTask(Task gpTask, Schedule schedule, Asset consumer, PropertyGroup pg, TimeSpan timespan)
    
protected  PrepositionalPhrasenewPrepositionalPhrase(String preposition, Object io)
    
protected  StringprintProjection(String msg, Task task)
    
public  voidpublishRemoveFromExpansion(Task subtask)
    
protected  voidsetEndTimePreference(NewTask task, long end)
    
protected  voidsetStartTimePreference(NewTask task, long start)
    
public  voidupdateAllocationResults(Collection planElements)
    


Constructor Detail
GenerateProjectionsExpander
public GenerateProjectionsExpander(DemandForecastPlugin dfPlugin)(Code)




Method Detail
addToAndPublishExpansion
protected void addToAndPublishExpansion(Task parent, Collection subtasks)(Code)



buildRateSchedule
protected Schedule buildRateSchedule(PropertyGroup pg, Asset consumedItem, Schedule schedule, Asset consumer)(Code)



buildTaskList
protected Collection buildTaskList(PropertyGroup pg, Collection items, Schedule schedule, Task gpTask, Asset consumer)(Code)



buildWorkflow
public Workflow buildWorkflow(Task parent, Collection subtasks)(Code)
Build a workflow from a vector of tasks.
Parameters:
  parent - parent task of workflow
Parameters:
  subtasks - workflow tasks Workflow



convertAggregateToAsset
protected Asset convertAggregateToAsset(Asset consumer)(Code)



createAndPublishExpansion
protected void createAndPublishExpansion(Task parent, Collection subtasks)(Code)



createDisposition
protected void createDisposition(Task gpTask)(Code)



createGeolocPrepPhrases
protected void createGeolocPrepPhrases(Task parentTask, long end, Vector prepPhrases)(Code)



createMaintainingPrepPhrases
protected void createMaintainingPrepPhrases(Object consumer, Vector prepPhrases)(Code)



createPrepPhrases
protected Vector createPrepPhrases(Object consumer, Task parentTask, long end, Schedule rate_schedule)(Code)
Create FOR, TO, MAINTAIN, OFTYPE, and DEMANDRATE prepositional phrases for use by the subclasses.
Parameters:
  consumer - the consumer the task supports Vector of PrepostionalPhrases



createProjectSupplyTask
protected NewTask createProjectSupplyTask(Task parentTask, Asset consumer, Asset consumedItem, long start, long end, Rate rate)(Code)



createProjectSupplyTask
protected NewTask createProjectSupplyTask(Task parentTask, Asset consumer, Asset consumedItem, Schedule rate_schedule)(Code)



diffProjections
protected Collection diffProjections(Schedule published_schedule, Schedule newtask_schedule, TimeSpan timespan)(Code)
Reconcile an intended schedule of projections with the currently published schedule of projections so as to reuse as many of the existing projection tasks as possible. Generally as elements from the published schedule are used they are removed from the schedule. Tasks remaining in the schedule are rescinded. There are three regions of interest: before now, around now and after now. These are each handled separately. In the region before now, already published tasks are unconditionally retained and new tasks are unconditionally ignored. In the region around now, tasks may start before now and end after. If both a published task and a new task spanning now exist, then there are two cases: If the demand rates are the same, then the published task is changed to look like the new task (by changing its end time preference). The start time of the published task is unchanged. Think of the existing task ending now and the new task starting now and then splicing the two together into one task. If the rates are different, then the existing task must end when the new task starts. The current code accomplishes this by setting the end time preference of the existing task to the start time of the new. This is not exactly correct since we shouldn't change the past. The times of the tasks should be no less than now. In the region after now, we try to match up the tasks. When a match is possible, the existing task is changed if necessary (and republished) otherwise it is rescinded and the new task added.



expandGenerateProjections
public void expandGenerateProjections(Task gpTask, Schedule schedule, Asset consumer, TimeSpan timespan)(Code)
Expand the passed in GenerateProjectins task into the requisite ProjectSupply tasks - one for each resource need of this MEI/Asset determined by the BG associated with the passed in supplyPGClass.



getConsumed
public Collection getConsumed(PropertyGroup pg)(Code)



getDailyQuantity
public double getDailyQuantity(Rate r)(Code)



getGeolocLocation
protected GeolocLocation getGeolocLocation(Task parent_task, long time)(Code)



getRate
public Rate getRate(PropertyGroup pg, Asset consumedItem, List params)(Code)



getRateParams
protected List getRateParams(ObjectScheduleElement ose)(Code)



handleExpandedGpTask
protected void handleExpandedGpTask(Task gpTask, Schedule schedule, Asset consumer, PropertyGroup pg, TimeSpan timespan)(Code)



newPrepositionalPhrase
protected PrepositionalPhrase newPrepositionalPhrase(String preposition, Object io)(Code)



printProjection
protected String printProjection(String msg, Task task)(Code)



publishRemoveFromExpansion
public void publishRemoveFromExpansion(Task subtask)(Code)



setEndTimePreference
protected void setEndTimePreference(NewTask task, long end)(Code)



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



updateAllocationResults
public void updateAllocationResults(Collection planElements)(Code)



Fields inherited from org.cougaar.logistics.plugin.demand.DemandForecastModule
protected transient DemandForecastPlugin dfPlugin(Code)(Java Doc)
protected transient Logger logger(Code)(Java Doc)

Methods inherited from org.cougaar.logistics.plugin.demand.DemandForecastModule
public AssetUtils getAssetUtils()(Code)(Java Doc)
public PlanningFactory getPlanningFactory()(Code)(Java Doc)
public TaskUtils getTaskUtils()(Code)(Java Doc)
public TimeUtils getTimeUtils()(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.