Difference between revisions of "Extensions.Flash.BlockIsValidForAudience"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
/// Local Declarations | /// Local Declarations | ||
− | + | Boolean BooleanVariable = false; | |
/// Flow | /// Flow | ||
BooleanVariable = Flash.BlockIsValidForAudience(FlashSessionTerm, NumericTerm, AudienceTerm); | BooleanVariable = Flash.BlockIsValidForAudience(FlashSessionTerm, NumericTerm, AudienceTerm); |
Revision as of 04:16, 25 October 2018
Contents
Classification
Name | BlockIsValidForAudience |
Short Description | Checks whether a block is valid for a given audience or not. |
Class | Term |
Extension | OTX Flash extension |
Group | Flash block related terms |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
Boolean BooleanVariable = false;
/// Flow
BooleanVariable = Flash.BlockIsValidForAudience(FlashSessionTerm, NumericTerm, AudienceTerm);
Description
The BlockIsValidForAudience term returns true if and only if a block is valid for a given audience.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | Return true if a block is valid for a given audience. |
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.. |
Aucience | Audience | Term | @Audience:SUPPLIER | [1] | This attribute defines which 'audience shall be used for the check. |
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel1;
Flash.FlashSession FlashSession1;
List<String> List1;
Boolean Boolean1 = false;
/// Flow
ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", "SCHEINWERFER_1", false);
List1 = Flash.GetListOfValidFlashSessions(ComChannel1, @Audience:SUPPLIER, @Directions:DOWNLOAD);
FlashSession1 = Flash.GetFlashSession(List1[2]);
Boolean1 = Flash.BlockIsValidForAudience(FlashSession1, 1, @Audience:DEVELOPMENT);
See also
GetNumberOfSegments
GetNumberOfOwnIdents
GetNumberOfSecurities
GetLogicalBlockID
GetCompressionEncryption
GetType
GetListOfValidFlashSessions
GetFlashSession
GetComChannel