Difference between revisions of "Extensions.DiagCom.ResultState"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:Data Type '''ResultState'''}}
 
{{DISPLAYTITLE:Data Type '''ResultState'''}}
 
== Classification ==
 
== Classification ==
{{ClassificationDataType | ResultState | State of [[Result]] | [[Simple Data Type]] | - }}
+
{{ClassificationDataType | ResultState | State of [[Result]] | [[Simple Data Type]] | - | Literal=Yes }}
  
 
== Description ==
 
== Description ==
Line 7: Line 7:
  
 
The list of allowed enumeration values is defined as follows:
 
The list of allowed enumeration values is defined as follows:
* '''ALL_FAILED'''
+
 
* '''ALL_INVALID'''
+
{| {{TableHeader}}
* '''ALL_NEGATIVE'''
+
|- {{TableHeaderRow}}
* '''ALL_POSITIVE'''
+
| '''Value''' || '''Literal''' || '''Description'''
* '''FAILED'''
+
|- {{TableRow1}}
* '''INVALID'''
+
| '''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.
* '''NEGATIVE'''
+
|- {{TableRow2}}
* '''POSITIVE'''
+
| '''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.
 +
|- {{TableRow1}}
 +
| '''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.
 +
|- {{TableRow2}}
 +
| '''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.
 +
|- {{TableRow1}}
 +
| '''FAILED''' || @ResultState:FAILED || Some of the ECUs in a functional group (listening to the same functional address) failed to answer.
 +
|- {{TableRow2}}
 +
| '''INVALID''' || @ResultState:INVALID || Some of the ECUs in a functional group (listening to the same functional address) returned an invalid response.
 +
|- {{TableRow1}}
 +
| '''NEGATIVE''' || @ResultState:NEGATIVE || Some of the ECUs in a functional group (listening to the same functional address) returned a negative response.
 +
|- {{TableRow2}}
 +
| '''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:
 +
 
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
ALL_FAILED < ALL_INVALID < ALL_NEGATIVE < ALL_POSITIVE < FAILED < INVALID < NEGA-TIVE < POSITIVE
 +
</syntaxhighlight>
 +
 
 +
==Literal==
 +
 
  
 
'''ResultState''' have the following semantic:
 
'''ResultState''' have the following semantic:
 
* '''<init> : ResultStateLiteral [0..1]''' <br/> This optional element stands for the hard-coded initialisation value of the identifier at declaration time.
 
* '''<init> : ResultStateLiteral [0..1]''' <br/> This optional element stands for the hard-coded initialisation value of the identifier at declaration time.
 
** '''value : ResultStates={ALL_FAILED|ALL_INVALID|ALL_NEGATIVE|ALL_POSITIVE|FAILED|INVALID|NEGATIVE|POSITIVE} [1]''' <br/> This attribute contain one of the values defined in the '''ResultStates''' enumeration.
 
** '''value : ResultStates={ALL_FAILED|ALL_INVALID|ALL_NEGATIVE|ALL_POSITIVE|FAILED|INVALID|NEGATIVE|POSITIVE} [1]''' <br/> This attribute contain one of the values defined in the '''ResultStates''' enumeration.

Revision as of 12:08, 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

ResultState have the following semantic:

  • <init> : ResultStateLiteral [0..1]
    This optional element stands for the hard-coded initialisation value of the identifier at declaration time.
    • value : ResultStates={ALL_FAILED|ALL_INVALID|ALL_NEGATIVE|ALL_POSITIVE|FAILED|INVALID|NEGATIVE|POSITIVE} [1]
      This attribute contain one of the values defined in the ResultStates enumeration.