simevents entity generation with attributes
Afficher commentaires plus anciens
How do I using MDES create an entity and set it's attributes based on an input signal?
Réponses (1)
Abdolkarim Mohammadi
le 7 Avr 2022
Modifié(e) : Abdolkarim Mohammadi
le 7 Avr 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
1 commentaire
Mats
le 9 Avr 2022
Catégories
En savoir plus sur Discrete-Event Simulation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!