Difference between revisions of "Extensions.DiagCom.IsDiagServiceEvent"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:DiagCom]]
+
{{DISPLAYTITLE:OTX '''IsDiagServiceEvent'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | IsDiagServiceEvent | Checks whether an event was rased to a diagnostic service | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Event related terms]] | - | - }}
+
{{ClassificationActivity | IsDiagServiceEvent | Checks whether an event was rased to a diagnostic service | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Event related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''IsDiagServiceEvent''' term checks whether the passed event so was rased to a diagnostic service on the [[DiagServiceEventSource]] was generated term or not, see [[Event Library]].
+
The '''IsDiagServiceEvent''' term checks whether the passed event so was rased to a diagnostic service on the [[Extensions.DiagCom.DiagServiceEventSource|DiagServiceEventSource]] was generated term or not, see [[Event Library]].
  
{{TermReturnValue| [[Boolean]] | True if and only if the Eventoriginates from a [[DiagServiceEventSourceterm]], otherwise false.}}
+
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | True if and only if the Eventoriginates from a [[DiagServiceEventSourceterm]], otherwise false.}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Event | [[Event]] | [[Term]] | - | [1] | Represents the Eventwhose type shall be tested.}}
+
{{TableRowPropertie1| Event | [[Extensions.EventHandling.Event|Event]] | [[Term]] | - | [1] | Represents the Eventwhose type shall be tested.}}
 
|}
 
|}
  
Line 47: Line 47:
  
 
== See also ==
 
== See also ==
[[GetDiagServiceFromEvent]] <br/>
+
[[Extensions.DiagCom.GetDiagServiceFromEvent|GetDiagServiceFromEvent]] <br/>
[[DiagServiceEventSource]]
+
[[Extensions.DiagCom.DiagServiceEventSource|DiagServiceEventSource]]

Revision as of 04:05, 15 February 2016

Classification

Name IsDiagServiceEvent
Short Description Checks whether an event was rased to a diagnostic service
Class Term
Extension OTX DiagCom extension
Group Event related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

BooleanTerm = DiagCom.IsDiagServiceEvent(EventTerm);

Description

The IsDiagServiceEvent term checks whether the passed event so was rased to a diagnostic service on the DiagServiceEventSource was generated term or not, see Event Library.

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
Boolean True if and only if the Eventoriginates from a DiagServiceEventSourceterm, otherwise false.

Properties

Name Data Type Class Default Cardinality Description
Event Event Term - [1] Represents the Eventwhose type shall be tested.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
Boolean Boolean1 = false;

myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
EventSource1 = DiagCom.DiagServiceEventSource(DiagService1);

parallel
{
   lane
   {
      DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false);
   }
   lane
   {
      EventHandling.WaitForEvent({EventSource1}, Event1);
   }
}

Boolean1 = DiagCom.IsDiagServiceEvent(Event1);

See also

GetDiagServiceFromEvent
DiagServiceEventSource