Difference between revisions of "Extensions.DiagCom.Result"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:Data Type '''Result'''}} == Classification == {{ClassificationDataType | Result | A handle to the result | Simple Data Type | - | - }} == Description == A...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Data Type '''Result'''}}
+
{{DISPLAYTITLE:Data Type '''Result'''}}[[Category:DataType]][[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationDataType | Result | A handle to the result | [[Simple Data Type]] | - | - }}
+
{{ClassificationDataType | Result | A handle to the result | [[Core.DataTypes.SimpleDataType|Simple Data Type]] | [[Core.DataTypes.ComplexDataType.ComplexType|ComplexType]] | - }}
  
 
== Description ==
 
== Description ==
A '''Result''' is a handle tothe result of a diagnostic service object.
+
A '''Result''' is a handle to the result of a diagnostic service object.
  
 
{{Note|In case of a MVCI/ODX based system a '''Result''' handle represents a '''MCDResultobject'''.}}
 
{{Note|In case of a MVCI/ODX based system a '''Result''' handle represents a '''MCDResultobject'''.}}
 +
 +
{{ConversionTable |
 +
String=Returns the value of the '''Result''' object | StringSample=<tt>String s = ToString(resultVariable); // Returns "1 response(s)"</tt>
 +
}}
 +
 +
==Sample==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
DiagCom.Result ResultVariable;
 +
</syntaxhighlight>

Latest revision as of 08:36, 22 October 2018

Classification

Name Result
Short Description A handle to the result
Class Simple Data Type
Base Data Type ComplexType
Default Value Empty
Provide a Literal No
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

A Result is a handle to the result of a diagnostic service object.

Icons Note.png In case of a MVCI/ODX based system a Result handle represents a MCDResultobject.

Core Conversion

The following table shows the rules for conversion to another data type:

Conversion Result Sample
ToBoolean Undefined (should not be used)
ToInteger Undefined (should not be used)
ToFloat Undefined (should not be used)
ToString Returns the value of the Result object String s = ToString(resultVariable); // Returns "1 response(s)"
ToByteField Undefined (should not be used)

Sample

DiagCom.Result ResultVariable;