Difference between revisions of "Extensions.DiagCom.GetParameterValueAsInteger"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | GetParameterValueAsInteger | The actual value of the parameter as a [[Integer]] | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Parameter related terms]] | [[TypeMismatchException]] | - }} | {{ClassificationActivity | GetParameterValueAsInteger | The actual value of the parameter as a [[Integer]] | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Parameter related terms]] | [[TypeMismatchException]] | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | IntegerTerm = DiagCom.GetParameterValueAsInteger(ParameterTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 19: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Integer | + | DiagCom.DiagService DiagService1; |
+ | DiagCom.Request Request1; | ||
+ | DiagCom.Parameter Parameter1; | ||
+ | Integer ValueAsInteger; | ||
+ | DiagCom.Comchannel ComChannel1; | ||
+ | |||
+ | ComChannel1 = DiagCom.GetComChannel("LL_BatteMonitContrModulUDS", "", false); | ||
+ | DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentASAMODXFileIdent"); | ||
+ | Request1 = DiagCom.GetRequest(DiagService1); | ||
+ | Parameter1 = DiagCom.GetParameterByPath(Request1, {"Param_RequeServiId"}); | ||
+ | ValueAsInteger = DiagCom.GetParameterValueAsInteger(Parameter1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 03:32, 6 February 2015
Contents
Classification
Name | GetParameterValueAsInteger |
Short Description | The actual value of the parameter as a Integer |
Class | Term |
Extension | OTX DiagCom extension |
Group | Parameter related terms |
Exceptions | TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
IntegerTerm = DiagCom.GetParameterValueAsInteger(ParameterTerm);
Description
The GetParameterValueAsInteger term accepts a ParameterTerm and returns the actual value of the parameter as a Integer.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Interger | The actual value of the parameter as a Interger.) |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Parameter | Parameter | Term | - | [1] | The parameter object. |
OTL Examples
DiagCom.DiagService DiagService1;
DiagCom.Request Request1;
DiagCom.Parameter Parameter1;
Integer ValueAsInteger;
DiagCom.Comchannel ComChannel1;
ComChannel1 = DiagCom.GetComChannel("LL_BatteMonitContrModulUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentASAMODXFileIdent");
Request1 = DiagCom.GetRequest(DiagService1);
Parameter1 = DiagCom.GetParameterByPath(Request1, {"Param_RequeServiId"});
ValueAsInteger = DiagCom.GetParameterValueAsInteger(Parameter1);
See also
GetParameterValueAsBoolean
GetParameterValueAsString
GetParameterValueAsFloat
GetParameterValueAsByteField
GetParameterValueAsQuantity