Extensions.DiagDataBrowsingPlus.GetDbDiagServiceDbPreConditionStatesBySemantic
Jump to navigation
Jump to search
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