SimObject.py (5488:c8571e8ce7b6) | SimObject.py (5543:3af77710f397) |
---|---|
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 --- 715 unchanged lines hidden (view full) --- 724 725 # Unproxy children in sorted order for determinism also. 726 child_names = self._children.keys() 727 child_names.sort() 728 for child in child_names: 729 self._children[child].unproxy_all() 730 731 def print_ini(self, ini_file): | 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 --- 715 unchanged lines hidden (view full) --- 724 725 # Unproxy children in sorted order for determinism also. 726 child_names = self._children.keys() 727 child_names.sort() 728 for child in child_names: 729 self._children[child].unproxy_all() 730 731 def print_ini(self, ini_file): |
732 print >>ini_file, '[' + self.path() + ']' # .ini section header | 732 print >>ini_file, '[' + self.path() + ']' # .ini section header |
733 734 instanceDict[self.path()] = self 735 736 if hasattr(self, 'type'): 737 print >>ini_file, 'type=%s' % self.type 738 739 child_names = self._children.keys() 740 child_names.sort() --- 10 unchanged lines hidden (view full) --- 751 752 port_names = self._ports.keys() 753 port_names.sort() 754 for port_name in port_names: 755 port = self._port_refs.get(port_name, None) 756 if port != None: 757 print >>ini_file, '%s=%s' % (port_name, port.ini_str()) 758 | 733 734 instanceDict[self.path()] = self 735 736 if hasattr(self, 'type'): 737 print >>ini_file, 'type=%s' % self.type 738 739 child_names = self._children.keys() 740 child_names.sort() --- 10 unchanged lines hidden (view full) --- 751 752 port_names = self._ports.keys() 753 port_names.sort() 754 for port_name in port_names: 755 port = self._port_refs.get(port_name, None) 756 if port != None: 757 print >>ini_file, '%s=%s' % (port_name, port.ini_str()) 758 |
759 print >>ini_file # blank line between objects | 759 print >>ini_file # blank line between objects |
760 761 for child in child_names: 762 self._children[child].print_ini(ini_file) 763 764 def getCCParams(self): 765 if self._ccParams: 766 return self._ccParams 767 --- 150 unchanged lines hidden --- | 760 761 for child in child_names: 762 self._children[child].print_ini(ini_file) 763 764 def getCCParams(self): 765 if self._ccParams: 766 return self._ccParams 767 --- 150 unchanged lines hidden --- |