Table 9.2 Constant and random delay
The event lifetime is random and is evaluated according to the expression
coded in class PieceSource . The delay between two nut pieces is between
2000 and 3000 milliseconds, while the delay between two screw pieces is
between 1200 and 1800 milliseconds (see Table 9.2 right side).
Prototype 2: Work cell simulator
The second prototype implements the finite state automata that describe the
behaviour of all the work cell subsystems. We will not implement the full set
of requirements specified in Section 9.1. In fact, we will leave a few syn-
chronization aspects out of this prototype in order to give the reader the
opportunity to complete them as exercises. This prototype visualizes the
evolution of the simulation in a graphical user interface.
As described in Section 9.2, the work cell is composed of the inventory
system, the drill, the cutter, the transport and the assembler. We model the
inventory system with three distinct processes: two sources of pieces that
supply nuts and screws to the machines' input buffers and a sink that con-
sumes bolts from the assembler's output buffer. Every work cell subsystem
behaves as a finite state machine. The AGV has deterministic transport and
load times, while the other subsystems have stochastic processing times that
can range in a given interval (e.g. between the maximum value and half of it).
The work cell subsystems synchronize their activities by exchanging
events. Table 9.3 lists the event types that the work cell subsystems can
raise and listen to.