Commit 676e5b9f authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Queue so it can have infinite capacity

parent bcb85cef
...@@ -26,8 +26,6 @@ Models a FIFO queue where entities can wait in order to get into a server ...@@ -26,8 +26,6 @@ Models a FIFO queue where entities can wait in order to get into a server
''' '''
# from SimPy.Simulation import Process, Resource, SimEvent
# from SimPy.Simulation import waituntil, now, infinity, waitevent
import simpy import simpy
from CoreObject import CoreObject from CoreObject import CoreObject
# =========================================================================== # ===========================================================================
...@@ -48,7 +46,7 @@ class Queue(CoreObject): ...@@ -48,7 +46,7 @@ class Queue(CoreObject):
if capacity>0: if capacity>0:
self.capacity=capacity self.capacity=capacity
else: else:
self.capacity=infinity self.capacity=float("inf")
# No failures are considered for the Queue # No failures are considered for the Queue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment