finish assignment

This commit is contained in:
Joeri Exelmans 2024-12-13 14:28:07 +01:00
parent 15925636d7
commit 321cb4871e
2 changed files with 52 additions and 2 deletions

View file

@ -80,6 +80,8 @@ class Sink(AtomicDEVS):
def __init__(self):
super().__init__("Sink")
self.state = SinkState()
# On this input port, the Sink expects to receive a *list* of Ships. This is because a Lock can contain more than one Ship, and the Lock can send them all at once to the Sink (with a single event).
self.in_ships = self.addInPort("in_ships")
def extTransition(self, inputs):