Difference between revisions of "Extensions.Flash.GetSessionID"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:  '''GetSessionID'''}}[[Category:Flash]]
 
{{DISPLAYTITLE:  '''GetSessionID'''}}[[Category:Flash]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetSessionID | Specifies the identifier of a referenced flash session | [[Term]] | [[Extensions.Flash|OTX Flash extension]] | [[Flash session related terms]] | - | - }}
+
{{ClassificationActivity | GetSessionID | Gets the identifier of a flash session | [[Term]] | [[Extensions.Flash|OTX Flash extension]] | [[Extensions.Flash#Terms|Flash session related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''GetSessionID''' term returns the identifier of a referenced flash session. The identifier is a string value.
+
The '''GetSessionID''' term shall return the identifier of a flash session. The identifier is a string value.
 +
 
 +
{{Note|In ODX/MVCI based systems, the returned ID string should correspond to the '''SHORT-NAME''' of the session.}}
  
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The identifier of a referenced flash session.}}
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The identifier of a referenced flash session.}}
Line 16: Line 18:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Session | [[Extensions.Flash.FlashSession|FlashSession]] | [[Term]] | - | [1] | This element represent the FlashSession to be used.}}
+
{{TableRowPropertie1| Session | [[Extensions.Flash.FlashSession|FlashSession]] | [[Term]] | - | [1] | This element represent the '''FlashSession''' to be used.}}
 
|}
 
|}
  
Line 22: Line 24:
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
DiagCom.ComChannel ComChannel1;
 
DiagCom.ComChannel ComChannel1;
 +
Flash.FlashSession FlashSession1;
 
List<String> List1;
 
List<String> List1;
Flash.FlashSession FlashSession1;
+
String String1 = "";
String String1;
+
 
 +
/// Flow
  
ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
+
ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", "SCHEINWERFER_1", false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
+
List1 = Flash.GetListOfValidFlashSessions(ComChannel1, @Audience:SUPPLIER, @Directions:DOWNLOAD);
FlashSession1 = Flash.GetFlashSession(List1[0]);
+
FlashSession1 = Flash.GetFlashSession(List1[2]);
 
String1 = Flash.GetSessionID(FlashSession1);
 
String1 = Flash.GetSessionID(FlashSession1);
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 34: Line 38:
 
== See also ==
 
== See also ==
 
[[Extensions.Flash.GetListOfValidFlashSessions|GetListOfValidFlashSessions]] <br/>
 
[[Extensions.Flash.GetListOfValidFlashSessions|GetListOfValidFlashSessions]] <br/>
[[Extensions.Flash.GetFlashSession|GetFlashSession]] <br/>
+
[[Extensions.Flash.GetFlashSession|GetFlashSession]]<br/>
[[Extensions.Flash.GetSessionPriority|GetSessionPriority]] <br/>
+
<!--[[Extensions.Flash.GetSessionID|GetSessionID]]<br/>-->
[[Extensions.Flash.GetNumberOfBlocks|GetNumberOfBlocks]] <br/>
+
[[Extensions.Flash.GetFlashKey|GetFlashKey]]<br/>
[[Extensions.Flash.IsDownloadSession|IsDownloadSession]] <br/>
+
[[Extensions.Flash.GetSessionPriority|GetSessionPriority]]<br/>
[[Extensions.Flash.GetFlashKey|GetFlashKey]]
+
[[Extensions.Flash.GetNumberOfBlocks|GetNumberOfBlocks]]<br/>
 +
[[Extensions.Flash.IsDownloadSession|IsDownloadSession]]<br/>
 +
[[Extensions.DiagCom.GetComChannel|GetComChannel]]<br/>

Revision as of 10:01, 16 October 2018

Classification

Name GetSessionID
Short Description Gets the identifier of a flash session
Class Term
Extension OTX Flash extension
Group Flash session related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = Flash.GetSessionID(FlashSessionTerm);

Description

The GetSessionID term shall return the identifier of a flash session. The identifier is a string value.

Icons Note.png In ODX/MVCI based systems, the returned ID string should correspond to the SHORT-NAME of the session.

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 The identifier of a referenced flash session.

Properties

Name Data Type Class Default Cardinality Description
Session FlashSession Term - [1] This element represent the FlashSession to be used.

OTL Examples

DiagCom.ComChannel ComChannel1;
Flash.FlashSession FlashSession1;
List<String> List1;
String String1 = "";

/// Flow

ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", "SCHEINWERFER_1", false);
List1 = Flash.GetListOfValidFlashSessions(ComChannel1, @Audience:SUPPLIER, @Directions:DOWNLOAD);
FlashSession1 = Flash.GetFlashSession(List1[2]);
String1 = Flash.GetSessionID(FlashSession1);

See also

GetListOfValidFlashSessions
GetFlashSession
GetFlashKey
GetSessionPriority
GetNumberOfBlocks
IsDownloadSession
GetComChannel