| java.lang.Object org.cougaar.tools.csmart.ui.viewer.OrganizerHelper
OrganizerHelper | public class OrganizerHelper (Code) | | Helper functions for manipulating objects in the Organizer
|
Method Summary | |
public DBExperiment | createExperiment(String originalExperimentName, String experimentName, String experimentId, String trialId) Create an experiment. | protected RecipeComponent | createRecipe(String name, Class cls) | protected RecipeComponent | createRecipeUsingCon(String[] names, Class cls, Class[] con) | public SocietyComponent | createSociety(String name, String socName, Class cls) Create a new society from a node file which enumerates
the names of the agents in the society. | public SocietyComponent | createSociety(String name, String[] filenames, Class cls) Create a society from files, each of which defines an agent. | protected SocietyComponent | createSocietyFromFile() | public void | deleteRecipe(String name) Delete the named recipe from the database. | protected RecipeComponent | getDatabaseRecipe(DbRecipe dbr) | protected RecipeComponent | getDatabaseRecipe(String recipeId, String recipeName) | public static Map | getRecipeNamesFromDatabase() Get the available recipe names from the database for user selection. | protected RecipeComponent | loadRecipeNamed(String name) Load a recipe by name. |
createExperiment | public DBExperiment createExperiment(String originalExperimentName, String experimentName, String experimentId, String trialId)(Code) | | Create an experiment.
Experiment the new experiment or null if any error |
createSociety | public SocietyComponent createSociety(String name, String socName, Class cls)(Code) | | Create a new society from a node file which enumerates
the names of the agents in the society.
Parameters: name - a String node file name Parameters: socName - a String name for the new society Parameters: cls - a Class Class of Society to create a SocietyComponent |
createSociety | public SocietyComponent createSociety(String name, String[] filenames, Class cls)(Code) | | Create a society from files, each of which defines an agent.
Parameters: name - the name of the society Parameters: filenames - the names of files, each of which defines an agent Parameters: cls - the class to create |
deleteRecipe | public void deleteRecipe(String name) throws Exception(Code) | | Delete the named recipe from the database.
Parameters: name - the name of the recipe to delete |
getRecipeNamesFromDatabase | public static Map getRecipeNamesFromDatabase()(Code) | | Get the available recipe names from the database for user selection.
Map of Recipe names to database IDs |
loadRecipeNamed | protected RecipeComponent loadRecipeNamed(String name)(Code) | | Load a recipe by name. Note that the returned recipe may be null
if no such recipe exists.
Parameters: name - a String recipe name to try to load from teh DB a RecipeComponent with that name from the DB, possibly null if none found |
|
|