Advanced Modelling Features

Bin

The Model Trace

   
 

We take a look at the model trace at the randomly chosen simulation time 31.8825. At this time Ship#9 arrives and delivers new containers to each bin:

BinExampleExperiment - Trace

time
event
entity
action(s)
0.0TraceOn#1----Trace switched on
... ......
31.8825 ShipGenerator#1activates 'Ship#9' now
holds for 7.7612 until 39.6437
Ship#9stores 348 to ' Eastern Europe '
number of containers in east: 431
stores 87 to ' Northern Europe '
number of containers in north: 423
stores 260 to ' Central Europe '
number of containers in central: 500
stores 179 to ' Germany '
number of containers in german: 205
leaves the port
Ship#9 terminates
Train to Germany#39takes 65 from 'Germany'
activates 'Train to Germany#40' at 32.3825
Train to Germany#39 terminates
Train to Eastern Europe#23takes 90 from 'Eastern Europe'
activates 'Train to Eastern Europe#24' at 32.3825
Train to Eastern Europe#23 terminates

Trains load containers and leave the terminal, heading for the four destinations. After a while, at simulation time 36.0713, the northern bound trains aren't able to obtain their requested number of containers anymore. The same happens to the central bound train directly afterwards. Then the next ship (Ship#10) arrives and frees the trains by delivering enough containers to the storage areas.

36.0713 Train to Northern Europe#44Train length: 54 containers
36.0713 awaits 54 of 'Northern Europe'
36.3802 Train to Central Europe#33Train length: 56 containers
36.3802 awaits 56 of 'Central Europe'
39.6437 ShipGenerator#1activates 'Ship#10' now
39.6437 holds for 0.7393 until 40.3831
39.6437 Ship#10stores 171 to ' Eastern Europe '
39.6437 number of containers in east: 199
39.6437 stores 49 to ' Northern Europe '
39.6437 number of containers in north: 65
39.6437 stores 95 to ' Central Europe '
39.6437 number of containers in central: 137
39.6437 stores 179 to ' Germany '
39.6437 number of containers in german: 203
39.6437 leaves the port
39.6437 Ship#10 terminates
39.6437 Train to Germany#42takes 30 from 'Germany'
39.6437 activates 'Train to Germany#43' at 40.1437
39.6437 Train to Germany#42 terminates
39.6437 Train to Central Europe#33takes 56 from 'Central Europe'
39.6437 activates 'Train to Central Europe#34' at 40.1437
39.6437 Train to Central Europe#33 terminates
39.6437 Train to Northern Europe#44takes 54 from 'Northern Europe'
39.6437 activates 'Train to Northern Europe#45' at 40.1437
39.6437 Train to Northern Europe#44 terminates
39.6437 Train to Eastern Europe#30takes 51 from 'Eastern Europe'
39.6437 activates 'Train to Eastern Europe#31' at 40.1437
39.6437 Train to Eastern Europe#30 terminates

You may download the full source code of this example if you want to try it out yourself.



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