blob: be8e072eed583895a68099515badcca159fd3128 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""(CHANGE THIS) This is a template for creating new implementation of factory shop floor system module.
"""
# Add required python modules here.
import logging
# Always include 'shopfloor' for the abstract base class.
import factory_common # pylint: disable=W0611
from cros.factory import shopfloor
class ShopFloor(shopfloor.ShopFloorBase):
"""(CHANGE THIS) Implementation for factory shop floor system."""
NAME = '(CHANGE THIS) Shopfloor system template'
VERSION = 1
def __init__(self, config=None):
"""See help(ShopFloorBase.__init__)"""
super(ShopFloor, self).__init__()
self.config = config
logging.info('Shop floor system started.')
def CheckSN(self, serial):
"""See help(ShopFloorBase.CheckSN)"""
raise NotImplementedError('CheckSN')
def GetHWID(self, serial):
"""See help(ShopFloorBase.GetHWID)"""
raise NotImplementedError('GetHWID')
def GetVPD(self, serial):
"""See help(ShopFloorBase.GetVPD)"""
raise NotImplementedError('GetVPD')
def UploadReport(self, serial, report_blob, report_name=None):
"""See help(ShopFloorBase.UploadReport)"""
raise NotImplementedError('UploadReport')
def Finalize(self, serial):
"""See help(ShopFloorBase.Finalize)"""
raise NotImplementedError('Finalize')
def GetTestMd5sum(self):
"""See help(ShopFloorBase.GetTestMd5sum)"""
raise NotImplementedError('GetTestMd5sum')
def UploadEvent(self, log_name, chunk):
"""See help(ShopFloorBase.UploadEvent)"""
raise NotImplementedError('UploadEvent')