TODOs added to Machine

parent ac8e2b48
...@@ -241,7 +241,7 @@ class Machine(CoreObject): ...@@ -241,7 +241,7 @@ class Machine(CoreObject):
if any(type=="Load" for type in self.multOperationTypeList) and self.isOperated(): if any(type=="Load" for type in self.multOperationTypeList) and self.isOperated():
self.timeLoadStarted = now() self.timeLoadStarted = now()
yield hold,self,self.calculateLoadTime() yield hold,self,self.calculateLoadTime()
# if self.interrupted(): There is the issue of failure during the Loading # TODO: if self.interrupted(): There is the issue of failure during the Loading
self.timeLoadEnded = now() self.timeLoadEnded = now()
self.loadTimeCurrentEntity = self.timeLoadEnded-self.timeLoadStarted self.loadTimeCurrentEntity = self.timeLoadEnded-self.timeLoadStarted
self.totalLoadTime += self.loadTimeCurrentEntity self.totalLoadTime += self.loadTimeCurrentEntity
...@@ -298,7 +298,7 @@ class Machine(CoreObject): ...@@ -298,7 +298,7 @@ class Machine(CoreObject):
if any(type=="Setup" for type in self.multOperationTypeList) and self.isOperated(): if any(type=="Setup" for type in self.multOperationTypeList) and self.isOperated():
self.timeSetupStarted = now() self.timeSetupStarted = now()
yield hold,self,self.calculateSetupTime() yield hold,self,self.calculateSetupTime()
# if self.interrupted(): There is the issue of failure during the setup # TODO: if self.interrupted(): There is the issue of failure during the setup
self.timeSetupEnded = now() self.timeSetupEnded = now()
self.setupTimeCurrentEntity = self.timeSetupEnded-self.timeSetupStarted self.setupTimeCurrentEntity = self.timeSetupEnded-self.timeSetupStarted
self.totalSetupTime += self.setupTimeCurrentEntity self.totalSetupTime += self.setupTimeCurrentEntity
......
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