simevents entity generation with attributes
2 ビュー (過去 30 日間)
古いコメントを表示
How do I using MDES create an entity and set it's attributes based on an input signal?
0 件のコメント
回答 (1 件)
Abdolkarim Mohammadi
2022 年 4 月 7 日
編集済み: Abdolkarim Mohammadi
2022 年 4 月 7 日
You must set the attribute in the Generate event action, using in1.
function [entity,events] = generate(obj,storage,entity,tag,in1)
entity.data.Attribute1 = in1;
events = [];
end
参考
カテゴリ
Help Center および File Exchange で Discrete-Event Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!