Java Doc for UIPlugin.java in  » Science » Cougaar12_4 » org » cougaar » mlm » debug » ui » 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.mlm.debug.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.planning.plugin.legacy.SimplePlugin
   org.cougaar.mlm.debug.ui.UIPlugin

UIPlugin
public class UIPlugin extends SimplePlugin implements UISubscriber(Code)
This is an example of a User Interface Plugin. It allows the user to specify the cluster from which to obtain information, and the type of information to display: log plan, expandable tasks, allocatable workflows, assets (assigned to the cluster), and asset schedules (schedules for assets allocated by the cluster). The plan, tasks, and workflows are displayed as trees, and the assets and scheduled assets are displayed as bar graphs. The information displayed is monitored (if from a local cluster) for additions, changes, and deletions, and the displays are updated. This currently assumes there is only one plan ("Reality"). Future: When multiple plans are supported, the plans in each cluster should be displayed, and the user should select a plan for which to obtain information. This extends GenericPluginAdapter which provides the plugin state transition methods. It implements the UserInterfacePluginServesComponent interface which has one method, serveUserInterfaceComponent which gets a reference to the component, used later to obtain cluster object factories and cluster collections.




Method Summary
public  voidexecute()
     Called when any cluster collection has changed.
public  MessageAddressgetClusterIdFromName(String clusterName)
    
public  VectorgetClusterNames()
    
public  VectorgetPhysicalAssetNames()
    
 PlangetPlan()
     Get the plan.
 PlangetPlan(String planName)
     Get named plan.
 voidrawSubscribe(UISubscriber uiSubscriber, UnaryPredicate predicate)
     do the work of subscribe() above.
protected  voidsetupSubscriptions()
    
 voidsubscribe(UISubscriber uiSubscriber, UnaryPredicate predicate)
     Called to subscribe to a cluster collection specified by the predicate. When the cluster collection has changed, the uiPlugin will notify the subscriber.
public synchronized  voidsubscriptionChanged(IncrementalSubscription container)
     UISubscriber interface.



Method Detail
execute
public void execute()(Code)
Called when any cluster collection has changed. Check which cluster collections have changed and notify the subscriber. Synchronized to prevent execute from running before subscribe "records" the subscriber and their subscription.



getClusterIdFromName
public MessageAddress getClusterIdFromName(String clusterName)(Code)



getClusterNames
public Vector getClusterNames()(Code)



getPhysicalAssetNames
public Vector getPhysicalAssetNames()(Code)



getPlan
Plan getPlan()(Code)
Get the plan.



getPlan
Plan getPlan(String planName)(Code)
Get named plan. Return the only plan for now.



rawSubscribe
void rawSubscribe(UISubscriber uiSubscriber, UnaryPredicate predicate)(Code)
do the work of subscribe() above. It is up to the caller to be careful of transaction issues.



setupSubscriptions
protected void setupSubscriptions()(Code)



subscribe
void subscribe(UISubscriber uiSubscriber, UnaryPredicate predicate)(Code)
Called to subscribe to a cluster collection specified by the predicate. When the cluster collection has changed, the uiPlugin will notify the subscriber. Thus, all uiPlugin threads call this method to subscribe to collections of their choice, and the uiPlugin notifies each when its subscription has changed. Synchronized to prevent execute from running before subscribe "records" the subscriber and their subscription. Carefully opens a transaction and then calls the lowlevel routine rawSubscribe.



subscriptionChanged
public synchronized void subscriptionChanged(IncrementalSubscription container)(Code)
UISubscriber interface. Notified when an asset is added, removed, or changed and update our lists of all assets and cluster assets.



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.