Difference between revisions of "Extensions.DiagCom.IsPositive"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | IsPositive | Test, a response to positive or negative | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }} | {{ClassificationActivity | IsPositive | Test, a response to positive or negative | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | BooleanTerm = DiagCom.IsPositive(ResponseTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Boolean | + | DiagCom.Result Result1; |
+ | DiagCom.Response Response1; | ||
+ | DiagCom.ResponseState ResponseState1 = @ResponseStates:FAILED; | ||
+ | Boolean Boolean1 = false; | ||
+ | DiagCom.ComChannel ComChannel1; | ||
+ | |||
+ | ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", null, false); | ||
+ | DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe"), {}, {}, false, false, Result1); | ||
+ | Response1 = DiagCom.GetFirstResponse(Result1); | ||
+ | ResponseState1 = DiagCom.GetResponseState(Response1); | ||
+ | Boolean1 = DiagCom.IsPositive(Response1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:21, 5 February 2015
Big text
Contents
Classification
Name | IsPositive |
Short Description | Test, a response to positive or negative |
Class | Term |
Extension | OTX DiagCom extension |
Group | Response related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = DiagCom.IsPositive(ResponseTerm);
Description
The IsPositive term tests whether the specified response is positive or negative.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | True if the response is positive, otherwise false. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Response | Response | Term | - | [1] | Response object. |
Examples
DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.ResponseState ResponseState1 = @ResponseStates:FAILED;
Boolean Boolean1 = false;
DiagCom.ComChannel ComChannel1;
ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe"), {}, {}, false, false, Result1);
Response1 = DiagCom.GetFirstResponse(Result1);
ResponseState1 = DiagCom.GetResponseState(Response1);
Boolean1 = DiagCom.IsPositive(Response1);
See also
GetAllResponses
GetFirstResponse
ExecuteDiagService
GetFirstResult