simevents entity generation with attributes

Respuestas (1)

Abdolkarim Mohammadi
Abdolkarim Mohammadi el 7 de Abr. de 2022
Editada: Abdolkarim Mohammadi el 7 de Abr. de 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 comentario

Mats
Mats el 9 de Abr. de 2022
Thanks for you answer!
When I do that I get an error that the attribute datatype is set incorrectly, where and how do I specify the entities attributes?

Iniciar sesión para comentar.

Categorías

Más información sobre Discrete-Event Simulation en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Etiquetas

Preguntada:

el 6 de Abr. de 2022

Comentada:

el 9 de Abr. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by