Java Doc for DBExperiment.java in  » Science » Cougaar12_4 » org » cougaar » tools » csmart » experiment » 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.tools.csmart.experiment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.tools.csmart.experiment.ExperimentBase
   org.cougaar.tools.csmart.experiment.DBExperiment

DBExperiment
final public class DBExperiment extends ExperimentBase (Code)
A CSMART Experiment. Holds the components being run, and the configuration of host/node/agents.



Constructor Summary
public  DBExperiment(String name, SocietyComponent societyComponent, RecipeComponent[] recipes)
    
public  DBExperiment(String name)
    
public  DBExperiment(String name, String expID, String trialID)
    

Method Summary
public  ModifiableComponentcopy(String uniqueName)
     Return a deep copy of the experiment.
public  voiddumpHNA()
     Dumps a Host / Node / Agent mapping to an XML file.
public  voiddumpINIFiles()
     Dump out the INI files for the first trial to the local results directory for that trial.
public  booleangenerateCompleteSociety()
    
public  IteratorgetConfigFiles(NodeComponent[] nodes)
    
public  ComponentDatagetSocietyComponentData()
     Get component data for the society in the experiment.
public  booleanhasUnboundProperties()
     If the experiment has still unbound properties, then we can't run it yet.
public  voidsave(DBConflictHandler ch)
     Save the experiment to the database, regardless of whether or not it's been modified. To avoid useless saves, the caller should check the modified flag with isModified.
protected  voidsetDefaultNodeArguments()
    
public  voidsetName(String newName)
     Sets the Name of this Component.


Constructor Detail
DBExperiment
public DBExperiment(String name, SocietyComponent societyComponent, RecipeComponent[] recipes)(Code)



DBExperiment
public DBExperiment(String name)(Code)



DBExperiment
public DBExperiment(String name, String expID, String trialID)(Code)




Method Detail
copy
public ModifiableComponent copy(String uniqueName)(Code)
Return a deep copy of the experiment. Called when an experiment is selected in the organizer. Add experiments and society to workspace. the copy of the experiment.



dumpHNA
public void dumpHNA()(Code)
Dumps a Host / Node / Agent mapping to an XML file. The stored file can then be imported at a later date to re-create all mappings in the current experiment.



dumpINIFiles
public void dumpINIFiles()(Code)
Dump out the INI files for the first trial to the local results directory for that trial. This saves the experiment to the database. The caller is responsible for not unnecessarily saving the experiment to the database.



generateCompleteSociety
public boolean generateCompleteSociety()(Code)
Generate a complete ComponentData tree for the experiment a boolean, true if any component was removed



getConfigFiles
public Iterator getConfigFiles(NodeComponent[] nodes)(Code)



getSocietyComponentData
public ComponentData getSocietyComponentData()(Code)
Get component data for the society in the experiment. If the experiment is not in the database, then it constructs the society component data here. ComponentData the component data for the society



hasUnboundProperties
public boolean hasUnboundProperties()(Code)
If the experiment has still unbound properties, then we can't run it yet.
For each property in the experiment, if it is not set, and we don't have a set of experimental values, return true; a boolean value



save
public void save(DBConflictHandler ch)(Code)
Save the experiment to the database, regardless of whether or not it's been modified. To avoid useless saves, the caller should check the modified flag with isModified. This method specifically does not check the modified flag to allow the user to force saving the experiment. If the experiment has been modified, save it to the database. This creates the full ComponentData tree and then uses PopulateDb to save it to the database
Parameters:
  ch - a DBConflictHandler to graphically handle conflicts
See Also:   org.cougaar.tools.csmart.core.db.PopulateDb



setDefaultNodeArguments
protected void setDefaultNodeArguments()(Code)



setName
public void setName(String newName)(Code)
Sets the Name of this Component.
Parameters:
  newName - - New Component Name



Fields inherited from org.cougaar.tools.csmart.experiment.ExperimentBase
ComponentData completeSociety(Code)(Java Doc)
transient LeafOnlyConfigWriter configWriter(Code)(Java Doc)
ReadOnlyProperties defaultNodeArguments(Code)(Java Doc)
transient Logger log(Code)(Java Doc)
boolean modified(Code)(Java Doc)
final List recipes(Code)(Java Doc)

Methods inherited from org.cougaar.tools.csmart.experiment.ExperimentBase
final public void addComponent(ModifiableComponent comp) throws IllegalArgumentException(Code)(Java Doc)
final public HostComponent addHost(String name) throws IllegalArgumentException(Code)(Java Doc)
final public NodeComponent addNode(String name) throws IllegalArgumentException(Code)(Java Doc)
final void addNodeComponent(ExperimentNode node)(Code)(Java Doc)
final public void addRecipeComponent(RecipeComponent recipe) throws IllegalArgumentException(Code)(Java Doc)
final public void addSocietyComponent(SocietyComponent sc) throws IllegalArgumentException(Code)(Java Doc)
final public boolean agentNameUnique(String name)(Code)(Java Doc)
final boolean askComponentsToAddCDATA()(Code)(Java Doc)
final void createConfigWriter()(Code)(Java Doc)
final public void createDefaultConfiguration()(Code)(Java Doc)
final void createLogger()(Code)(Java Doc)
final void createObserver()(Code)(Java Doc)
final public void experimentStopped()(Code)(Java Doc)
final public void fireModification()(Code)(Java Doc)
final void generateHNACDATA()(Code)(Java Doc)
final public AgentComponent[] getAgents()(Code)(Java Doc)
final public List getAgentsList()(Code)(Java Doc)
final public String getCommAsbID()(Code)(Java Doc)
final public int getComponentCount()(Code)(Java Doc)
final public List getComponents()(Code)(Java Doc)
final public ModifiableComponent[] getComponentsAsArray()(Code)(Java Doc)
final public Properties getDefaultNodeArguments()(Code)(Java Doc)
final public URL getDescription()(Code)(Java Doc)
final public String getExperimentID()(Code)(Java Doc)
final public String getExperimentName()(Code)(Java Doc)
final public HostComponent[] getHostComponents()(Code)(Java Doc)
final public HostComponent[] getHostComponentsNoReconcile()(Code)(Java Doc)
final public NodeComponent[] getNodeComponents()(Code)(Java Doc)
final public RecipeComponent getRecipeComponent(int i) throws IndexOutOfBoundsException(Code)(Java Doc)
final public int getRecipeComponentCount()(Code)(Java Doc)
final public RecipeComponent[] getRecipeComponents()(Code)(Java Doc)
final public File getResultDirectory()(Code)(Java Doc)
final public SocietyComponent getSocietyComponent()(Code)(Java Doc)
final public int getSocietyComponentCount()(Code)(Java Doc)
final public String getTrialID()(Code)(Java Doc)
final public boolean hasConfiguration()(Code)(Java Doc)
final public void importHNA(Component parent)(Code)(Java Doc)
final public void initProperties()(Code)(Java Doc)
final public boolean isEditInProgress()(Code)(Java Doc)
final public boolean isModified()(Code)(Java Doc)
final public boolean isRunInProgress()(Code)(Java Doc)
final public boolean isRunnable()(Code)(Java Doc)
final public void removeComponent(ModifiableComponent comp) throws IllegalArgumentException(Code)(Java Doc)
final public void removeHost(HostComponent hostComponent)(Code)(Java Doc)
final public void removeNode(NodeComponent nc)(Code)(Java Doc)
final public void removeRecipeComponent(RecipeComponent recipe)(Code)(Java Doc)
final public void removeSocietyComponent()(Code)(Java Doc)
final public void renameHost(HostComponent hostComponent, String name) throws IllegalArgumentException(Code)(Java Doc)
final public void renameNode(NodeComponent nc, String name) throws IllegalArgumentException(Code)(Java Doc)
final public void resetModified()(Code)(Java Doc)
abstract public void save(DBConflictHandler ch)(Code)(Java Doc)
final public void setCommAsbID(String id)(Code)(Java Doc)
abstract protected void setDefaultNodeArguments()(Code)(Java Doc)
final public void setEditInProgress(boolean newEditInProgress)(Code)(Java Doc)
final public void setExperimentID(String expID)(Code)(Java Doc)
final public void setRecipeComponents(RecipeComponent[] newRecipes)(Code)(Java Doc)
final public void setResultDirectory(File resultDirectory)(Code)(Java Doc)
final public void setRunInProgress(boolean newRunInProgress)(Code)(Java Doc)
final void setSocietyComponent(SocietyComponent society)(Code)(Java Doc)
final void setTrialID(String trialID)(Code)(Java Doc)
final public void stop()(Code)(Java Doc)
final public String toString()(Code)(Java Doc)
final public void updateNameServerHostName()(Code)(Java Doc)
final public void writeContents(String filename, OutputStream out)(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.