Advanced Modelling FeaturesInterrupts
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:
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 |