Difference between revisions of "Extensions.DiagCom.IsPositive"
Jump to navigation
Jump to search
m (Hb moved page IsPositive to Extensions.DiagCom.IsPositive: #3153) |
|||
Line 1: | Line 1: | ||
− | + | {{DISPLAYTITLE:OTX '''IsPositive'''}}[[Category:DiagCom]] | |
== Classification == | == Classification == | ||
− | {{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]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Line 11: | Line 11: | ||
The '''IsPositive''' term tests whether the specified response is positive or negative. | The '''IsPositive''' term tests whether the specified response is positive or negative. | ||
− | {{TermReturnValue| [[Boolean]] | True if the response is positive, otherwise false.}} | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | True if the response is positive, otherwise false.}} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Response | [[Response]] | [[Term]] | - | [1] | Response object.}} | + | {{TableRowPropertie1| Response | [[Extensions.DiagCom.Response|Response]] | [[Term]] | - | [1] | Response object.}} |
|} | |} | ||
Line 35: | Line 35: | ||
== See also == | == See also == | ||
− | [[GetAllResponses]] <br/> | + | [[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/> |
− | [[GetFirstResponse]] <br/> | + | [[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]] <br/> |
− | [[ExecuteDiagService]] <br/> | + | [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/> |
− | [[GetFirstResult]] <br/> | + | [[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/> |
Revision as of 02:24, 15 February 2016
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