Difference: DpHipeTools (40 vs. 41)

Revision 412009-06-09 - JaimeSaiz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

Adding Tools to HIPE

Line: 335 to 335
  // Known categories to which a tool may belong to public enum Category { SPIRE, PACS, HIFI, GENERAL, IMAGE }

Added:
>
>
// Whether the tool can cope with the given values; that is, if they can be associated to the input parameters boolean canHandle(List<?> values);

// Whether the tool can cope with the given value; that is, if it can be associated to the prime input boolean canHandle(Object value);

// Get an array of categories to which this tool belongs to Category[] getCategories();

// Return the set of input parameters List<Parameter> getInputs();

  // Get the tool name String getName();
Added:
>
>
// Return the prime input parameter Parameter getPrimeInput();

// Return the source code of this tool SourceCode getSourceCoe();

  // Get the actual object that does the work Object getToolObject();

// Set the actual object that does the work void setToolObject(Object o);

Changed:
<
<
// Get an array of categories to which this tool belongs to Category[] getCategories();

// Return the prime input parameter Parameter getPrimeInput();

>
>
// Returns whether this tool is able to be executed boolean isApplicable();
 } You provide the variable types you are interested in within the prime input: just return a ToolParameter initiated with the proper class of data you want to handle.
 
This site is powered by the TWiki collaboration platform Powered by Perl