Difference: DpHipeTools (43 vs. 44)

Revision 442009-09-29 - JaimeSaiz

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

Adding Tools to HIPE

Line: 10 to 10
  -->
Changed:
<
<
Task, tools and variables
>
>
Task, tools and variables
 
<-- summary -->
Tools are processing units that operate on specific data elements.
Line: 112 to 112
 The system generates a default input dialog for all registered tasks within the software. As the system does not know the intent of your task, it can only provide a dry-listing of all requested parameters; such a dialog may not be suitable for your purposes.

The default dialog for the crop task:

Changed:
<
<
crop.jpg
>
>
crop.png
  As for instance you may want to have more control over how the input parameters are presented to the user:
  • you may only want to provide a sub-set of parameters (and leave the full-set to expert users on the command-line)
Line: 128 to 128
 

Parameter Modifiers

Changed:
<
<
The system provides a default dialog displaying an input area for setting the values of the parameter based on a composition of Modifiers
>
>
The system provides a default dialog displaying an input area for setting the values of the parameter based on a composition of Modifiers.
  The input area for the crop task:
Changed:
<
<
crop_input.jpg
>
>
crop_input.png
  The composition of Modifiers is created based on the types of the values of the Task Parameters of the Task Signature.
Changed:
<
<
The Modifier for the first Parameter of the crop task:
crop_modifier.jpg
>
>
The Modifier for the row1 Parameter of the crop task:
crop_modifier.png
 
Changed:
<
<
Currently the system contains basic implementation for the simple types Boolean, Integer, Float, Long, Double, String and few more, so there's still a lot of space for improvements and contribution. You can find the general available modifiers in package herschel.ia.gui.apps.modifier.
>
>
Currently the system contains basic implementation for the simple types Boolean, Integer, Float, Long, Double, String and few more, so there's still a lot of space for improvements and contribution. You can find the general available modifiers in package herschel.ia.gui.apps.modifier; please consult the Javadoc of your HIPE installation.
 
Changed:
<
<
If your Task Parameter isn't one of the aforementioned types, you could:
  • Implement a Modifier
>
>
If the default parameter doesn't fit for your Task Parameter, you can:
  • Implement a Modifier,
 
  • Register it to the system.
Changed:
<
<
Alternatively, you could want to write your specific Modifier for one of the already available types. In that case, you could skip the registration, and just create your modifier in your Java code within a custom Signature Component.
>
>
Alternatively, you could want to write your specific Modifier for one of the already available types. In that case, you could create your modifier in a custom Signature Component.
  Warning, important NOTE:
The following behaviours and limitations are present in the provided modifiers:
Line: 179 to 179
  "herschel.ia.MyClass")
Changed:
<
<
In case the Modifier you have created is only applicable to a specific task or even to a specific parameter of a specific task you can simply assign it to the Task Parameter itself:
>
>
In case the Modifier you have created is only applicable to a specific task or even to a specific parameter of a specific task, you can simply assign it to the applicable Task Parameter:
 

Changed:
<
<
// In your task constructor TaskParameter parameter = new TaskParameter("input", String.class); parameter.setModifier(new MyModifer());
>
>
// YourTask constructor public YourTask() { addTaskParameter(new TaskParameter("someInput", MyClass.class)); ... }

// Customize your modifiers @Override public Map<String, Modifier> getCustomModifiers() { Map<String, Modifier> map = new LinkedHashMap<String, Modifier>(); map.put("someInput", new MyModifier()); return map; }

 
Added:
>
>
Warning, important NOTE:
Using TaskParameter.setModifier() for customizing modifiers is deprecated.
This mechanism is unsafe, even dangerous, because it implies executing GUI code at task creation, which is done in a non-GUI thread.
In consequence, this method is planned to be removed.
 

Signature Components

Line: 525 to 540
 
<-- Author: JorgoBakker - 21 Dec 2007 -->
Deleted:
<
<
 
META FILEATTACHMENT attr="h" autoattached="1" comment="Rotate Task Panel" date="1203583605" name="rotate_panel.jpg" path="rotate_panel.jpg" size="6678" user="Main.NicolaDeCandussio" version="1"
Changed:
<
<
META FILEATTACHMENT attr="" autoattached="1" comment="" date="1203070875" name="crop_input.jpg" path="crop_input.jpg" size="17033" user="Main.NicolaDeCandussio" version="1"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="crop task with input highlighted" date="1254240567" name="crop_input.png" path="crop_input.png" size="14865" user="Main.JaimeSaiz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="Tasks and variables" date="1254240686" name="tasks.png" path="tasks.png" size="13304" user="Main.JaimeSaiz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="" date="1254239744" name="crop.png" path="crop.png" size="14045" user="Main.JaimeSaiz" version="1"
 
META FILEATTACHMENT attr="h" autoattached="1" comment="Rotate Alternative Signature" date="1203074625" name="rotate.jpg" path="rotate.jpg" size="19901" user="Main.NicolaDeCandussio" version="1"
META FILEATTACHMENT attr="h" autoattached="1" comment="Task, tools and variables" date="1198422543" name="hipe-tools.jpg" path="hipe-tools.jpg" size="13675" user="Main.JorgoBakker" version="1"
Changed:
<
<
META FILEATTACHMENT attr="h" autoattached="1" comment="modifier" date="1203071348" name="crop_modifier.jpg" path="crop_modifier.jpg" size="16408" user="Main.NicolaDeCandussio" version="1"
META FILEATTACHMENT attr="h" autoattached="1" comment="" date="1203007458" name="crop.jpg" path="crop.jpg" size="20487" user="Main.NicolaDeCandussio" version="1"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="crop task with modifier highlighted" date="1254240597" name="crop_modifier.png" path="crop_modifier.png" size="14728" user="Main.JaimeSaiz" version="1"
 
This site is powered by the TWiki collaboration platform Powered by Perl