Java Doc for DecorationPlugin.java in  » Science » Cougaar12_4 » org » cougaar » glm » plugins » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.planning.plugin.legacy.SimplePlugin
   org.cougaar.glm.plugins.DecorationPlugin

All known Subclasses:   org.cougaar.glm.plugins.GLMDecorationPlugin,
DecorationPlugin
abstract public class DecorationPlugin extends SimplePlugin (Code)
Defines common functions described in SimplePlugin. The plugin is decorated with the proper BasicProcessor at run time by the PluginDecorator.
See Also:   PluginDecorator
See Also:   BasicProcessor


Field Summary
public static  longNEW_CUSTOMER_WAIT
    
final public static  longNEW_CUSTOMER_WAIT_DEFAULT
    
final public static  StringNEW_CUSTOMER_WAIT_PROP
    
final public  StringSUPPLYTYPES
    
protected  StringclassName_
    
protected  MessageAddressclusterId_
    
protected  booleanconfigured_
    
public  org.cougaar.planning.ldm.plan.RoleconsumerRole_
    
protected  longextraCustomerDelay_
    
protected  booleaninvoke_
    
protected  LoggingServicelogger
    
protected  StringmyOrgName_
    
protected  OrganizationmyOrganization_
    
protected  HashtablemyParams_
    
protected  VectorplugInSubscriptions_
    
protected  HashtableprocessorSubscriptions_
    
protected  VectortaskProcessors_
    
public  inttransCount_
    

Constructor Summary
public  DecorationPlugin()
    

Method Summary
 voidaddTaskProcessor(BasicProcessor task_processor)
     Called by the PluginDecorator to set the task processor.
public  booleanareSubscriptionsChanged()
    
public  booleanareSubscriptionsChanged(Vector subscriptions)
    
public  booleanareSubscriptionsChangedPrint(Vector subscriptions)
    
public  voidclearRecordedCustomers()
    
abstract protected  voiddecoratePlugin()
    
public  voidexecute()
     Invokes all of the processors used to decorate this plugin.
public  PluginDelegategetMyDelegate()
    
public  ObjectgetParam(String key)
    
public  booleanhasSeenAllConsumers()
    
public  booleanisSubscriptionChanged(IncrementalSubscription sub)
    
public  voidmonitorPluginSubscription(IncrementalSubscription subscript)
    
public  voidmonitorSubscription(BasicProcessor bp, IncrementalSubscription subscript)
    
public  booleanpublishAddObject(Object obj)
    
public  voidpublishAddToExpansion(Task parent, Task subtask)
    
public  voidpublishRemoveFromExpansion(Task subtask)
    
protected  voidreadParameters()
    
public  voidrecordCustomer(String consumer)
    
public  booleanrehydrated()
    
protected  voidrunProcessors()
    
public  voidsetLoggingService(LoggingService loggingService)
    
protected  voidsetupSubscriptions()
    
public  ObjectsubscriptionChangedObject(IncrementalSubscription sub)
    
public  AlarmwakeAfterDelay(int delay)
    

Field Detail
NEW_CUSTOMER_WAIT
public static long NEW_CUSTOMER_WAIT(Code)



NEW_CUSTOMER_WAIT_DEFAULT
final public static long NEW_CUSTOMER_WAIT_DEFAULT(Code)



NEW_CUSTOMER_WAIT_PROP
final public static String NEW_CUSTOMER_WAIT_PROP(Code)



SUPPLYTYPES
final public String SUPPLYTYPES(Code)



className_
protected String className_(Code)



clusterId_
protected MessageAddress clusterId_(Code)
this plugin's Organization cluster identifier



configured_
protected boolean configured_(Code)



consumerRole_
public org.cougaar.planning.ldm.plan.Role consumerRole_(Code)



extraCustomerDelay_
protected long extraCustomerDelay_(Code)
Set this for additional delay after all customers have been seen



invoke_
protected boolean invoke_(Code)



logger
protected LoggingService logger(Code)



myOrgName_
protected String myOrgName_(Code)



myOrganization_
protected Organization myOrganization_(Code)



myParams_
protected Hashtable myParams_(Code)



plugInSubscriptions_
protected Vector plugInSubscriptions_(Code)



processorSubscriptions_
protected Hashtable processorSubscriptions_(Code)



taskProcessors_
protected Vector taskProcessors_(Code)
a vector of BasicProcessors for this plugin



transCount_
public int transCount_(Code)




Constructor Detail
DecorationPlugin
public DecorationPlugin()(Code)




Method Detail
addTaskProcessor
void addTaskProcessor(BasicProcessor task_processor)(Code)
Called by the PluginDecorator to set the task processor.



areSubscriptionsChanged
public boolean areSubscriptionsChanged()(Code)



areSubscriptionsChanged
public boolean areSubscriptionsChanged(Vector subscriptions)(Code)



areSubscriptionsChangedPrint
public boolean areSubscriptionsChangedPrint(Vector subscriptions)(Code)



clearRecordedCustomers
public void clearRecordedCustomers()(Code)



decoratePlugin
abstract protected void decoratePlugin()(Code)



execute
public void execute()(Code)
Invokes all of the processors used to decorate this plugin. The first time execute() is invoked, it configures the plugin by setting the task processor, and unsubscribing to 'self' (subscribed in setSubscriptions()). subclasses need to call runProcessors()!



getMyDelegate
public PluginDelegate getMyDelegate()(Code)



getParam
public Object getParam(String key)(Code)



hasSeenAllConsumers
public boolean hasSeenAllConsumers()(Code)



isSubscriptionChanged
public boolean isSubscriptionChanged(IncrementalSubscription sub)(Code)



monitorPluginSubscription
public void monitorPluginSubscription(IncrementalSubscription subscript)(Code)



monitorSubscription
public void monitorSubscription(BasicProcessor bp, IncrementalSubscription subscript)(Code)



publishAddObject
public boolean publishAddObject(Object obj)(Code)



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



publishRemoveFromExpansion
public void publishRemoveFromExpansion(Task subtask)(Code)



readParameters
protected void readParameters()(Code)



recordCustomer
public void recordCustomer(String consumer)(Code)



rehydrated
public boolean rehydrated()(Code)



runProcessors
protected void runProcessors()(Code)



setLoggingService
public void setLoggingService(LoggingService loggingService)(Code)



setupSubscriptions
protected void setupSubscriptions()(Code)



subscriptionChangedObject
public Object subscriptionChangedObject(IncrementalSubscription sub)(Code)



wakeAfterDelay
public Alarm wakeAfterDelay(int delay)(Code)



Methods inherited from org.cougaar.planning.plugin.legacy.SimplePlugin
public AllocationResult createEstimatedAllocationResult(Task t, double confidenceRating, boolean success)(Code)(Java Doc)
public void createPublishExpansion(Task parent)(Code)(Java Doc)
final protected void cycle()(Code)(Java Doc)
abstract protected void execute()(Code)(Java Doc)
final public void initialize() throws StateModelException(Code)(Java Doc)
public void load(Object object) throws StateModelException(Code)(Java Doc)
final protected void prerun()(Code)(Java Doc)
final public void resume() throws StateModelException(Code)(Java Doc)
protected void setExecutionDelay(long minDelay, long maxDelay)(Code)(Java Doc)
abstract protected void setupSubscriptions()(Code)(Java Doc)
final public void start() throws StateModelException(Code)(Java Doc)
final public void stop() throws StateModelException(Code)(Java Doc)
final public void suspend() throws StateModelException(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.