| org.cougaar.tools.csmart.recipe.RecipeBase org.cougaar.tools.csmart.recipe.ComplexRecipeBase
All known Subclasses: org.cougaar.tools.csmart.recipe.ComponentCollectionRecipe, org.cougaar.tools.csmart.recipe.CompleteAgentRecipe,
ComplexRecipeBase | public class ComplexRecipeBase extends RecipeBase implements ComplexRecipeComponent,Serializable(Code) | | ComplexRecipeBase.java
Base component for a ComplexRecipe. A ComplexRecipe is a recipe that requires
storage in both the recipe tables and an assembly in the asb table.
The primary key is an assembly Id which is a hidden property of the recipe.
This key is stored as the primary argument in the recipe args table.
On load, the assembly Id is used to obtain all recipe related data from the
assembly tables.
Created: Thu Jun 20 13:52:13 2002
|
ASSEMBLY_PROP | final public static String ASSEMBLY_PROP(Code) | | Identifier String for the hidden Assembly Id Property *
|
DESCRIPTION_RESOURCE_NAME | protected static String DESCRIPTION_RESOURCE_NAME(Code) | | |
PROP_TARGET_COMPONENT_QUERY | final public static String PROP_TARGET_COMPONENT_QUERY(Code) | | |
PROP_TARGET_COMPONENT_QUERY_DESC | final public static String PROP_TARGET_COMPONENT_QUERY_DESC(Code) | | |
PROP_TARGET_COMPONENT_QUERY_DFLT | final public static String PROP_TARGET_COMPONENT_QUERY_DFLT(Code) | | |
ComplexRecipeBase | public ComplexRecipeBase(String name)(Code) | | |
addComponentData | public ComponentData addComponentData(ComponentData data)(Code) | | Adds all the component data relevant to this recipe.
Parameters: data - a ComponentData value |
addTargetQueryProperty | public void addTargetQueryProperty()(Code) | | |
getAssemblyId | public String getAssemblyId()(Code) | | Get the assembly id for this Recipe.
a String which is the assembly id for this Recipe |
getDescription | public URL getDescription()(Code) | | Returns the description of this society
an URL value |
initProperties | public void initProperties()(Code) | | Initializes the hidden assembly id property, or CDATA
|
saveToDatabase | public boolean saveToDatabase()(Code) | | Save the recipe to the database. This save performs the
saving of all data to the assembly tables. It then calls
it's parents save to save the assembly Id and recipe name
to the recipe tables.
a boolean value |
|
|