Advanced Modelling Features

Interrupts

Model Description

   
 

Let us return to the example model of the Processes Step by Step section. It considers the loading zone of a container terminal where trucks arrive to load and/or unload a container. Van carriers operate the yard where containers are stored and fetch or deliver the required container for the trucks. The trucks wait in line until one of the van carriers is free for service.

We assume the following changes to the model description in order to add interrupt behaviour:

  • Some trucks are marked as urgent (have a high priority) which means they demand immediate service. They may want to reach a particular ship or carry perishable freight.
  • If an urgent truck arrives while no van carrier is available it interrupts one of the busy van carriers. This van carrier then immediately places its current customer back into line, services the urgent truck and then continues with the truck that was put back.
  • Service for an interrupted truck will have to start over again, i.e. we will not consider that the time needed to "resume" service is any shorter.

Urgency will be modelled as a higher priority than usual. In DESMO-J, each entity (including simulation processes) has an in-built attribute priority with default value 0. For urgent trucks, this will be set to 2. All queues in DESMO-J are priority-based so that entities with a higher priority are placed on top of the queue. We will use this feature not only to have the urgent trucks served first, but also to ensure that the interrupted trucks are served before any "normal" trucks waiting in line. This is done by raising the priority of an interrupted truck to 1.



   
  http://desmoj.sourceforge.net/tutorial/advanced/interrupt1.html