Difference between revisions of "Extensions.DiagCom.ResultState"
Jump to navigation
Jump to search
Line 48: | Line 48: | ||
| '''ToBoolean''' || undefined, should not be used || | | '''ToBoolean''' || undefined, should not be used || | ||
|- {{TableRow2}} | |- {{TableRow2}} | ||
− | | '''ToInteger''' || Returns the index of the value in the ResultStates enumeration (smallest index is 0) || < | + | | '''ToInteger''' || Returns the index of the value in the ResultStates enumeration (smallest index is 0) || <code>Integer val = ToInteger(@ResultState:ALL_FAILED) // Returns 0;</code> |
|- {{TableRow1}} | |- {{TableRow1}} | ||
| '''ToFloat''' || undefined, should not be used || | | '''ToFloat''' || undefined, should not be used || |
Revision as of 13:19, 15 July 2014
Classification
Name | ResultState |
Short Description | State of Result |
Class | Simple Data Type |
Base Data Type | - |
Default Value | Empty |
Provide a Literal | Yes |
SpecifiedBy | ISO 13209-3 |
Standard Compliant | Yes |
Description
ResultState is an enumeration type describing the state of a Result.
The list of allowed enumeration values is defined as follows:
Value | Literal | Description |
ALL_FAILED | @ResultState:ALL_FAILED | All ECUs in a functional group (listening to the same functional address) failed to answer, in case of physical addressing: the one requested ECU failed to answer. |
ALL_INVALID | @ResultState:ALL_INVALID | All ECUs in a functional group (listening to the same functional address) returned an invalid answer, in case of physical addressing: the one requested ECU returned an invalid response. |
ALL_NEGATIVE | @ResultState:ALL_NEGATIVE | All ECUs in a functional group (listening to the same functional address) returned a negative response, in case of physical addressing: the one requested ECU returned a negative response. |
ALL_POSITIVE | @ResultState:ALL_POSITIVE | All ECUs in a functional group (listening to the same functional address) returned a positive response, in case of physical addressing: the one requested ECU returned a positive response. |
FAILED | @ResultState:FAILED | Some of the ECUs in a functional group (listening to the same functional address) failed to answer. |
INVALID | @ResultState:INVALID | Some of the ECUs in a functional group (listening to the same functional address) returned an invalid response. |
NEGATIVE | @ResultState:NEGATIVE | Some of the ECUs in a functional group (listening to the same functional address) returned a negative response. |
POSITIVE | @ResultState:POSITIVE | Some of the ECUs in a functional group (listening to the same functional address) returned a positive response. |
Order Relation
ResultState values may occur as operands of comparisons. For this case, the following order relation is defined:
ALL_FAILED < ALL_INVALID < ALL_NEGATIVE < ALL_POSITIVE < FAILED < INVALID < NEGA-TIVE < POSITIVE
Literal
Conversion
The following table shows the rules for conversion of the data type to another data type:
Conversion | Result | Sample |
ToBoolean | undefined, should not be used | |
ToInteger | Returns the index of the value in the ResultStates enumeration (smallest index is 0) | Integer val = ToInteger(@ResultState:ALL_FAILED) // Returns 0;
|
ToFloat | undefined, should not be used | |
ToString | Returns the name of the enumeration value | String s = ToString(@ResultState:ALL_FAILED) // Returns "ALL_FAILED"; |
ToByteField | undefined, should not be used |