Initialize entity generation events
obj— Discrete-event System object™
Discrete-event System object.
A vector of events to create initial entities. The discrete-event system schedules these events at the start of simulation.
out1— Data output
Data outputs of the object. You must specify these output arguments when the object has data outputs.
Schedules two entity generation events at the start of the simulation
function events = setupEvents(obj) % Schedules two entity generation events at the start of the % simulation % - An event with tag 'Adam' to generate an entity in storage element 1. % - An event with tag 'Eve' to generate an entity in storage element 2. events = [... obj.eventGenerate(1, 'Adam', 0.5, 200), ... obj.eventGenerate(2, 'Eve', 0.8, 100)]; end