Category: Discrete Events
Represents event generator in discrete event simulation.
syScheduler(Rate, Kind, TimeNow)
The syScheduler function syntax has the following arguments:
- Rate: required. Number of events to be emitted per time unit, or the time to emit single event.
- Kind: required. Defines scheduling rules: 1 - regularly recurring events, 2 - regularly recurring events, first event at the beginning of period, 3 - events generated according to Poisson process, 4 - one event at exact time given by Rate argument.
- TimeNow: required. Reference to a cell with syClock().
Return value is the number of events emitted in the last time interval.
Scheduler generates events in specific moments in time. In each timestep, its return value represents the number of events that were emitted in the last time interval.
The events are emitted according to the scheduling rules. The rate refers to the assumed unit of time and it should be interpreted as such.
syScheduler has additional outputs which can be accessed by sySchedulerOutput() element.
syScheduler(1/7,1,A2)- in combination with
syClock(1,365)in cell A2 and assumed time unit day we told the scheduler to emit an event every seven days. We can read the Rate parameter as "once per seven days".
syScheduler(4/(10/60),1,A2)- in combination with
syClock(1,24,,1/60)in cell A2 and hour as an assumed time unit we told the scheduler to emit four events every ten minutes.