Package ZenModel :: Module HWComponent
[hide private]
[frames] | no frames]

Source Code for Module ZenModel.HWComponent

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  from Hardware import Hardware 
15  from DeviceComponent import DeviceComponent 
16   
17   
18 -class HWComponent(DeviceComponent, Hardware):
19 """ 20 Hardware component of a device such as a HardDisk, CPU, etc. 21 """ 22
23 - def device(self):
24 """Return our device object for DeviceResultInt. 25 """ 26 hw = self.hw() 27 if hw: return hw.device()
28