Difference: DpHipeTools (97 vs. 98)

Revision 982012-10-30 - JavierDiaz

Line: 1 to 1
 
META TOPICPARENT name="WritingTasks"
<-- ANALYTICS CODE - DO NOT EDIT -->
<-- Google Analytics script BEGIN -->
<-- Google Analytics script END -->
Line: 105 to 105
 
In most cases, the type of the prime input is not enough to determine whether a task is applicable to a variable. Your task may only run on a SpecificProduct if it has certain contents: a typical example is a SPIRE task operating on an ObservationContext: clearly, such task should not be listed when a HIFI observation is selected.
Changed:
<
<
This is why you must write a ParameterValidator to restrict a task to certain product contents:
>
>
This is why you must write a ParameterValidator (extend ParameterValidatorAdapter) to restrict a task to certain product contents:
 
 // Java 
    prime = new TaskParameter("spectrum", SpecificProduct.class)

Line: 144 to 144
  Note how the validation logic is now within the parameter validation block, rather than in the preamble or execution block of your task. One advantage is that the execution block of your task can concentrate on the core algorithm.
Changed:
<
<
A validator is mandatory for the task to appear in the Applicable category of the Tasks view. If your task really is very general and applies to a given variable type with no exceptions, write a dummy validator that always accepts input values (or use TaskParameter.TRUE_VALIDATOR).
>
>
A validator is mandatory for the task to appear in the Applicable category of the Tasks view. If your task really is very general and applies to a given variable type with no exceptions, use TaskParameter.TRUE_VALIDATOR. There are also support classes for writing common validators: AnyOfValidator, InstanceOfValidator, PredicateValidator, RangeValidator, RegexValidator in package ia.gui.apps.validator. Please, do not implement ParameterValidator interface directly as it will block extension of it: use ParameterValidatorAdapter (that also detects some validation problems). Note that your validators must be fast, self-contained (with no visible side effects) and not use I/O : they are called frequently and from multiple threads, including the EDT in the case of GUI validation.
 

Task dialogue windows

Line: 718 to 720
 
<-- END OF COMMENT BOX CODE -->

Changed:
<
<
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="Script for Google Analytics" date="1350658115" name="GoogleAnalytics.txt" path="GoogleAnalytics.txt" size="549" user="Main.DavideRizzo" 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"
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="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="" autoattached="1" comment="Task dialogs with groups (group 1)" date="1336469922" name="asciiTableReader_basic.png" path="asciiTableReader_basic.png" size="11957" user="Main.JavierDiaz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="crop input updated to the new look of tasks" date="1275479674" name="crop_input_new.png" path="crop_input_new.png" size="14159" user="Main.JavierDiaz" version="1"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="rotate panel updated to the new look of tasks" date="1275479566" name="rotate_new.png" path="rotate_new.png" size="10857" user="Main.JavierDiaz" version="1"
 
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="crop task with modifier highlighted" date="1254240597" name="crop_modifier.png" path="crop_modifier.png" size="14728" user="Main.JaimeSaiz" version="1"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="Task Preferences panel" date="1337345737" name="TaskPreferences.png" path="TaskPreferences.png" size="22878" user="Main.JavierDiaz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="crop input updated to the new look of tasks" date="1275479674" name="crop_input_new.png" path="crop_input_new.png" size="14159" user="Main.JavierDiaz" version="1"
 
META FILEATTACHMENT attr="" autoattached="1" comment="Task dialogs with groups (group 2)" date="1336469944" name="asciiTableReader_Advanced.png" path="asciiTableReader_Advanced.png" size="21471" user="Main.JavierDiaz" version="1"
Changed:
<
<
META FILEATTACHMENT attr="" autoattached="1" comment="a task showing its outline" date="1337345957" name="TaskOutline.png" path="TaskOutline.png" size="27868" user="Main.JavierDiaz" 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"
Added:
>
>
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"
 
META FILEATTACHMENT attr="" autoattached="1" comment="crop modifier updated to the new look of tasks" date="1275479639" name="crop_modifier_new.png" path="crop_modifier_new.png" size="14021" user="Main.JavierDiaz" version="1"
Deleted:
<
<
META FILEATTACHMENT attr="" autoattached="1" comment="rotate panel updated to the new look of tasks" date="1275479566" name="rotate_new.png" path="rotate_new.png" size="10857" user="Main.JavierDiaz" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="crop updated to the new look of tasks" date="1275479736" name="crop_new.png" path="crop_new.png" size="14211" user="Main.JavierDiaz" version="1"
 
META FILEATTACHMENT attr="" autoattached="1" comment="crop with closed sections updated to the new look of tasks" date="1275479716" name="crop_closed.png" path="crop_closed.png" size="8289" user="Main.JavierDiaz" version="1"
Changed:
<
<
META FILEATTACHMENT attr="" autoattached="1" comment="Task Preferences panel" date="1337345737" name="TaskPreferences.png" path="TaskPreferences.png" size="22878" user="Main.JavierDiaz" version="1"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="crop updated to the new look of tasks" date="1275479736" name="crop_new.png" path="crop_new.png" size="14211" user="Main.JavierDiaz" 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"
META FILEATTACHMENT attr="" autoattached="1" comment="a task showing its outline" date="1337345957" name="TaskOutline.png" path="TaskOutline.png" size="27868" user="Main.JavierDiaz" version="1"
META FILEATTACHMENT attr="h" autoattached="1" comment="Script for Google Analytics" date="1350658115" name="GoogleAnalytics.txt" path="GoogleAnalytics.txt" size="549" user="Main.DavideRizzo" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="Task dialogs with groups (group 1)" date="1336469922" name="asciiTableReader_basic.png" path="asciiTableReader_basic.png" size="11957" user="Main.JavierDiaz" version="1"
 
META TOPICMOVED by="DavideRizzo" date="1272527701" from="Hcss.DpHipeTools" to="Public.DpHipeTools"
 
This site is powered by the TWiki collaboration platform Powered by Perl