Browse Source

forgot the queue

Joeri Exelmans 10 months ago
parent
commit
f5a09a2a43
1 changed files with 4 additions and 0 deletions
  1. 4 0
      assignment/system.py

+ 4 - 0
assignment/system.py

@@ -31,6 +31,10 @@ class LockQueueingSystem(CoupledDEVS):
             gen_num=gen_num,
         ))
 
+        queue = self.addSubModel(Queue(
+            ship_sizes=set(gen_types), # the queue only needs to know the different ship sizes (and create a FIFO queue for each)
+        ))
+
         if load_balancer_strategy == STRATEGY_ROUND_ROBIN:
             LoadBalancer = RoundRobinLoadBalancer
         elif load_balancer_strategy == STRATEGY_FILL_ER_UP: