Difference between revisions of "Extensions.DiagCom.GetDiagServiceName"

From emotive
Jump to navigation Jump to search
(Created page with "Category:DiagCom == Classification == {{ClassificationActivity | GetDiagServiceName | Name of the diagnostic services | Term | OTX DiagCom extension | Di...")
 
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:DiagCom]]
+
{{DISPLAYTITLE:OTX '''GetDiagServiceName'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetDiagServiceName | Name of the diagnostic services | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | - | - }}
+
{{ClassificationActivity | GetDiagServiceName | Gets the name of the '''DiagService''' | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|DiagService related terms]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
GetDiagServiceName(DiagService diagService, String diagServiceName);
+
StringTerm DiagCom.GetDiagServiceName(DiagServiceTerm diagService);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== 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.}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Name | [[String]] | [[Return]] | - | - | Name of the diagnostic services.}}
+
{{TableRowPropertie2| DiagService | [[Extensions.DiagCom.DiagService|DiagService]] | [[Term]] | - | [1] | The '''DiagService''' of which the name will be returned.}}
{{TableRowPropertie2| DiagService | [[DiagService]] | [[Term]] | - | [1] | Diagnostics Service.}}
 
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
String diagServiceName = GetDiagServiceName(diagService);
+
/// Local Declarations
 +
 
 +
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);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
[[CreateDiagServiceByName]] <br/>
+
[[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/>
[[CreateDiagServiceBySemantic]] <br/>
+
[[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/>
[[GetDiagServiceListBySemantic]] <br/>
+
[[Extensions.DiagCom.CreateDiagServiceBySemantic|CreateDiagServiceBySemantic]] <br/>
[[GetDiagServiceNameFromResult]]
+
[[Extensions.DiagCom.GetDiagServiceListBySemantic|GetDiagServiceListBySemantic]] <br/>
 +
[[Extensions.DiagCom.GetDiagServiceFromResult|GetDiagServiceFromResult]]

Latest revision as of 09:55, 12 September 2019

Classification

Name GetDiagServiceName
Short Description Gets 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 diagService);

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 will be returned.

OTL Examples

/// Local Declarations

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