Commit 3c511b38 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

ConditionalBuffer rename

parent d11cf3b8
...@@ -37,7 +37,7 @@ class NoCallerError(Exception): ...@@ -37,7 +37,7 @@ class NoCallerError(Exception):
# =========================================================================== # ===========================================================================
# the ConditionalBuffer object # the ConditionalBuffer object
# =========================================================================== # ===========================================================================
class ConditionalBuffer(QueueManagedJob): class ConditionalBufferManaged(QueueManagedJob):
# ======================================================================= # =======================================================================
# the default __init__ method of the QueueManagedJob class # the default __init__ method of the QueueManagedJob class
# whereas the default capacity is set to infinity # whereas the default capacity is set to infinity
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"name": "Assembly Buffer" "name": "Assembly Buffer"
}, },
"CB1": { "CB1": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"isDummy": "0", "isDummy": "0",
"name": "Conditional Buffer" "name": "Conditional Buffer"
}, },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"name": "Assembly Buffer" "name": "Assembly Buffer"
}, },
"CB1": { "CB1": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"isDummy": "0", "isDummy": "0",
"name": "Conditional Buffer" "name": "Conditional Buffer"
}, },
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
] ]
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"capacity": -1, "capacity": -1,
"isDummy": "0", "isDummy": "0",
"name": "Queue CAM" "name": "Queue CAM"
......
...@@ -565,7 +565,7 @@ ...@@ -565,7 +565,7 @@
] ]
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"capacity": -1, "capacity": -1,
"isDummy": "0", "isDummy": "0",
"name": "Queue CAM" "name": "Queue CAM"
......
...@@ -560,7 +560,7 @@ ...@@ -560,7 +560,7 @@
] ]
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"capacity": -1, "capacity": -1,
"isDummy": "0", "isDummy": "0",
"name": "Queue CAM" "name": "Queue CAM"
......
...@@ -563,7 +563,7 @@ ...@@ -563,7 +563,7 @@
] ]
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"capacity": "-1", "capacity": "-1",
"isDummy": "0", "isDummy": "0",
"name": "Queue CAM" "name": "Queue CAM"
......
...@@ -563,7 +563,7 @@ ...@@ -563,7 +563,7 @@
] ]
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"capacity": "-1", "capacity": "-1",
"isDummy": "0", "isDummy": "0",
"name": "Queue CAM" "name": "Queue CAM"
......
...@@ -856,7 +856,7 @@ ...@@ -856,7 +856,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"capacity": "-1" "capacity": "-1"
......
...@@ -1103,7 +1103,7 @@ ...@@ -1103,7 +1103,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"schedulingRule": "Priority", "schedulingRule": "Priority",
......
...@@ -1102,7 +1102,7 @@ ...@@ -1102,7 +1102,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"capacity": "-1" "capacity": "-1"
......
...@@ -816,7 +816,7 @@ ...@@ -816,7 +816,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"capacity": "-1" "capacity": "-1"
......
...@@ -816,7 +816,7 @@ ...@@ -816,7 +816,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"capacity": "-1" "capacity": "-1"
......
...@@ -788,7 +788,7 @@ ...@@ -788,7 +788,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"capacity": "-1" "capacity": "-1"
......
...@@ -1103,7 +1103,7 @@ ...@@ -1103,7 +1103,7 @@
"name": "Order Decomposition" "name": "Order Decomposition"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBufferManaged",
"name": "Queue CAM", "name": "Queue CAM",
"isDummy": "0", "isDummy": "0",
"schedulingRule": "Priority", "schedulingRule": "Priority",
......
...@@ -108,7 +108,7 @@ class MouldAssemblyBuffer(QueueManagedJob): ...@@ -108,7 +108,7 @@ class MouldAssemblyBuffer(QueueManagedJob):
activeEntity.order.basicsEnded = 1 activeEntity.order.basicsEnded = 1
# TODO: has to signal ConditionalBuffer to start sending entities again # TODO: has to signal ConditionalBuffer to start sending entities again
for secondary in [x for x in activeEntity.order.secondaryComponentsList if activeEntity.order.basicsEnded]: for secondary in [x for x in activeEntity.order.secondaryComponentsList if activeEntity.order.basicsEnded]:
if secondary.currentStation.__class__.__name__=='ConditionalBuffer': if secondary.currentStation.__class__.__name__=='ConditionalBufferManaged':
# print now(), self.id, ' signalling conditional buffer' # print now(), self.id, ' signalling conditional buffer'
if secondary.currentStation.expectedSignals['canDispose']: if secondary.currentStation.expectedSignals['canDispose']:
self.sendSignal(receiver=secondary.currentStation,signal=secondary.currentStation.canDispose) self.sendSignal(receiver=secondary.currentStation,signal=secondary.currentStation.canDispose)
......
...@@ -49,7 +49,7 @@ from dream.simulation.BatchSource import BatchSource ...@@ -49,7 +49,7 @@ from dream.simulation.BatchSource import BatchSource
from dream.simulation.BatchDecomposition import BatchDecomposition from dream.simulation.BatchDecomposition import BatchDecomposition
from dream.simulation.BatchReassembly import BatchReassembly from dream.simulation.BatchReassembly import BatchReassembly
from dream.simulation.BatchScrapMachine import BatchScrapMachine from dream.simulation.BatchScrapMachine import BatchScrapMachine
from dream.simulation.ConditionalBuffer import ConditionalBuffer from dream.simulation.ConditionalBufferManaged import ConditionalBufferManaged
from dream.simulation.LineClearance import LineClearance from dream.simulation.LineClearance import LineClearance
from dream.simulation.MachineManagedJob import MachineManagedJob from dream.simulation.MachineManagedJob import MachineManagedJob
from dream.simulation.QueueManagedJob import QueueManagedJob from dream.simulation.QueueManagedJob import QueueManagedJob
......
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