瀏覽代碼

forgot to include WorkerSet in Port-model

Joeri Exelmans 8 月之前
父節點
當前提交
54845b2a4a
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      examples/semantics/operational/port/models.py

+ 7 - 0
examples/semantics/operational/port/models.py

@@ -383,6 +383,11 @@ smaller_model2_cs = """
         shipCapacity = 1;
     }
     :capacityOf (passageCap -> berth)
+
+    workers:WorkerSet {
+        numWorkers = 1;
+    }
+    :canOperate (workers -> berth)
 """
 
 smaller_model2_rt_cs = smaller_model2_cs + """
@@ -397,4 +402,6 @@ smaller_model2_rt_cs = smaller_model2_cs + """
     gen2waitState:ConnectionState { moved = False; }  :of (gen2waitState -> gen2wait)
     wait2berthState:ConnectionState { moved = False; }  :of (wait2berthState -> wait2berth)
     berth2servedState:ConnectionState { moved = False; }  :of (berth2servedState -> berth2served)
+
+    workersState:WorkerSetState  :of (workersState -> workers)
 """