simevents entity generation with attributes
이전 댓글 표시
How do I using MDES create an entity and set it's attributes based on an input signal?
답변 (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
카테고리
도움말 센터 및 File Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!