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 --- 533 unchanged lines hidden (view full) --- 542 applyOrMap(portRef, 'ccConnect') 543 for child in self._children.itervalues(): 544 child.connectPorts() 545 546 def startDrain(self, drain_event, recursive): 547 count = 0 548 # ParamContexts don't serialize 549 if isinstance(self, SimObject) and not isinstance(self, ParamContext): |
550 if not self._ccObject.drain(drain_event): |
551 count = 1 552 if recursive: 553 for child in self._children.itervalues(): 554 count += child.startDrain(drain_event, True) 555 return count 556 557 def resume(self): 558 if isinstance(self, SimObject) and not isinstance(self, ParamContext): --- 969 unchanged lines hidden --- |