Commit 9c33bce8 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

unneeded code removed from MachinePreemptive

parent ded9f36e
......@@ -34,14 +34,8 @@ class MachinePreemptive(MachineJobShop):
failureDistribution='No', MTTF=0, MTTR=0, availability=0, repairman='None', resetOnPreemption=True):
MachineJobShop.__init__(self, id, name, capacity, distribution, mean, stdev, min, max,\
failureDistribution, MTTF, MTTR, availability, repairman)
self.shouldPreempt=False #flag that shows that the machine should preempt or not
self.resetOnPreemption=resetOnPreemption #flag that shows if the processing time should be reset or not
def initilize(self):
MachineJobShop.initialize(self)
self.shouldPreempt=False
self.lastGiver=self.previous[0]
def getEntity(self):
activeEntity=MachineJobShop.getEntity(self)
self.lastGiver=self.giver
......
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