Joeri Exelmans 10 місяців тому
батько
коміт
321cb4871e
2 змінених файлів з 52 додано та 2 видалено
  1. 50 2
      assignment/doc/assignment.html
  2. 2 0
      assignment/environment.py

Різницю між файлами не показано, бо вона завелика
+ 50 - 2
assignment/doc/assignment.html


+ 2 - 0
assignment/environment.py

@@ -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):