Difference between revisions of "Extensions.DiagDataBrowsingPlus.McdResponseType"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
This optional element stands for the hard-coded initialisation value of the identifier at declaration time. | This optional element stands for the hard-coded initialisation value of the identifier at declaration time. | ||
+ | |||
+ | '''McdResponseTypes''' has the following enumeration values: | ||
+ | {| {{TableHeader}} | ||
+ | |- {{TableHeaderRow}} | ||
+ | | '''Value''' || '''[[Literals|<span style="color:white;">Literal</span>]]''' || '''Description''' | ||
+ | |- {{TableRow1}} | ||
+ | | '''eGLOBAL_NEG_RESPONSE''' || @McdResponseType:GLOBAL_NEG_RESPONSE || The response should match the negative response template at the Location | ||
+ | (MCDResponseType::eGLOBAL_NEG_RESPONSE). | ||
+ | |- {{TableRow2}} | ||
+ | | '''eLOCAL_NEG_RESPONSE''' || @McdResponseType:LOCAL_NEG_RESPONSE || The response should match the negative response template at the | ||
+ | DiagComPrimitive (MCDResponseType::eLOCAL_NEG_RESPONSE). | ||
+ | |- {{TableRow1}} | ||
+ | | '''ePOSITIVE_RESPONSE''' || @McdResponseType:POSITIVE_RESPONSE || The response should match the positive response template | ||
+ | (MCDResponseType::ePOSITIVE_RESPONSE). | ||
+ | |} | ||
+ | |||
{{ConversionTable | | {{ConversionTable | |
Revision as of 10:01, 21 September 2018
Classification
Name | McdResponseType |
Short Description | is an enumeration type |
Class | Simple Data Type |
Base Data Type | SimpleType |
Default Value | eGLOBAL_NEG_RESPONSET |
Provide a Literal | No |
SpecifiedBy | ISO 13209-3 |
Standard Compliant | Yes |
Description
McdResponseType is an enumeration type describing the ASAM types of responses used by the MVCI/ODX system.
Its members have the following semantics:
- <init> : diagDataPlus:McdResponseTypeLiteral[0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time.
McdResponseTypes has the following enumeration values:
Value | Literal | Description |
eGLOBAL_NEG_RESPONSE | @McdResponseType:GLOBAL_NEG_RESPONSE | The response should match the negative response template at the Location
(MCDResponseType::eGLOBAL_NEG_RESPONSE). |
eLOCAL_NEG_RESPONSE | @McdResponseType:LOCAL_NEG_RESPONSE | The response should match the negative response template at the
DiagComPrimitive (MCDResponseType::eLOCAL_NEG_RESPONSE). |
ePOSITIVE_RESPONSE | @McdResponseType:POSITIVE_RESPONSE | The response should match the positive response template
(MCDResponseType::ePOSITIVE_RESPONSE). |
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(McdResponseTypeVariable); // 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(McdResponseTypeVariable); // Returns the name of the enumeration value. |
ToByteField | Undefined (should not be used) |