MATLAB ヘルプ センター
AUTOSAR 要素の削除
delete(arProps,elementPath)
delete(arProps,elementPath) は、elementPath の AUTOSAR 要素を削除します。
arProps
elementPath
例
すべて折りたたむ
モデルの AUTOSAR 構成から送信側/受信側インターフェイス Interface1 を削除します。
Interface1
hModel = 'autosar_swc_expfcns'; openExample(hModel); arProps = autosar.api.getAUTOSARProperties(hModel); % Add Interface3 addPackageableElement(arProps,'SenderReceiverInterface','/pkg/if','Interface3'); ifPaths = find(arProps,[],'SenderReceiverInterface','PathType','FullyQualified')
ifPaths = 1×3 cell array {'/pkg/if/Interface1'} {'/pkg/if/Interface2'} {'/pkg/if/Interface3'}
% Find AUTOSAR DataReceiverPort and change its interface from Interface1 to Interface3 arPortType = 'DataReceiverPort'; aswcPath = find(arProps,[],'AtomicComponent','PathType','FullyQualified'); rPorts = find(arProps,aswcPath{1},arPortType,'PathType','FullyQualified'); rPort = rPorts{1}; set(arProps,rPort,'Interface','Interface3') % Delete Interface1 delete(arProps,'Interface1'); ifPaths = find(arProps,[],'SenderReceiverInterface','PathType','FullyQualified')
ifPaths = 1×2 cell array {'/pkg/if/Interface2'} {'/pkg/if/Interface3'}
事前に arProps = autosar.api.getAUTOSARProperties(model) によって返されたモデルの AUTOSAR プロパティの情報。model は、モデル名を表すハンドル、文字ベクトル、または string スカラーです。
arProps = autosar.api.getAUTOSARProperties(model)
model
例: arProps
削除する AUTOSAR 要素のパス。
例: 'Input'
'Input'
R2013b で導入
autosar.api.getAUTOSARProperties | add
autosar.api.getAUTOSARProperties
add
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 のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ