Difference between revisions of "Extensions.DiagCom.SetParameterValueBySemantic"
Jump to navigation
Jump to search
(One intermediate revision by one other 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;"> | ||
− | DiagCom.SetParameterValueBySemantic(ParameterContainerTerm | + | DiagCom.SetParameterValueBySemantic(ParameterContainerTerm parameterContainer, StringTerm semantic, Term value); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 17: | Line 17: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie2| ParameterContainer | [[Extensions.DiagCom.ParameterContainer|ParameterContainer]] | [[Term]] | - | [1] | The object that contains the parameter that | + | {{TableRowPropertie2| ParameterContainer | [[Extensions.DiagCom.ParameterContainer|ParameterContainer]] | [[Term]] | - | [1] | The object that contains the parameter that will be changed.}} |
− | {{TableRowPropertie1| Semantic | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | This element specifies the semantic of the parameter that | + | {{TableRowPropertie1| Semantic | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | This element specifies the semantic of the parameter that will be modified.}} |
− | {{TableRowPropertie2| Value | - | [[Term]] | - | [1] | This element specifies the value that | + | {{TableRowPropertie2| Value | - | [[Term]] | - | [1] | This element specifies the value that will be set to the Parameter. Allowed input types are [[Core.DataTypes.SimpleDataType|OTX simple types]], [[Core.DataTypes.ComplexDataType.ByteField|OTX bytefields]], [[Core.DataTypes.ComplexDataType.List|lists]] and [[Core.DataTypes.ComplexDataType.Map|maps]] and [[Extensions.Quantities.Quantity|OTX quantities]].}} |
|} | |} | ||
Latest revision as of 10:04, 12 September 2019
Classification
Name | SetParameterValueBySemantic |
Short Description | Sets a value to a <parameter> element with a specific semantic |
Class | Action |
Extension | OTX DiagCom extension |
Group | DiagService related actions |
Exceptions | TypeMismatchException AmbiguousSemanticException OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
DiagCom.SetParameterValueBySemantic(ParameterContainerTerm parameterContainer, StringTerm semantic, Term value);
Description
The SetParameterValueBySemantic activity sets a value to a <parameter> element with a specific semantic. This action is used in case the backend communication system provides the means to associate semantic metadata with parameters of diagnostic services. The value to be set is to be provided as an OTX simple type, an OTX bytefield, list or map or an OTX Quantity.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ParameterContainer | ParameterContainer | Term | - | [1] | The object that contains the parameter that will be changed. |
Semantic | String | Term | - | [1] | This element specifies the semantic of the parameter that will be modified. |
Value | - | Term | - | [1] | This element specifies the value that will be set to the Parameter. Allowed input types are OTX simple types, OTX bytefields, lists and maps and OTX quantities. |
OTL Examples
/// Local Declarations
DiagCom.DiagService DiagService1;
DiagCom.ComChannel ComChannel1;
DiagCom.Request Request1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentMeasuValue");
Request1 = DiagCom.GetRequest(DiagService1);
DiagCom.SetParameterValueBySemantic(Request1, "DATA-ID", "Response_On_Event");