Difference between revisions of "Extensions.DiagDataBrowsingPlus.GetIntervalUpperLimitAsString"

From emotive
Jump to navigation Jump to search
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;">
StringTerm = DiagDataBrowsingPlus.GetIntervalUpperLimitAsString(IntervalTerm);
+
/// Local Declarations
 +
String StringVariable;
 +
/// Flow
 +
StringVariable = DiagDataBrowsingPlus.GetIntervalUpperLimitAsString(IntervalTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 18: Line 21:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie2| interval|[[Extensions.DiagDataBrowsingPlus.Interval|Interval]] | [[Term]] | - | [1..1] |The element addresses the '''Interval'''  (MCDInterval) which upper limit shall be returned.}}
+
{{TableRowPropertie2| Interval|[[Extensions.DiagDataBrowsingPlus.Interval|Interval]] | [[Term]] | - | [1..1] |The element addresses the '''Interval'''  (MCDInterval) which upper limit shall be returned.}}
 
|}
 
|}
  
 
== 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.Parameter Parameter;
 
DiagCom.Parameter Parameter;
 
DiagDataBrowsingPlus.DbParameter DbParameter;
 
DiagDataBrowsingPlus.DbParameter DbParameter;

Revision as of 09:35, 24 October 2018

Classification

Name GetIntervalUpperLimitAsString
Short Description Gets the upper limit of the Interval
Class Term
Extension OTX DiagDataBrowsingPlus extension
Group Interval related terms
Exceptions NONE
Checker Rules -
Standard Compliant Yes

OTL Syntax

/// Local Declarations
String StringVariable;
/// Flow
StringVariable = DiagDataBrowsingPlus.GetIntervalUpperLimitAsString(IntervalTerm);

Description

GetIntervalUpperLimitAsString returns the upper limit of the text table element of the parameter as string.

Icons Note.png NOTE — The appropriate MVCI system operation is MCDInterval::getUpperLimit::getValueAsString

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
String Returns the upper limit of the text table element of the parameter.

Properties

Name Data Type Class Default Cardinality Description
Interval Interval Term - [1..1] The element addresses the Interval (MCDInterval) which upper limit shall be returned.

OTL Examples

/// Local Declarations

DiagCom.Parameter Parameter;
DiagDataBrowsingPlus.DbParameter DbParameter;
List<DiagDataBrowsingPlus.Interval> List_Interval;
String MyString;

/// Flow

Parameter = DiagCom.GetParameterByPath(DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("AIRBAG", "", false), "DiagnServi_ClearDiagnInforSingle")), {"Dtc"});
DbParameter = DiagDataBrowsingPlus.GetParameterDbParameter(Parameter);
List_Interval = DiagDataBrowsingPlus.GetDbParameterValidInternalIntervals(DbParameter);
MyString = DiagDataBrowsingPlus.GetIntervalUpperLimitAsString(List_Interval[0]);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResponse
GetRequest
GetParameterByPath
GetDbParameterValidInternalIntervals
GetDbParameterValidPhysicalIntervals