Browse Source

finish assignment

Joeri Exelmans 10 months ago
parent
commit
321cb4871e
2 changed files with 52 additions and 2 deletions
  1. 50 2
      assignment/doc/assignment.html
  2. 2 0
      assignment/environment.py

File diff suppressed because it is too large
+ 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):