params.py (3109:c3956807347f) | params.py (3179:c86dfc93984b) |
---|---|
1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 790 unchanged lines hidden (view full) --- 799 def clone(self, simobj, memo): 800 if memo.has_key(self): 801 return memo[self] 802 newRef = copy.copy(self) 803 memo[self] = newRef 804 newRef.simobj = simobj 805 assert(isSimObject(newRef.simobj)) 806 if self.peer and not proxy.isproxy(self.peer): | 1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 790 unchanged lines hidden (view full) --- 799 def clone(self, simobj, memo): 800 if memo.has_key(self): 801 return memo[self] 802 newRef = copy.copy(self) 803 memo[self] = newRef 804 newRef.simobj = simobj 805 assert(isSimObject(newRef.simobj)) 806 if self.peer and not proxy.isproxy(self.peer): |
807 peerObj = memo[self.peer.simobj] | 807 peerObj = self.peer.simobj(_memo=memo) |
808 newRef.peer = self.peer.clone(peerObj, memo) 809 assert(not isinstance(newRef.peer, VectorPortRef)) 810 return newRef 811 812 def unproxy(self, simobj): 813 assert(simobj is self.simobj) 814 if proxy.isproxy(self.peer): 815 try: --- 153 unchanged lines hidden --- | 808 newRef.peer = self.peer.clone(peerObj, memo) 809 assert(not isinstance(newRef.peer, VectorPortRef)) 810 return newRef 811 812 def unproxy(self, simobj): 813 assert(simobj is self.simobj) 814 if proxy.isproxy(self.peer): 815 try: --- 153 unchanged lines hidden --- |