MATLAB ヘルプ センター
このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
AUTOSAR 要素の検索
paths = find(arProps,rootPath,category)
paths = find(arProps,rootPath,category,'PathType',value)
paths = find(arProps,rootPath,category,property,value)
paths = find(arProps,rootPath,category) は、category に一致する AUTOSAR 要素の paths (パス rootPath から始まる) を返します。
paths
arProps
rootPath
category
paths = find(arProps,rootPath,category,'PathType',value) では、返される paths が完全修飾か部分修飾かを指定します。
'PathType',value
例
paths = find(arProps,rootPath,category,property,value) では、指定された category の要素のプロパティに対する制約値を指定し、検索を絞り込みます。
property,value
すべて折りたたむ
モデルで、プロパティ IsService が false である送信側/受信側インターフェイスを検索し、完全修飾パスを返します。
IsService
false
hModel = 'autosar_swc_expfcns'; open_system(hModel); arProps = autosar.api.getAUTOSARProperties(hModel); ifPaths = find(arProps,[],'SenderReceiverInterface',... 'IsService',false,'PathType','FullyQualified')
ifPaths = 1×2 cell {'/pkg/if/Interface1'} {'/pkg/if/Interface2'}
モデルにモード スイッチ インターフェイスを追加し、find を使用してモデル内のモード スイッチ インターフェイスのパスを一覧表示します。
find
hModel = 'mAutosarMsConfigAfter'; open_system(hModel); arProps = autosar.api.getAUTOSARProperties(hModel); addPackageableElement(arProps,'ModeSwitchInterface','/pkg/if','Interface3',... 'IsService',true); ifPaths = find(arProps,[],'ModeSwitchInterface','PathType','FullyQualified')
ifPaths = 1×3 cell {'/pkg/if/myMsIf'} {'/pkg/if/MsIf2'} {'/pkg/if/Interface3'}
事前に arProps = autosar.api.getAUTOSARProperties(model) によって返されたモデルの AUTOSAR プロパティの情報。model は、モデル名を表すハンドル、文字ベクトル、または string スカラーです。
arProps = autosar.api.getAUTOSARProperties(model)
model
例: arProps
[]
指定したタイプの AUTOSAR 要素を検索する開始点を指定するパス。[] はコンポーネントのルートを示します。
例: []
パスを返す AUTOSAR 要素のタイプ。
例: 'SenderReceiverInterface'
'SenderReceiverInterface'
'PartiallyQualified'
'FullyQualified'
完全修飾パスを返すには FullyQualified を指定します。
FullyQualified
例: 'PathType','FullyQualified'
'PathType','FullyQualified'
指定したカテゴリの要素の有効なプロパティと、検索でそのプロパティに一致させる値。表AUTOSAR 要素のプロパティに、AUTOSAR 要素に関連付けられているプロパティを示しています。プロパティの詳細については、AUTOSAR Element Propertiesを参照してください。
例: 'IsService',true
'IsService',true
AUTOSAR 要素へのパスを返す変数。
例: ifPaths
ifPaths
R2013b で導入
autosar.api.getAUTOSARProperties | add | delete | get | set
autosar.api.getAUTOSARProperties
add
delete
get
set
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ