Commit 8b73acdf authored by Georgios Dagkakis's avatar Georgios Dagkakis

move state attribute to Entity

parent 16e2ea39
...@@ -36,7 +36,8 @@ class Entity(ManPyObject): ...@@ -36,7 +36,8 @@ class Entity(ManPyObject):
type="Entity" type="Entity"
def __init__(self, id=None, name=None, priority=0, dueDate=0, orderDate=0, def __init__(self, id=None, name=None, priority=0, dueDate=0, orderDate=0,
isCritical=False, remainingProcessingTime=0,remainingSetupTime=0,currentStation=None,**kw): isCritical=False, remainingProcessingTime=0,remainingSetupTime=0,currentStation=None,
status='Good',**kw):
ManPyObject.__init__(self,id,name) ManPyObject.__init__(self,id,name)
# information on the object holding the entity # information on the object holding the entity
# initialized as None and updated every time an entity enters a new object # initialized as None and updated every time an entity enters a new object
...@@ -77,6 +78,7 @@ class Entity(ManPyObject): ...@@ -77,6 +78,7 @@ class Entity(ManPyObject):
self.alias=None self.alias=None
self.remainingProcessingTime=remainingProcessingTime self.remainingProcessingTime=remainingProcessingTime
self.remainingSetupTime=remainingSetupTime self.remainingSetupTime=remainingSetupTime
self.status=status
#=========================================================================== #===========================================================================
# return the responsible operator for the current step, not implemented for entities # return the responsible operator for the current step, not implemented for entities
......
...@@ -35,5 +35,5 @@ class Part(Entity): ...@@ -35,5 +35,5 @@ class Part(Entity):
type="Part" type="Part"
def __init__(self, id=None, name=None, remainingProcessingTime=0,currentStation=None,**kw): def __init__(self, id=None, name=None, remainingProcessingTime=0,currentStation=None,**kw):
Entity.__init__(self, id, name, remainingProcessingTime=remainingProcessingTime,currentStation=currentStation) Entity.__init__(self, id, name, remainingProcessingTime=remainingProcessingTime,currentStation=currentStation)
self.status='Good'
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