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


org.cougaar.core.plugin.ComponentPlugin
   org.cougaar.logistics.plugin.demand.DemandForecastPlugin

DemandForecastPlugin
public class DemandForecastPlugin extends ComponentPlugin implements UtilsProvider(Code)
The DemandForecastPlugin is the Glue of demand generation. It handles all blackboard services for its modules, facilitates inter-module communication and manages the subscriptions. All modules are called from the DemandForecastPlugin.

Inner Class :public class OrgActivityPredicate implements UnaryPredicate

Field Summary
final public  StringPROJ_EXPANDER
    
final public  StringREQ_EXPANDER
    
final public  StringSUPPLY_PG_CLASS
    
final public  StringSUPPLY_TYPE
    
final public  StringTASK_SCHEDULER_OFF
    
protected  longexecutePeriod
    
 LogisticsOPlanlogOPlan
    


Method Summary
protected  voidaddNewPG(PropertyGroup pg)
    
public  voidautomatedSelfTest()
    
protected  voidcheckAndProcessHashSubscriptions(HashSet justExpandedPGs)
     This method goes through the subscriptions hash table and sees if any of the subscriptions have changed.
protected  voidexecute()
    
public  Collectionfilter(UnaryPredicate predicate)
    
public  AssetUtilsgetAssetUtils()
    
public  MessageAddressgetClusterId()
    
public  longgetCurrentTimeMillis()
    
public  longgetLogOPlanEndTime()
    
public  longgetLogOPlanStartTime()
    
public  LoggingServicegetLoggingService(Object requestor)
    
public  AssetgetMEI(PropertyGroup pg)
    
public  OrganizationgetMyOrganization()
    
public  StringgetOrgName()
    
public  SchedulegetParameterSchedule(PropertyGroup pg, Collection pgInputs, TimeSpan projectSpan)
    
protected  longgetPeriod()
    
public  PlanningFactorygetPlanningFactory()
    
public  CollectiongetPredicates(PropertyGroup pg)
    
public  ScheduleUtilsgetScheduleUtils()
    
protected  longgetStartOfPeriod(long timeIn)
     Get the time in milliseconds that would be midnight of the day before or first thing in the morning today.
protected  CollectiongetSubscriptions(PropertyGroup pg)
    
public  ClassgetSupplyClassPG()
    
public  StringgetSupplyType()
    
public  TaskUtilsgetTaskUtils()
    
protected  CollectiongetTasksWithoutPEs(Collection tasks)
    
public  TimeUtilsgetTimeUtils()
    
public  voidload()
    
public  CollectionprojectSupplySet(Task parentTask, Asset consumedItem)
     Returns a subset of project supply tasks for a given asset, for a given parent generate projection task's UID.
public  booleanpublishAdd(Object o)
    
public  voidpublishAddExpansion(Expansion expansion)
    
public  voidpublishAddToExpansion(Task parent, Task subtask)
    
public  booleanpublishChange(Object o)
    
public  booleanpublishRemove(Object o)
    
protected  voidsetupSubscriptions()
    
public  voidunload()
    
public  voidupdateStartAndEndTimes()
    

Field Detail
PROJ_EXPANDER
final public String PROJ_EXPANDER(Code)



REQ_EXPANDER
final public String REQ_EXPANDER(Code)



SUPPLY_PG_CLASS
final public String SUPPLY_PG_CLASS(Code)



SUPPLY_TYPE
final public String SUPPLY_TYPE(Code)



TASK_SCHEDULER_OFF
final public String TASK_SCHEDULER_OFF(Code)



executePeriod
protected long executePeriod(Code)



logOPlan
LogisticsOPlan logOPlan(Code)





Method Detail
addNewPG
protected void addNewPG(PropertyGroup pg)(Code)



automatedSelfTest
public void automatedSelfTest()(Code)
Self-Test



checkAndProcessHashSubscriptions
protected void checkAndProcessHashSubscriptions(HashSet justExpandedPGs)(Code)
This method goes through the subscriptions hash table and sees if any of the subscriptions have changed. For each subscription thats changed its PGs are collected in a set (so it doesn't exist more than once). The resultant PG collection are set off to be processed (ie get the MEI and GP task and re expand ).



execute
protected void execute()(Code)



filter
public Collection filter(UnaryPredicate predicate)(Code)



getAssetUtils
public AssetUtils getAssetUtils()(Code)



getClusterId
public MessageAddress getClusterId()(Code)



getCurrentTimeMillis
public long getCurrentTimeMillis()(Code)



getLogOPlanEndTime
public long getLogOPlanEndTime()(Code)



getLogOPlanStartTime
public long getLogOPlanStartTime()(Code)



getLoggingService
public LoggingService getLoggingService(Object requestor)(Code)



getMEI
public Asset getMEI(PropertyGroup pg)(Code)



getMyOrganization
public Organization getMyOrganization()(Code)



getOrgName
public String getOrgName()(Code)



getParameterSchedule
public Schedule getParameterSchedule(PropertyGroup pg, Collection pgInputs, TimeSpan projectSpan)(Code)



getPeriod
protected long getPeriod()(Code)



getPlanningFactory
public PlanningFactory getPlanningFactory()(Code)



getPredicates
public Collection getPredicates(PropertyGroup pg)(Code)



getScheduleUtils
public ScheduleUtils getScheduleUtils()(Code)



getStartOfPeriod
protected long getStartOfPeriod(long timeIn)(Code)
Get the time in milliseconds that would be midnight of the day before or first thing in the morning today. - the time in milliseconds that represents first thing in themorning today



getSubscriptions
protected Collection getSubscriptions(PropertyGroup pg)(Code)



getSupplyClassPG
public Class getSupplyClassPG()(Code)



getSupplyType
public String getSupplyType()(Code)



getTaskUtils
public TaskUtils getTaskUtils()(Code)



getTasksWithoutPEs
protected Collection getTasksWithoutPEs(Collection tasks)(Code)
Filters out tasks that already have PEs -- fix for bug #1695
Parameters:
  tasks - - possibly from added list Collection - tasks that have no PEs



getTimeUtils
public TimeUtils getTimeUtils()(Code)



load
public void load()(Code)



projectSupplySet
public Collection projectSupplySet(Task parentTask, Asset consumedItem)(Code)
Returns a subset of project supply tasks for a given asset, for a given parent generate projection task's UID.
Parameters:
  parentTask - the generate projects tasks that was expanded all project supply tasks of the parent generate projections task



publishAdd
public boolean publishAdd(Object o)(Code)



publishAddExpansion
public void publishAddExpansion(Expansion expansion)(Code)



publishAddToExpansion
public void publishAddToExpansion(Task parent, Task subtask)(Code)



publishChange
public boolean publishChange(Object o)(Code)



publishRemove
public boolean publishRemove(Object o)(Code)



setupSubscriptions
protected void setupSubscriptions()(Code)



unload
public void unload()(Code)



updateStartAndEndTimes
public void updateStartAndEndTimes()(Code)



Methods inherited from org.cougaar.core.plugin.ComponentPlugin
abstract protected void execute()(Code)(Java Doc)
protected ConfigFinder getConfigFinder()(Code)(Java Doc)
abstract 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.