Changes between Version 15 and Version 16 of ValidationSimple


Ignore:
Timestamp:
Sep 2, 2011, 8:49:21 PM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ValidationSimple

    v15 v16  
    11= The validator framework =
    22
    3 To create a validator using the BOINC framework, you must supply four functions:
     3To create a validator using the BOINC framework, you must supply three functions:
    44{{{
    55extern int init_result(RESULT& result, void*& data);
    66}}}
    7 This takes a result, reads its output file(s), parses them into a memory structure, and returns (via the 'data' argument) a pointer to this structure. It returns:
     7This takes a result, reads its output file(s), parses them into a memory structure, and returns (via the 'data' argument) a pointer to this structure.
     8It returns:
    89
    9     * Zero on success,
    10     * ERR_OPENDIR if there was a transient error, e.g. the output file is on a network volume that is not available. The validator will try this result again later.
    11     * Any other return value indicates a permanent error. Example: an output file is missing, or has a syntax error. The result will be marked as invalid.
     10 * Zero on success,
     11 * ERR_OPENDIR if there was a transient error, e.g. the output file is on a network volume that is not available.
     12  The validator will try this result again later.
     13 * Any other return value indicates a permanent error.
     14  Example: an output file is missing, or has a syntax error.
     15  The result will be marked as invalid.
    1216
    1317{{{
     
    8892    return 0;
    8993}
    90 
    91 double compute_granted_credit(WORKUNIT& wu, vector<RESULT>& results) {
    92     return median_mean_credit(wu, results);
    93 }
    94 
    9594}}}