Difference between revisions of "Extensions.DiagCom.IsDiagServiceEvent"
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;"> | ||
− | + | /// Local Declarations | |
+ | Boolean BooleanVariable; | ||
+ | /// Flow | ||
+ | BooleanVariable = DiagCom.IsDiagServiceEvent(EventValue); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 24: | ||
== 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.DiagService DiagService1; | DiagCom.DiagService DiagService1; | ||
EventHandling.EventSource EventSource1; | EventHandling.EventSource EventSource1; |
Revision as of 03:00, 24 October 2018
Contents
Classification
Name | IsDiagServiceEvent |
Short Description | Checks the type of the Event |
Class | Term |
Extension | OTX DiagCom extension |
Group | Event related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
Boolean BooleanVariable;
/// Flow
BooleanVariable = DiagCom.IsDiagServiceEvent(EventValue);
Description
The IsDiagServiceEvent term accepts an EventValue term yielding an Event object that has been raised by the OTX runtime, as a result of declaring a DiagService object as an event source by using the term DiagServiceEventSource. The term shall return true if and only if the Event originates from a DiagServiceEventSource term.
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 | Returns true if and only if the Event originates from a DiagServiceEventSource term, otherwise false. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Event | Event | Value | - | [1] | Represents the Event whose type shall be tested. |
OTL Examples
/// Local Declarations
DiagCom.DiagService DiagService1;
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
DiagCom.ComChannel ComChannel1;
Boolean Boolean1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_DiagnSessiContr");
EventSource1 = DiagCom.DiagServiceEventSource(DiagService1);
parallel
{
lane
{
DiagCom.ExecuteDiagService(DiagService1, {}, {}, NULL, NULL, false, false);
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}
Boolean1 = DiagCom.IsDiagServiceEvent(Event1);
See also
GetComChannel
CreateDiagServiceByName
ExecuteDiagService
WaitForEvent
GetDiagServiceFromEvent
DiagServiceEventSource