forgot the queue

This commit is contained in:
Joeri Exelmans 2024-12-13 12:47:51 +01:00
parent 4b959bc98b
commit f5a09a2a43

View file

@ -31,6 +31,10 @@ class LockQueueingSystem(CoupledDEVS):
gen_num=gen_num, 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: if load_balancer_strategy == STRATEGY_ROUND_ROBIN:
LoadBalancer = RoundRobinLoadBalancer LoadBalancer = RoundRobinLoadBalancer
elif load_balancer_strategy == STRATEGY_FILL_ER_UP: elif load_balancer_strategy == STRATEGY_FILL_ER_UP: