Chapter 3
Chapter 3
Contents
Objects of the system: entities, classes, attributes and sets Operation of entities: event, activity and process Activity cycle diagram
Examples- single machine system with out failure It is FIFO buffer The state S(t) is the number of jobs in the system at time t There are two events
Job arrival event Service completion event
At time t, if S(t) is n, then S(t)=n+1 if job arrival event occurs and n-1 if job completion event occur
State transition will be job arrival ( n, v) service completion failure arrival repair completion
(0,0) (n 1,1)
If n=1 If n>1
(n,2) (n,1)
Evolution of simulation is governed by clock and event list In the event list, events are linked to each other according to their occurrence Execution of an event may schedule another event Between events, simulation state is assumed constant
Process is the sequence of operations that an entity passes through during its life in a system
Are sequence of events or activities Describes the behavior of an entities that flow through a system Useful for description of systems having resource contention Are represented by control flow diagrams which show the sequence of processes that each entity passes through
DES algorithm
1 2 3 4 Set simulation clock to zero Generate one or more events and schedule them If event list is empty stop, else find the next event Advance the clock to the time of the next event and execute it 5 Loop back to step 3
8 1 7 6 8 7 8 6 5 4
3
6 4 5 2 6 4 7 7 6
Design methods
Activity cycle diagram Event oriented graph Petri-Net approach Control graph
Symbols used
Dummy queues have to be inserted if activities continue without any delay All activity cycles have to be closed loop
Attributes
Customer arrival time and service time Server idle or busy
For each entity define its individual closed cycle of activity - queue - activity
Customer activity cycle
Customer Arrival World queue Wait for server
Get service
World queue
Get service
idle
Hold gate
Resource limitation
some entities may have limited availability
Example : if queue size is limited
Activity
Source and destination queue numbers Activity name, activity number Other parameters