#sets the routing in and out elements for the Assembly
defdefineRouting(self,pp,pf,n):
defdefineRouting(self,p,n):
self.next=n
self.previousPart=pp
self.previousFrame=pf
self.previous=p
#removes an entity from the Assembly
defremoveEntity(self):
...
...
@@ -162,12 +198,12 @@ class Assembly(Process):
#it may handle both Parts and Frames
defgetEntity(self,type):
if(type=="Part"):
self.Res.activeQ[0].Res.activeQ.append(self.previousPart[0].Res.activeQ[0])#get the part from the predecessor and append it to the frame!
self.previousPart[0].removeEntity()#remove the part from the previews object
self.Res.activeQ[0].Res.activeQ.append(self.previous[self.predecessorIndex].Res.activeQ[0])#get the part from the predecessor and append it to the frame!
self.previous[self.predecessorIndex].removeEntity()#remove the part from the previews object
self.outputTrace(self.Res.activeQ[0].Res.activeQ[-1].name,"got into "+self.objName)
elif(type=="Frame"):
self.Res.activeQ.append(self.previousFrame[0].Res.activeQ[0])#get the frame from the predecessor
self.previousFrame[0].removeEntity()#remove the frame from the previews object
self.Res.activeQ.append(self.previous[self.predecessorIndex].Res.activeQ[0])#get the frame from the predecessor
self.previous[self.predecessorIndex].removeEntity()#remove the frame from the previews object
self.outputTrace(self.Res.activeQ[0].name,"got into "+self.objName)