Difference between revisions of "Extensions.DiagCom.GetDiagServiceListBySemantic"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''GetDiagServiceListBySemantic'''}}[[Category:DiagCom]]
 
{{DISPLAYTITLE:OTX '''GetDiagServiceListBySemantic'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetDiagServiceListBySemantic | List of Diagnostic Services with the same semantic attribute | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | - | - }}
+
{{ClassificationActivity | GetDiagServiceListBySemantic | Returns a list of Diagnostic Services with the same semantic attribute | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|DiagService related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''GetDiagServiceListBySemantic''' term is a complete list of diagnostic services with the same [[Semantic Attribute]] back.
+
The '''GetDiagServiceListBySemantic''' term returns a complete list of all [[Extensions.DiagCom.DiagService|DiagService]] handles which have the same semantic. This is required in case more than one service with the same semantic attribute value exists within the data set associated with the [[Extensions.DiagCom.ComChannel|ComChannel]].
  
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.ContainerDataType.List|List]] | List of Type DiagService.}}
+
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.List|List]] | List of of all [[Extensions.DiagCom.DiagService|DiagService]] handles.}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Term]] | - | [1] | Communication Channel.}}
+
{{TableRowPropertie1| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Term]] | - | [1] | The '''ComChannelTerm''' that shall be queried for all the services with the given semantic.}}
{{TableRowPropertie2| Semantic | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | Semantic attribute to classify the diagnostic services (eg: "DEFAULT_FAULTREAD" or "IDENTIFICATION").}}
+
{{TableRowPropertie2| Semantic | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The semantic value of the '''DiagServices''' to be returned (eg: "DEFAULT_FAULTREAD" or "IDENTIFICATION").}}
 
|}
 
|}
  
 
== 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;
 
 
List<DiagCom.DiagService> List1;
 
List<DiagCom.DiagService> List1;
 +
DiagCom.ComChannel ComChannel1;
  
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
+
/// Flow
List1 = DiagCom.GetDiagServiceListBySemantic(myComCannel, "CALIBRATIONREAD");
+
 
 +
ComChannel1 = DiagCom.GetComChannel("LL_AllUDSSyste", "", false);
 +
List1 = DiagCom.GetDiagServiceListBySemantic(ComChannel1, "CALIBRATIONREAD");
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
[[Extensions.DiagCom.GetDiagServiceListBySemantic|GetDiagServiceListBySemantic]] <br/>
 
 
[[Extensions.DiagCom.GetDiagServiceFromResult|GetDiagServiceFromResult]] <br/>
 
[[Extensions.DiagCom.GetDiagServiceFromResult|GetDiagServiceFromResult]] <br/>
 
[[Extensions.DiagCom.GetDiagServiceFromException|GetDiagServiceFromException]] <br/>
 
[[Extensions.DiagCom.GetDiagServiceFromException|GetDiagServiceFromException]] <br/>

Revision as of 03:11, 12 October 2018

Classification

Name GetDiagServiceListBySemantic
Short Description Returns a list of Diagnostic Services with the same semantic attribute
Class Term
Extension OTX DiagCom extension
Group DiagService related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ListTerm = DiagCom.GetDiagServiceListBySemantic(ComChannelTerm, StringTerm);

Description

The GetDiagServiceListBySemantic term returns a complete list of all DiagService handles which have the same semantic. This is required in case more than one service with the same semantic attribute value exists within the data set associated with the ComChannel.

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
List List of of all DiagService handles.

Properties

Name Data Type Class Default Cardinality Description
ComChannel ComChannel Term - [1] The ComChannelTerm that shall be queried for all the services with the given semantic.
Semantic String Term - [1] The semantic value of the DiagServices to be returned (eg: "DEFAULT_FAULTREAD" or "IDENTIFICATION").

OTL Examples

List<DiagCom.DiagService> List1;
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_AllUDSSyste", "", false);
List1 = DiagCom.GetDiagServiceListBySemantic(ComChannel1, "CALIBRATIONREAD");

See also

GetDiagServiceFromResult
GetDiagServiceFromException
GetDiagServiceName
ExecuteDiagService
GetComChannel