mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 1 | # Copyright 2007 Google Inc. Released under the GPL v2 |
| 2 | |
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 3 | """ |
| 4 | This module defines the Kernel class |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 5 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 6 | Kernel: an os kernel |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 7 | """ |
| 8 | |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 9 | |
jadmanski | 5664cff | 2008-12-03 18:00:03 +0000 | [diff] [blame] | 10 | from autotest_lib.server import installable_object |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 11 | |
| 12 | |
| 13 | class Kernel(installable_object.InstallableObject): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 14 | """ |
| 15 | This class represents a kernel. |
| 16 | |
| 17 | It is used to obtain a built kernel or create one from source and |
| 18 | install it on a Host. |
| 19 | |
| 20 | Implementation details: |
| 21 | This is an abstract class, leaf subclasses must implement the methods |
| 22 | listed here and in parent classes which have no implementation. They |
| 23 | may reimplement methods which already have an implementation. You |
| 24 | must not instantiate this class but should instantiate one of those |
| 25 | leaf subclasses. |
| 26 | """ |
| 27 | |
jadmanski | f7ca76d | 2008-06-12 23:22:56 +0000 | [diff] [blame] | 28 | def get_version(self): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 29 | pass |
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 30 | |
| 31 | |
jadmanski | f7ca76d | 2008-06-12 23:22:56 +0000 | [diff] [blame] | 32 | def get_image_name(self): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 33 | pass |
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 34 | |
| 35 | |
jadmanski | f7ca76d | 2008-06-12 23:22:56 +0000 | [diff] [blame] | 36 | def get_initrd_name(self): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 37 | pass |