ProcUnit::SetUnitJudge

Sets judge value of a processing unit

int SetUnitJudge() {
   int  judge
}

int SetUnitJudge() {
   int  judge,
   int  totalJudgeRefrect
}

Parameters
judge
judgement result to be set
totalJudgeRefrect
Whether or not reflected on the overall judgement
TRUE: reflected
FALSE: not reflected

Return Value
Returns 0 when the judgement result is successfully set.
Otherwise returns a non-zero value.

Description
Sets the judgement result of the relevant processing item.
If TRUE is specified for the reflection on the overall judgement, the judgement result is reflected on the overall judgement. If FALSE is specified, it is not reflected on the overall judgement.
The following judgement result values can be set.
Table: ProcUnit::SetUnitJudge - Remarks
Judgement result value
Description
0 (JUDGE_NC)
No judgement (unmeasured)
1 (JUDGE_OK)
Judgement result OK
-1 (JUDGE_NG)
Judgement result NG
-10 (JUDGE_IMAGEERROR)
Judgement result error (image format mismatch)
-11 (JUDGE_MODELERROR)
Judgement result error (unregistered model)
-12 (JUDGE_MEMORYERROR)
Judgement result error (insufficient memory)
-20 (JUDGE_ERROR)
Judgement result error (other errors)
It is not certified to reflect the judgement result on the overall judgement more than once within a measurement process. Make sure that the result is reflected only once within a measurement.

Example
    int Sample::MeasureProc(ProcUnit *ptrProcUnit)
    {

        // Set the judgement result (reflected on the overall judgement)

        ptrProcUnit->SetUnitJudge(JUDGE_OK, TRUE);
    }