Difference between revisions of "Extensions.DiagDataBrowsingPlus.GetDbDiagServiceDbPreConditionStatesBySemantic"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | ListTerm | + | ListTerm DiagDataBrowsingPlus.GetDbDiagServiceDbPreConditionStatesBySemantic(DbDiagServiceTerm dbDiagService, StringTerm semantic); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 12: | Line 12: | ||
'''GetDbDiagServiceDbPreConditionStatesBySemantic''' returns a [[Core.DataTypes.ComplexDataType.ContainerDataType.List|list]] of [[Core.DataTypes.SimpleDataType.String|String]] of ECU state (MCDDbEcuState) short names of the given semantic one of which is required to be able to execute the given [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] successfully. The result is reduced to states that have a semantic value equals to the given semantic. An empty list will be delivered if no ECU state of the given semantic is associated with the current [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] as a pre-condition. | '''GetDbDiagServiceDbPreConditionStatesBySemantic''' returns a [[Core.DataTypes.ComplexDataType.ContainerDataType.List|list]] of [[Core.DataTypes.SimpleDataType.String|String]] of ECU state (MCDDbEcuState) short names of the given semantic one of which is required to be able to execute the given [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] successfully. The result is reduced to states that have a semantic value equals to the given semantic. An empty list will be delivered if no ECU state of the given semantic is associated with the current [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] as a pre-condition. | ||
− | {{Note| | + | {{Note|The appropriate MVCI system operation is MCDDbDiagComPrimitive::getDbPreConditionStatesBySemantic}} |
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.ContainerDataType.List|List]] | Returns a list of [[Core.DataTypes.SimpleDataType.String|String]] of ECU state (MCDDbEcuState) short names of the given semantic one of which is required to be able to execute the given [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] successfully.}} | {{TermReturnValue| [[Core.DataTypes.ComplexDataType.ContainerDataType.List|List]] | Returns a list of [[Core.DataTypes.SimpleDataType.String|String]] of ECU state (MCDDbEcuState) short names of the given semantic one of which is required to be able to execute the given [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] successfully.}} | ||
Line 19: | Line 19: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| | + | {{TableRowPropertie1| DbDiagService | [[Extensions.DiagDataBrowsingPlus.DbDiagService|DbDiagService]] | [[Term]] | - | [1..1] | The element addresses the '''DbDiagService''' whose pre condition states shall be returned.}} |
− | {{TableRowPropertie2| | + | {{TableRowPropertie2| Semantic | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] | The element addresses the semantic of an ECU state one of which is required to be able to execute an instance of the current [[Extensions.DiagCom.DiagService|DiagService]]. The semantic of a ECU state is given by the semantic definition of the MCDDbEcuStateChart object.}} |
|} | |} | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
DiagCom.ComChannel ComChannel; | DiagCom.ComChannel ComChannel; | ||
DiagCom.DiagService DiagService; | DiagCom.DiagService DiagService; |
Latest revision as of 09:14, 2 November 2018
Contents
Classification
Name | GetDbDiagServiceDbPreConditionStatesBySemantic |
Short Description | Gets the pre condition states of the DbDiagService |
Class | Term |
Extension | OTX DiagDataBrowsingPlus extension |
Group | DbDiagService related terms |
Exceptions | NONE |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm DiagDataBrowsingPlus.GetDbDiagServiceDbPreConditionStatesBySemantic(DbDiagServiceTerm dbDiagService, StringTerm semantic);
Description
GetDbDiagServiceDbPreConditionStatesBySemantic returns a list of String of ECU state (MCDDbEcuState) short names of the given semantic one of which is required to be able to execute the given DbDiagService successfully. The result is reduced to states that have a semantic value equals to the given semantic. An empty list will be delivered if no ECU state of the given semantic is associated with the current DbDiagService as a pre-condition.
![]()
The appropriate MVCI system operation is MCDDbDiagComPrimitive::getDbPreConditionStatesBySemantic
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | Returns a list of String of ECU state (MCDDbEcuState) short names of the given semantic one of which is required to be able to execute the given DbDiagService successfully. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
DbDiagService | DbDiagService | Term | - | [1..1] | The element addresses the DbDiagService whose pre condition states shall be returned. |
Semantic | String | Term | - | [1..1] | The element addresses the semantic of an ECU state one of which is required to be able to execute an instance of the current DiagService. The semantic of a ECU state is given by the semantic definition of the MCDDbEcuStateChart object. |
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel;
DiagCom.DiagService DiagService;
DiagDataBrowsingPlus.DbDiagService DbDiagService;
List<String> List_String;
/// Flow
ComChannel = DiagCom.GetComChannel("LL_GatewUDS", NULL, false);
DiagService = DiagCom.CreateDiagServiceByName(ComChannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
DbDiagService = DiagDataBrowsingPlus.GetDiagServiceDbDiagService(DiagService);
List_String = DiagDataBrowsingPlus.GetDbDiagServiceDbPreConditionStatesBySemantic(DbDiagService, "CURRENTDATA");
See also
GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
GetDiagServiceDbDiagService
GetComChannelDbComChannel
GetDbComChannel
GetDbComChannelDbDiagServices