Difference between revisions of "Extensions.Flash.GetType"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | GetType | Specifies the type of the block | [[Term]] | [[Flash|OTX Flash extension]] | [[Flash block related terms]] | [[OutOfBoundsException]] | - }} | {{ClassificationActivity | GetType | Specifies the type of the block | [[Term]] | [[Flash|OTX Flash extension]] | [[Flash block related terms]] | [[OutOfBoundsException]] | - }} | ||
− | == | + | == 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); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | String | + | DiagCom.ComChannel ComChannel1; |
+ | List<String> List1; | ||
+ | Flash.FlashSession FlashSession1; | ||
+ | String String1; | ||
+ | |||
+ | ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false); | ||
+ | List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER); | ||
+ | FlashSession1 = Flash.GetFlashSession(List1[0]); | ||
+ | String1 = Flash.GetType(FlashSession1, 0); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:53, 6 February 2015
Contents
Classification
Name | GetType |
Short Description | Specifies 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, IntegerTerm);
Description
The GetType term returns the type of the block.
Return Value
The Term returns the value, see table below.
![]()
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] | The Flash session in which the block is located. |
Block | Integer | Term | - | [1] | The block number. |
OTL Examples
DiagCom.ComChannel ComChannel1;
List<String> List1;
Flash.FlashSession FlashSession1;
String String1;
ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
FlashSession1 = Flash.GetFlashSession(List1[0]);
String1 = Flash.GetType(FlashSession1, 0);
See also
GetNumberOfSegments
GetNumberOfOwnIdents
GetNumberOfSecurities
GetLogicalBlockID
GetCompressionEncryption
BlockIsValidForAudience