Difference between revisions of "Extensions.DiagCom.GetDiagServiceName"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''GetDiagServiceName'''}}[[Category:DiagCom]]
 
{{DISPLAYTITLE:OTX '''GetDiagServiceName'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetDiagServiceName | Name of the diagnostic services | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | - | - }}
+
{{ClassificationActivity | GetDiagServiceName | Gét the name of the '''DiagService''' | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|DiagService related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The GetDiagServiceName term is the name of the diagnostic services back.
+
The '''GetDiagServiceName''' term accepts a [[Extensions.DiagCom.DiagService|DiagService]] handle and returns the name of the [[Extensions.DiagCom.DiagService|DiagService]] as a string.
  
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | Name of the diagnostic services.}}
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | Name of the diagnostic services.}}
Line 16: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| DiagService | [[Core.DataTypes.ComplexDataType.DiagService|DiagService]] | [[Term]] | - | [1] | Diagnostics Service.}}
+
{{TableRowPropertie1| DiagService | [[Extensions.DiagCom.DiagService|DiagService]] | [[Term]] | - | [1] | The '''DiagService''' of which the name shall be returned.}}
 
|}
 
|}
  
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagCom.ComChannel myComCannel;
 
 
DiagCom.DiagService DiagService1;
 
DiagCom.DiagService DiagService1;
String String1;
+
String String1 = "";
 +
DiagCom.ComChannel ComChannel1;
  
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
+
/// Flow
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentCalibData");
+
 
 +
ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu");
 
String1 = DiagCom.GetDiagServiceName(DiagService1);
 
String1 = DiagCom.GetDiagServiceName(DiagService1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
 +
[[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/>
 
[[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/>
 
[[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/>
 
[[Extensions.DiagCom.CreateDiagServiceBySemantic|CreateDiagServiceBySemantic]] <br/>
 
[[Extensions.DiagCom.CreateDiagServiceBySemantic|CreateDiagServiceBySemantic]] <br/>
 
[[Extensions.DiagCom.GetDiagServiceListBySemantic|GetDiagServiceListBySemantic]] <br/>
 
[[Extensions.DiagCom.GetDiagServiceListBySemantic|GetDiagServiceListBySemantic]] <br/>
 
[[Extensions.DiagCom.GetDiagServiceFromResult|GetDiagServiceFromResult]]
 
[[Extensions.DiagCom.GetDiagServiceFromResult|GetDiagServiceFromResult]]

Revision as of 04:39, 12 October 2018

Classification

Name GetDiagServiceName
Short Description Gét the name of the DiagService
Class Term
Extension OTX DiagCom extension
Group DiagService related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = DiagCom.GetDiagServiceName(DiagServiceTerm);

Description

The GetDiagServiceName term accepts a DiagService handle and returns the name of the DiagService as a string.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
String Name of the diagnostic services.

Properties

Name Data Type Class Default Cardinality Description
DiagService DiagService Term - [1] The DiagService of which the name shall be returned.

OTL Examples

DiagCom.DiagService DiagService1;
String String1 = "";
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu");
String1 = DiagCom.GetDiagServiceName(DiagService1);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
GetDiagServiceListBySemantic
GetDiagServiceFromResult