simevents entity generation with attributes
1 次查看(过去 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!