Difference between revisions of "Extensions.Flash.GetType"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:  '''GetType'''}}[[Category:Flash]]
 
{{DISPLAYTITLE:  '''GetType'''}}[[Category:Flash]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetType | Specifies the type of the block | [[Term]] | [[Extensions.Flash|OTX Flash extension]] | [[Flash block related terms]] | [[Core.Actions.Throw.Exception.OutOfBoundsException|OutOfBoundsException]] | - }}
+
{{ClassificationActivity | GetType | Gets the type of the block | [[Term]] | [[Extensions.Flash|OTX Flash extension]] | [[Extensions.Flash#Terms|Flash block related terms]] | [[Core.DataTypes.ComplexDataType.OutOfBoundsException|OutOfBoundsException]] | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
StringTerm = Flash.GetType(FlashSessionTerm, IntegerTerm);
+
StringTerm = Flash.GetType(FlashSessionTerm, NumericTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
The '''GetType''' term returns the type of the block.
+
The '''GetType''' term returns the type of a block. The type information indicates whether a block is used for data or for program code.
  
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The type of the block.}}
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The type of the block.}}
Line 16: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Session | [[Extensions.Flash.FlashSession|FlashSession]] | [[Term]] | - | [1] | The Flash session in which the block is located.}}
+
{{TableRowPropertie1| Session | [[Extensions.Flash.FlashSession|FlashSession]] | [[Term]] | - | [1] | This element represents the '''FlashSession''' in which the block resides.}}
{{TableRowPropertie2| Block | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | The block number.}}
+
{{TableRowPropertie2| Block | [[Numeric]] | [[Term]] | - | [1] | This element represents the block number. [[Core.DataTypes.SimpleDataType.Float|Float]] values shall be truncated.}}
 
|}
 
|}
  
Line 23: Line 23:
 
<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.GetType(FlashSession1, 0);
 
String1 = Flash.GetType(FlashSession1, 0);
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 39: Line 41:
 
[[Extensions.Flash.GetLogicalBlockID|GetLogicalBlockID]] <br/>
 
[[Extensions.Flash.GetLogicalBlockID|GetLogicalBlockID]] <br/>
 
[[Extensions.Flash.GetCompressionEncryption|GetCompressionEncryption]] <br/>
 
[[Extensions.Flash.GetCompressionEncryption|GetCompressionEncryption]] <br/>
[[Extensions.Flash.BlockIsValidForAudience|BlockIsValidForAudience]]
+
<!--[[Extensions.Flash.GetType|GetType]] <br/>-->
 +
[[Extensions.Flash.BlockIsValidForAudience|BlockIsValidForAudience]]<br/>
 +
[[Extensions.Flash.GetListOfValidFlashSessions|GetListOfValidFlashSessions]]<br/>
 +
[[Extensions.Flash.GetFlashSession|GetFlashSession]]<br/>
 +
[[Extensions.DiagCom.GetComChannel|GetComChannel]]<br/>

Revision as of 02:58, 17 October 2018

Classification

Name GetType
Short Description Gets the type of the block
Class Term
Extension OTX Flash extension
Group Flash block related terms
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = Flash.GetType(FlashSessionTerm, NumericTerm);

Description

The GetType term returns the type of a block. The type information indicates whether a block is used for data or for program code.

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 type of the block.

Properties

Name Data Type Class Default Cardinality Description
Session FlashSession Term - [1] This element represents the FlashSession in which the block resides.
Block Numeric Term - [1] This element represents the block number. Float values shall be truncated.

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.GetType(FlashSession1, 0);

See also

GetNumberOfSegments
GetNumberOfOwnIdents
GetNumberOfSecurities
GetLogicalBlockID
GetCompressionEncryption
BlockIsValidForAudience
GetListOfValidFlashSessions
GetFlashSession
GetComChannel