SimObject.py (14205:197360deaa20) SimObject.py (14206:9cd30cd80145)
1# Copyright (c) 2017-2019 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 1399 unchanged lines hidden (view full) ---

1408 elif isinstance(self._parent, MetaSimObject):
1409 return str(self.__class__)
1410
1411 ppath = self._parent.path()
1412 if ppath == 'root':
1413 return self._name
1414 return ppath + "." + self._name
1415
1# Copyright (c) 2017-2019 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 1399 unchanged lines hidden (view full) ---

1408 elif isinstance(self._parent, MetaSimObject):
1409 return str(self.__class__)
1410
1411 ppath = self._parent.path()
1412 if ppath == 'root':
1413 return self._name
1414 return ppath + "." + self._name
1415
1416 def path_list(self):
1417 if self._parent:
1418 return self._parent.path_list() + [ self._name, ]
1419 else:
1420 # Don't include the root node
1421 return []
1422
1416 def __str__(self):
1417 return self.path()
1418
1419 def config_value(self):
1420 return self.path()
1421
1422 def ini_str(self):
1423 return self.path()

--- 337 unchanged lines hidden ---
1423 def __str__(self):
1424 return self.path()
1425
1426 def config_value(self):
1427 return self.path()
1428
1429 def ini_str(self):
1430 return self.path()

--- 337 unchanged lines hidden ---