blob: 8329caa2dc2d2d8bb281e4170d7bea0bd636d791 [file] [log] [blame]
mblighdcd57a82007-07-11 23:06:47 +00001# Copyright 2007 Google Inc. Released under the GPL v2
2
mblighdc735a22007-08-02 16:54:37 +00003"""
4This module defines the Kernel class
mblighdcd57a82007-07-11 23:06:47 +00005
jadmanski0afbb632008-06-06 21:10:57 +00006 Kernel: an os kernel
mblighdcd57a82007-07-11 23:06:47 +00007"""
8
mblighdcd57a82007-07-11 23:06:47 +00009
jadmanski5664cff2008-12-03 18:00:03 +000010from autotest_lib.server import installable_object
mblighdcd57a82007-07-11 23:06:47 +000011
12
13class Kernel(installable_object.InstallableObject):
jadmanski0afbb632008-06-06 21:10:57 +000014 """
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
jadmanskif7ca76d2008-06-12 23:22:56 +000028 def get_version(self):
jadmanski0afbb632008-06-06 21:10:57 +000029 pass
mblighdc735a22007-08-02 16:54:37 +000030
31
jadmanskif7ca76d2008-06-12 23:22:56 +000032 def get_image_name(self):
jadmanski0afbb632008-06-06 21:10:57 +000033 pass
mblighdc735a22007-08-02 16:54:37 +000034
35
jadmanskif7ca76d2008-06-12 23:22:56 +000036 def get_initrd_name(self):
jadmanski0afbb632008-06-06 21:10:57 +000037 pass