Changes between Version 15 and Version 16 of ValidationSimple
- Timestamp:
- Sep 2, 2011, 8:49:21 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ValidationSimple
v15 v16 1 1 = The validator framework = 2 2 3 To create a validator using the BOINC framework, you must supply fourfunctions:3 To create a validator using the BOINC framework, you must supply three functions: 4 4 {{{ 5 5 extern int init_result(RESULT& result, void*& data); 6 6 }}} 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: 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. 8 It returns: 8 9 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. 12 16 13 17 {{{ … … 88 92 return 0; 89 93 } 90 91 double compute_granted_credit(WORKUNIT& wu, vector<RESULT>& results) {92 return median_mean_credit(wu, results);93 }94 95 94 }}}