Difference between revisions of "Extensions.DiagCom.DiagServiceEventSource"

From emotive
Jump to navigation Jump to search
 
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''DiagServiceEventSource''' term accepts a [[Extensions.DiagCom.DiagService|DiagService]] object that is to be made an event source. A [[Extensions.DiagCom.DiagService|DiagService]] shall trigger an event every time a new [[Extensions.DiagCom.Result|Result]] has arrived.The '''DiagServiceEventSource''' term is the complementary functionality to the asynchronous execution feature of the [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] action: when [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] is used with '''<executeAsync>''' set to true, the only way to be notified of available results for the executed diagnostic service is to use it as an event source through the '''DiagServiceEventSource''' term.
+
The '''DiagServiceEventSource''' term accepts a [[Extensions.DiagCom.DiagService|DiagService]] object that is to be made an event source. A [[Extensions.DiagCom.DiagService|DiagService]] will trigger an event every time a new [[Extensions.DiagCom.Result|Result]] has arrived.The '''DiagServiceEventSource''' term is the complementary functionality to the asynchronous execution feature of the [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] action: when [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] is used with '''<executeAsync>''' set to true, the only way to be notified of available results for the executed diagnostic service is to use it as an event source through the '''DiagServiceEventSource''' term.
  
 
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | Source for event handling}}
 
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | Source for event handling}}
Line 16: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie2| DiagService | [[Extensions.DiagCom.DiagService|DiagService]] | [[Term]] | - | [1] | Represents the '''DiagService''' that shall be connected to the event source.}}
+
{{TableRowPropertie2| DiagService | [[Extensions.DiagCom.DiagService|DiagService]] | [[Term]] | - | [1] | Represents the '''DiagService''' that will be connected to the event source.}}
 
|}
 
|}
  

Latest revision as of 09:45, 12 September 2019

Classification

Name DiagServiceEventSource
Short Description Binds a diagnosis service to an event handling source
Class Term
Extension OTX DiagCom extension
Group Event related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

EventSourceTerm DiagCom.DiagServiceEventSource(DiagServiceTerm diagService);

Description

The DiagServiceEventSource term accepts a DiagService object that is to be made an event source. A DiagService will trigger an event every time a new Result has arrived.The DiagServiceEventSource term is the complementary functionality to the asynchronous execution feature of the ExecuteDiagService action: when ExecuteDiagService is used with <executeAsync> set to true, the only way to be notified of available results for the executed diagnostic service is to use it as an event source through the DiagServiceEventSource term.

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
EventSource Source for event handling

Properties

Name Data Type Class Default Cardinality Description
DiagService DiagService Term - [1] Represents the DiagService that will be connected to the event source.

OTL Examples

/// Local Declarations

DiagCom.DiagService DiagService1;
EventHandling.EventSource EventSource1;
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_DiagnSessiContr");
EventSource1 = DiagCom.DiagServiceEventSource(DiagService1);

See also

GetComChannel
CreateDiagServiceByName
ExecuteDiagService
WaitForEvent
GetDiagServiceFromEvent
IsDiagServiceEvent