simevents entity generation with attributes
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How do I using MDES create an entity and set it's attributes based on an input signal?
0 Kommentare
Antworten (1)
Abdolkarim Mohammadi
am 7 Apr. 2022
Bearbeitet: Abdolkarim Mohammadi
am 7 Apr. 2022
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
Siehe auch
Kategorien
Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!