blob: 916eb3f36c95fcaafdf31c2131c1ae5d7a42e86f [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class Device(object):
""" A base class of devices.
A device instance contains all the necessary information for constructing
a platform backend object for remote platforms.
name: A device name string in human-understandable term.
guid: A unique id of the device. Subclass of device must specify this
id properly so that device objects to a same actual device must have same
def __init__(self, name, guid):
self._name = name
self._guid = guid
def name(self):
return self._name
def guid(self):
return self._guid
def GetAllConnectedDevices(cls, denylist):
raise NotImplementedError()