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


org.cougaar.planning.plugin.legacy.SimplePlugin
   org.cougaar.lib.plugin.UTILLdmXMLPlugin

UTILLdmXMLPlugin
public class UTILLdmXMLPlugin extends SimplePlugin implements LDMPluginServesLDM(Code)
 Reads an ldm xml file and populates the Cluster with the assets 
 found there.  
 By default, looks for files of the form .ldm.xml
 The xml files can be anywhere the ConfigFinder looks.
 For example, for TOPS, the files are in the data directory, e.g.
 /opt/alp/plugins/TOPS/data/TRANSCOM.ldm.xml
 This is not on the default ConfigFinder path, so you have to add a 
 system parameter like this to setarguments.csh:
 -Dorg.cougaar.config.path=$COUGAAR_INSTALL_PATH/plugins/TOPS/data;
 NOTE : the trailing semi-colon is ABSOLUTELY necessary.
 Parameters :
 debug   - when true, tells of each items published to log plan
 ldmFile - lets you specify the ldm xml file to be anything you want
 


Field Summary
 AggregateAssetParseraggregateAssetParser
    
 InstanceParserinstanceParser
    
 LoggingServicelogger
    
 ParamParserparamParser
    
 PrototypeParserprototypeParser
    


Method Summary
protected  booleandidSpawn()
    
protected  voidexecute()
    
protected  StringgetFileName()
    
 Looks for a file called .ldm.xml OR optionally a 
 a file with the same name as the ldmFile variable.
protected  LoggingServicegetLoggingService()
     Get the logging service, for subclass use.
protected  DocumentgetParsedDocument()
    
 Returns a document that represents the parsed xml file returned by getFileName.
 StringgetStringParam(String name)
    
 Get the value of the parameter from those that are defined in the
 .ini after each plugin.
final public  voidsetLoggingService(LoggingService bs)
    
protected  voidsetupSubscriptions()
     Load the data from the file synchronously.

Field Detail
aggregateAssetParser
AggregateAssetParser aggregateAssetParser(Code)



instanceParser
InstanceParser instanceParser(Code)



logger
LoggingService logger(Code)



paramParser
ParamParser paramParser(Code)



prototypeParser
PrototypeParser prototypeParser(Code)





Method Detail
didSpawn
protected boolean didSpawn()(Code)



execute
protected void execute()(Code)
Do nothing function



getFileName
protected String getFileName()(Code)
 Looks for a file called .ldm.xml OR optionally a 
 a file with the same name as the ldmFile variable.
 Optionally prepends the "envDir" directory to the path, which
 can be used for finer control over finding of files (usually not needed).
 Subclass to look for a file with a different extension
 This file will probably be in the "data" directory.
 



getLoggingService
protected LoggingService getLoggingService()(Code)
Get the logging service, for subclass use.



getParsedDocument
protected Document getParsedDocument()(Code)
 Returns a document that represents the parsed xml file returned by getFileName.
 Uses ConfigFileFinder to find the .ldm.xml file and any xml entity references within 
 the file.
 Need to provide an entity resolver to the parser.
 The entity resolver is just a wrapper of the ConfigFinder.
 

See Also:   UTILLdmXMLPlugin.getFileName
See Also:   org.cougaar.lib.plugin.UTILEntityResolver.resolveEntity
See Also:   org.cougaar.util.ConfigFinder.open document that we can query for assets



getStringParam
String getStringParam(String name)(Code)
 Get the value of the parameter from those that are defined in the
 .ini after each plugin.
 

Parameters:
  the - name of the parameter the parameter named name, if there is one defined



setLoggingService
final public void setLoggingService(LoggingService bs)(Code)



setupSubscriptions
protected void setupSubscriptions()(Code)
Load the data from the file synchronously. We'll not actually do anything later on. Does not create assets if being rehydrated.



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.