Difference between revisions of "Extensions.DiagDataBrowsingPlus.McdParameterType"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:Data Type '''McdParameterType'''}}Category:DataTypeCategory:DiagDataBrowsingPlus == Classification == {{ClassificationDataType | McdParameterType | UPDA...")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:Data Type '''McdParameterType'''}}[[Category:DataType]][[Category:DiagDataBrowsingPlus]]
 
{{DISPLAYTITLE:Data Type '''McdParameterType'''}}[[Category:DataType]][[Category:DiagDataBrowsingPlus]]
 
== Classification ==
 
== Classification ==
{{ClassificationDataType | McdParameterType | UPDATING... | [[Core.DataTypes.SimpleDataType|Simple Data Type]] | - | DefaultValue=eCODED_CONST | Literal=Yes }}
+
{{ClassificationDataType | McdParameterType | is an enumeration type| - | [[Core.DataTypes.SimpleDataType|SimpleDataType]] | - }}
  
 
== Description ==
 
== Description ==
UPDATING...<!--
+
'''McdParameterType''' is an enumeration type describing the ASAM types of Parameters used by the MVCI/ODX system.
A '''BlackBox''' is a boxing type. It serves as a transport or base data type which can help the OTX unknown types pass through the code layers.
+
 
 +
Its members have the following semantics:
 +
 
 +
*<init> : diagDataPlus:McdParameterTypeLiteral[0..1]
 +
 
 +
This optional element stands for the hard-coded initialisation value of the identifier
 +
at declaration time.
  
 
{{ConversionTable |
 
{{ConversionTable |
Boolean=Returns the Boolean counterpart of the argument term | BooleanSample=<tt>Boolean b = ToBoolean(blackBoxVariable); // Returns true/false/TypeMismatchException</tt> |
+
Integer=Returns the index of the value in the enumeration (smallest index is 0).| IntegerSample=<tt>Integer i = ToInteger(McdParameterTypeVariable); // Returns the index of the value in the enumeration.</tt> |
Integer=Returns the Integer counterpart of the argument term | IntegerSample=<tt>Integer i = ToInteger(blackBoxVariable); // Returns integer value/TypeMismatchException</tt> |
+
String=Returns the name of the enumeration value. | StringSample=<tt>String s = ToString(McdParameterTypeVariable); // Returns the name of the enumeration value.
Float=Returns the Float counterpart of the argument term | FloatSample=<tt>Float f = ToFloat(blackBoxVariable); // Returns float value/TypeMismatchException</tt> |
 
String=Returns the String counterpart of the argument term | StringSample=<tt>String s = ToString(blackBoxVariable); // Returns string value/TypeMismatchException</tt> |
 
ByteField=Returns the ByteField counterpart of the argument term | ByteFieldSample=<tt>ByteField bf = ToString(blackBoxVariable); // Returns byteField value/TypeMismatchException</tt>
 
 
}}
 
}}
-->
 

Revision as of 10:38, 6 September 2018

Classification

Name McdParameterType
Short Description is an enumeration type
Class -
Base Data Type SimpleDataType
Default Value Empty
Provide a Literal No
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

McdParameterType is an enumeration type describing the ASAM types of Parameters used by the MVCI/ODX system.

Its members have the following semantics:

  • <init> : diagDataPlus:McdParameterTypeLiteral[0..1]

This optional element stands for the hard-coded initialisation value of the identifier at declaration time.

Core Conversion

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

Conversion Result Sample
ToBoolean Undefined (should not be used)
ToInteger Returns the index of the value in the enumeration (smallest index is 0). Integer i = ToInteger(McdParameterTypeVariable); // Returns the index of the value in the enumeration.
ToFloat Undefined (should not be used)
ToString Returns the name of the enumeration value. String s = ToString(McdParameterTypeVariable); // Returns the name of the enumeration value.
ToByteField Undefined (should not be used)