getPlatformProperty
説明
は、指定されたディクショナリ要素の指定されたプロパティを AUTOSAR Classic Platform にマッピングされたインターフェイス ディクショナリから取得します。データ インターフェイス オブジェクトまたはデータ要素オブジェクトをディクショナリ要素として指定できます。propValue
= getPlatformProperty(platformMapping
,dictElementObj
,propName
)
例
AUTOSAR インターフェイスのプロパティ InterfaceKind の取得
指定したデータ インターフェイスに対して定義されている AUTOSAR 通信インターフェイスの種類を取得するには、引数 propName
を InterfaceKind
にして関数 getPlatformProperty
を使用します。関連する関数のワークフローを示す詳細な例については、データ ディクショナリでの AUTOSAR Classic のデータ インターフェイスとプロパティの構成を参照してください。
platformMapping = getPlatformMapping(dictAPI,'AUTOSARClassic'); interfaceObj = getInterface(dictAPI,'interfaceName'); propValue_Interface = ... getPlatformProperty(platformMapping,interfaceObj,'InterfaceKind')
propValue_Interface = 'NvDataInterface'
AUTOSAR データ要素のプロパティ SwCalibrationAccess の取得
指定したデータ要素に対して定義されているキャリブレーション ツールおよび測定ツールのアクセスを取得するには、引数 propName
を SwCalibrationAccess
にして関数 getPlatformProperty
を使用します。
dataElemObj = userInterfaceObj.Elements(1); propValue_Sw_CalAccess = ... getPlatformProperty(platformMapping,dataElemObj,'SwCalibrationAccess')
propValue_Sw_CalAccess = 'ReadWrite'
入力引数
platformMapping
— プラットフォーム マッピング オブジェクト
autosar.dictionary.ARClassicPlatformMapping
オブジェクト
プラットフォーム マッピング オブジェクト。autosar.dictionary.ARClassicPlatformMapping
オブジェクトとして指定します。
dictElementObj
— ディクショナリ オブジェクト内の要素
Simulink.interface.dictionary.DataInterface
オブジェクト | Simulink.interface.dictionary.DataElement
オブジェクト
AUTOSAR プラットフォーム固有のプロパティと値にアクセスするディクショナリ オブジェクト内の要素。Simulink.interface.dictionary.DataInterface
オブジェクトまたは Simulink.interface.dictionary.DataElement
オブジェクトとして指定します。
この引数は、addDataInterface
または getInterface
の以前の呼び出しで返されたデータ インターフェイス オブジェクト、あるいは addElement
または getElement
の以前の呼び出しで返されたデータ要素オブジェクトにすることができます。
propName
— ディクショナリ要素のプロパティの名前
文字ベクトル | string スカラー
ディクショナリ要素のプロパティのプロパティ名。
データ インターフェイス オブジェクトの場合、有効な引数の値は 'IsService'
、'Package'
、'InterfaceKind'
です。
データ要素オブジェクトの場合、有効な引数の値は 'SwAddrMethod'
、'SwCalibrationAccess'
、'DisplayFormat'
です。
例: 'InterfaceKind'
出力引数
propValue
— ディクショナリ要素のプロパティの値
文字ベクトル | string スカラー
ディクショナリ要素のプロパティのプロパティ値。
データ インターフェイス オブジェクトの場合、返されるプロパティには以下が含まれます。
プロパティ | 戻り値 |
---|---|
IsService | サービス インターフェイスの場合に true に設定。Boolean として返されます。 |
Package | 要素パッケージの完全修飾パス。character vector として返されます。 |
InterfaceKind | AUTOSAR 通信インターフェイス。character vector として返されます。有効な値は 'SenderReceiverInterface' 、'NvDataInterface' 、'ModeSwitchInterface' です。 |
データ要素オブジェクトの場合、返されるプロパティには以下が含まれます。
プロパティ | 戻り値 |
---|---|
SwAddrMethod | 以前に定義されたソフトウェア アドレス メソッドの名前。character vector として返されます。 |
SwCalibrationAccess | データ オブジェクトに対するキャリブレーション ツールおよび測定ツールのアクセス。character vector として返されます。有効な値は 'ReadOnly' 、'ReadWrite' 、'NotAccessible' です。 |
DisplayFormat | AUTOSAR の表示形式仕様。character vector として返されます。 |
バージョン履歴
R2022b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)