simevents entity generation with attributes

Antworten (1)

Abdolkarim Mohammadi
Abdolkarim Mohammadi am 7 Apr. 2022
Bearbeitet: Abdolkarim Mohammadi am 7 Apr. 2022

0 Stimmen

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 Kommentar

Mats
Mats am 9 Apr. 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?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Tags

Gefragt:

am 6 Apr. 2022

Kommentiert:

am 9 Apr. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by