Difference between revisions of "Extensions.DiagCom.IsVariant"
Jump to navigation
Jump to search
(Created page with "Category:DiagCom == Classification == {{ClassificationActivity | IsVariant | Tests the name of a control device variant for a communication channel | Term | DiagCom|...") |
|||
| Line 9: | Line 9: | ||
== Description == | == Description == | ||
| − | The '''IsVariant''' term tests whether the name of the specified control units version matches the version of the given communication channel, see [[Variant Identification]]. | + | The '''IsVariant''' term tests whether the name of the specified control units version matches the version of the given communication channel, see [[Variant Identification]]. |
| + | |||
| + | {{TermReturnValue| [[Booelan]] | Return true if the version matches, false otherwise.}} | ||
== Properties == | == Properties == | ||
| Line 16: | Line 18: | ||
{{TableRowPropertie1| ComChannel | [[ComChannel]] | [[Term]] | - | [1] | Communication channel.}} | {{TableRowPropertie1| ComChannel | [[ComChannel]] | [[Term]] | - | [1] | Communication channel.}} | ||
{{TableRowPropertie2| EcuVariant | [[String]] | [[Term]] | - | [1] | Name of the ECU variant.}} | {{TableRowPropertie2| EcuVariant | [[String]] | [[Term]] | - | [1] | Name of the ECU variant.}} | ||
| − | |||
|} | |} | ||
Revision as of 03:42, 17 July 2014
Contents
Classification
| Name | IsVariant |
| Short Description | Tests the name of a control device variant for a communication channel |
| Class | Term |
| Extension | OTX DiagCom extension |
| Group | ComChanel related terms |
| Exceptions | - |
| Checker Rules | - |
| Standard Compliant | Yes |
Pseudo-Code Syntax
IsVariant(ComChannel myComChannel, String ecuVariantName);Description
The IsVariant term tests whether the name of the specified control units version matches the version of the given communication channel, see Variant Identification.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
| Data Type | Description |
| Booelan | Return true if the version matches, false otherwise. |
Properties
| Name | Data Type | Class | Default | Cardinality | Description |
| ComChannel | ComChannel | Term | - | [1] | Communication channel. |
| EcuVariant | String | Term | - | [1] | Name of the ECU variant. |
Examples
ComChannel myComCannel = GetComChannel("LL_AirbaUDS", "", false);
Boolean result = IsVariant(myComCannel, "ecuVariantName");See also
GetComChannelIdentifierFromResponse
GetComChannel
GetComChannelEcuVariantName