Difference between revisions of "Extensions.DiagCom.SetParameterValue"

From emotive
Jump to navigation Jump to search
Line 3: Line 3:
 
{{ClassificationActivity | SetParameterValue | Sets the value of a request parameter | [[Action]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related actions]] | [[OutOfBoundsException]] <br/> [[TypeMismatchException]] | - }}
 
{{ClassificationActivity | SetParameterValue | Sets the value of a request parameter | [[Action]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related actions]] | [[OutOfBoundsException]] <br/> [[TypeMismatchException]] | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
SetParameterValue(Parameter param, Variable value);
+
DiagCom.SetParameterValue(ParameterTerm, Term);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 18: Line 18:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ComChannel myComCannel = GetComChannel("LL_AirbaUDS", "", false);
+
DiagCom.ComChannel myComCannel;
DiagService myDiagService = CreateDiagServiceByName(myComChannel, "DiagnServi_ReadDataByIdentECUIdent");
+
DiagCom.DiagService myDiagService;
Request req = GetRequest(myDiagService);
+
DiagCom.Request req;
Parameter param = GetParameterByPath(req, "Param_RequeServiId");
+
DiagCom.Parameter param;
  
SetParameterValue(param, value);
+
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
 +
myDiagService = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentASAMODXFileIdent");
 +
req = DiagCom.GetRequest(myDiagService);
 +
param = DiagCom.GetParameterByPath(req, {"Param_RecorDataIdent"});
 +
DiagCom.SetParameterValue(param, 123);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 10:57, 4 February 2015

Classification

Name SetParameterValue
Short Description Sets the value of a request parameter
Class Action
Extension OTX DiagCom extension
Group DiagService related actions
Exceptions OutOfBoundsException
TypeMismatchException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagCom.SetParameterValue(ParameterTerm, Term);

Description

The OTX SetParameterValue activity sets the value of a request parameter "manually" to a specific value, see ExecuteDiagService.

Properties

Name Data Type Class Default Cardinality Description
Parameter Parameter Term - [1] Request parameter whose value is to be set.
Value - Term - [1] Value of the corresponding type that is to be placed.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService myDiagService;
DiagCom.Request req;
DiagCom.Parameter param;

myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
myDiagService = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentASAMODXFileIdent");
req = DiagCom.GetRequest(myDiagService);
param = DiagCom.GetParameterByPath(req, {"Param_RecorDataIdent"});
DiagCom.SetParameterValue(param, 123);

See also

GetComChannel
CreateDiagServiceByName
SetParameterValueBySemantic