WO1995017715A1 - Object-oriented system and method for hardware configuration - Google Patents

Object-oriented system and method for hardware configuration Download PDF

Info

Publication number
WO1995017715A1
WO1995017715A1 PCT/US1994/003981 US9403981W WO9517715A1 WO 1995017715 A1 WO1995017715 A1 WO 1995017715A1 US 9403981 W US9403981 W US 9403981W WO 9517715 A1 WO9517715 A1 WO 9517715A1
Authority
WO
WIPO (PCT)
Prior art keywords
hardware
objects
hardware configuration
type
oriented
Prior art date
Application number
PCT/US1994/003981
Other languages
French (fr)
Inventor
George W. Norman
Glenn P. Andert
Original Assignee
Taligent, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taligent, Inc. filed Critical Taligent, Inc.
Priority to EP94923149A priority Critical patent/EP0730763B1/en
Priority to AU73105/94A priority patent/AU7310594A/en
Priority to DE69405408T priority patent/DE69405408T2/en
Priority to JP7517390A priority patent/JPH09507317A/en
Publication of WO1995017715A1 publication Critical patent/WO1995017715A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention is generally directed to configuring hardware in a computer system, and more particularly to an object-oriented system and method for configuring hardware in a computer system.
  • hardware configuration refers to configuring computer components which are generally visible to users (this is called user- oriented hardware configuration). This includes tasks such as setting the double-click speed of a mouse, formatting a disk drive, connecting a modem to a serial port, or changing an existing connection.
  • hardware configuration In the input/output (I/O) domain of a computer system, hardware configuration refers to low-level services which control or regulate access to integrated circuits (ICs) and other low-level hardware resources (this is called I/O hardware configuration).
  • the present invention is primarily directed to user-oriented hardware configuration, but can be applied to other types of hardware configuration, such as I/O hardware configuration.
  • the Chooser application must be used to connect a StyleWriter printer to a modem port.
  • a communication application e.g. MacTerminal
  • the "Apple HD SC Setup" application must be used.
  • the mouse control panel in the control panels folder must be used.
  • the Comm Toolbox is port centric, not device centric (that is, the information saved by a document is about a port, not a device). If a user moves his modem to a different port, all of the terminal documents using that modem will not properly transmit when asked to do so, because they will expect the modem to be connected to the original port.
  • the present invention is directed to an object-oriented hardware configuration system for enabling centralized user configuration of hardware in a computer system.
  • the hardware configuration system includes a plurality of object-oriented hardware interface objects each representing a hardware device physical connector, and a plurality of object-oriented hardware module objects.
  • Each of the hardware module objects represents a hardware device that is user-configurable.
  • Each of the hardware module objects includes one or more hardware interface objects associated with the hardware device such that connectors of the hardware device are defined.
  • An object-oriented hardware configuration object is provided, wherein the hardware configuration object includes a plurality of hardware module objects that represent hardware devices connected to a particular computer system.
  • the hardware configuration object defines a hardware configuration of the particular computer system. A user may access the hardware configuration object to configure the hardware devices connected to the particular computer system.
  • the configuration system of the present invention supports centralized user configuration of hardware. Centralizing hardware configuration releases users from the burden of having to remember all of the different places hardware configuration tools can be located. For example, a computer viewer (discussed below), which is supported by the configuration system, is used to connect manually configured devices to the system. It provides access to configuration utilities (for example, tools to format disk drives, change a monitor's bit-depth, etc.) for all local devices. It may also be used for choosing or directly using local services (e.g. local printers and modems).
  • configuration utilities for example, tools to format disk drives, change a monitor's bit-depth, etc.
  • the hardware configuration system offers special benefits.
  • the parts bin enables a user to find and connect a new device quickly using a hardware configuration viewer (e.g. the computer viewer).
  • the parts bin is used for all manually connected devices.
  • the hardware configuration system offers a number of innovative features.
  • the hardware configuration system manages a database of devices and their connections.
  • the Hardware Configuration system records the existence, physical characteristics and connections of devices associated with a real hardware system. It allows clients to change connections and characteristics of these devices.
  • a personal computer consists of a computer and its peripherals. The existence and physical characteristics of the computer and its peripherals are recorded by a hardware database and users may change connections and add new or remove existing devices.
  • the Hardware configuration system supports complex hardware systems which include switch boxes, multi-function cards, multi-slot cards, connections to more than one network (e.g. multiple network cards), multi-slot-type computers and expansion buses.
  • the hardware configuration system supports refresh of configuration database.
  • a service is provided which enables clients to manually make the database current.
  • the hardware configuration system provides persistence for devices and their connections. When a device object is registered with the Hardware configuration system, the device object and its connection(s) can be saved. When restarted, all of these saved device objects will be automatically
  • the hardware configuration system assists THardwarelnterfaceReferences in supporting device associations. Sufficient information is recorded to allow a THardwarelnterfaceReference object to automatically create a service for any connected device (manual or auto). The reference object remains valid even after the device's connection in the computer viewer has changed.
  • the hardware configuration system provides notification. Notification is provided to any interested client when the state of an interesting hardware database changes (e.g. a device is added, removed, or connection changes). There is only one TInterest provided and that is: "something changed”. Consequently, clients are only alerted that a change occurred and are not automatically given any additional details about the change.
  • an interesting hardware database changes e.g. a device is added, removed, or connection changes.
  • the hardware configuration system Supports a Hardware Configuration Viewer Framework. Clients can create their own hardware databases which can be built using the hardware configuration system of the present invention and displayed by the hardware configuration viewer framework. For example, a LaserWriter NTX configuration viewer can be created which would allow a user to see the hardware configuration of a remote LaserWriter (including its disk drives, connections, etc.).
  • the hardware configuration system supports creation of device configuration viewers. Device configuration viewers enable a user to configure the "real device”. Device configuration viewers are created by presentation objects. An entity of the operating system may create a presentation object using information obtained from a device object. For example, a configuration viewer for a disk drive will be created to reformat, partition, test, mount and unmount volumes for a drive.
  • Figure 1 is a block diagram of a computer system in which the hardware configuration system in accordance with a preferred embodiment operates;
  • Figure 2 is a class diagram of a hardware configuration framework according to a preferred embodiment in accordance with a preferred embodiment;
  • Figure 3 is a diagram used to illustrate the operation of a THardwareConfiguration object in accordance with a preferred embodiment
  • Figure 4 is a diagram used to illustrate the operation of a THardwareModule object in accordance with a preferred embodiment
  • Figure 5 is a diagram used to illustrate the operation of a THardwarelnterface object in accordance with a preferred embodiment
  • Figure 6 is a diagram used to illustrate the operation of a
  • Figures 7A-7E are diagrams used to illustrate the manner in which a preferred embodiment operates during an example hardware configuration scenario.
  • the present invention is directed to an object-oriented system and method for configuring the hardware of a computer system. Since it is object- based, the present invention will be described herein using object-oriented terms and concepts. Such object-oriented terms and concepts are well known, and are discussed in many publicly available documents, such as Object- Oriented Design by Grady Booch (Benjamin Cummings 1991).
  • Figure 1 illustrates a high-level block diagram of a computer system 102 in which the object-oriented configuration system in accordance with a preferred embodiment operates. It should be noted that the present invention alternatively encompasses the configuration system in combination with the computer system 102.
  • the computer system 102 includes hardware components 104, such as a random access memory (RAM) 108 and a central processing unit (CPU) 106. It should be noted that the CPU 106 may represent a single processor or multiple processors operating in parallel.
  • the computer system 102 also includes peripheral devices which are connected to the hardware components 104. These peripheral devices include an input device or devices (such as a keyboard, a mouse, a light pen, etc.) 110, a data storage device 112 (such as a hard disk or floppy disk), a display 114, a printer 116, and a network adapter 118.
  • the computer system 102 could be connected to other peripheral devices.
  • the computer system 102 also includes an operating system 122, and may include microinstruction code 120 (also called firmware).
  • the operating system 122 may represent a substantially full-function operating system, such as the Disk Operating System (DOS) and the UNIX operating system.
  • the operating system 122 may alternatively represent other types of operating systems.
  • the operating system 122 represents a limited functionality operating system, such as the Mach micro-kernel developed by IBM, which is well-known to those skilled in the relevant art.
  • the computer system 102 is an International Business Machines (IBM) computer or an IBM-compatible computer. In an alternate embodiment in accordance with a preferred embodiment, the computer system 102 is an Apple computer.
  • IBM International Business Machines
  • IBM-compatible computer In an alternate embodiment in accordance with a preferred embodiment, the computer system 102 is an Apple computer.
  • One or more programs 124 operate in parallel in the computer system 102.
  • the object-oriented configuration system in accordance with a preferred embodiment is implemented as a collection of object-oriented objects which execute in the computer system 102. These objects are represented by one or more of the programs 124 which execute in the computer system 102.
  • the objects could be implemented as part of the operating system 122 where the operating system 122 is object-oriented, rather than procedural based.
  • Other methods of representing the configuration system in accordance with a preferred embodiment (as discussed herein) in the computer system 102 will be apparent to persons skilled in the relevant art.
  • the objects which implement the configuration system in accordance with a preferred embodiment are instances of a plurality of object-oriented classes which are collected to form an object-oriented hardware configuration framework.
  • This hardware configuration framework and the classes contained therein are discussed below.
  • the first term is "auto configuration.”
  • Auto configuration There are two types of auto configuration. The first type is really more auto identifying than it is auto configuring. Devices falling into this category can identify themselves to the system. The system then turns around and looks for the required software, which in some cases must be manually "installed” by the user (see manual configuration below).
  • the other form of auto configuration is self contained configuration. Devices falling into this category not only identify themselves, but can also provide their own configuration software and data. Auto configuration is "Bottom Up”. The system configures itself and it transfers information up to the top (the user).
  • Manual configuration requires the user to do something special (e.g. "install” a service or tell the computer where a device is connected). There are three cases of manual configuration.
  • the device is identifiable by the system, but the required device service(s) can not be found. The user must manually "install” the service(s). This device is "software impaired”.
  • the required services are available, but the device is not detectable or identifiable by the system (i.e. its icon appears in the parts bin, but the device itself does not appear in the computer viewer). In this case, the user must drag the device from the parts bin to where the device is connected in the computer viewer.
  • the required services are not available nor is the device detectable. This is a partial combination of the two cases above. First, the user must "install" the service(s). Then he can drag the device from the parts bin to where the device is connected in the computer viewer.
  • a hardware resource is deemed to be software impaired whenever the hardware resource is known to the system, but the system is unable to use it because the required software can not be found.
  • a THardwareModule can represent impaired hardware.
  • the hardware configuration system in accordance with a preferred embodiment supports a hardware configuration viewer, which is preferably implemented using object-oriented techniques (such as being instances of related classes that form a framework). The hardware configuration viewer is described below.
  • the hardware configuration viewer is a tool for displaying to a user a graphical representation of a computer's current hardware configuration.
  • the hardware configuration viewer operates by using the parts bin (discussed below).
  • a printer viewer allows a user to see the configuration of a printer. For example, the printer viewer displays the hard disk drive(s) as well as optional attachments to the printer like a sheet feeder. The user could see what fonts the printer has (on the disk drive).
  • a parts bin viewer presents to a user all the "potentially" connectable "dumb” devices (like the Apple Chooser, only the Chooser shows some of the currently connected devices as well).
  • the presentation by the parts bin viewer may include a window which has a tab for each device type. For example, tabs could be provided for printers and modems. The user selects a particular tab to see all the devices of a particular type.
  • the Computer Viewer shows the user what is connected, whereas the parts bin viewer shows the user what can be connected.
  • a device configuration viewer enables a user to configure a "real device"
  • Device configuration viewers are created by presentation objects.
  • An entity of the operating system may create a presentation object using information obtained from a device object. For example, a configuration viewer for a disk drive will be created to reformat, partition, test, mount and unmount volumes for a drive.
  • the object-oriented configuration system in accordance with a preferred embodiment is implemented as a collection of object-oriented objects which execute in the computer system 102. These objects are instances of a plurality of related object-oriented classes which are collected to form an object-oriented hardware configuration framework.
  • Figure 2 is a class diagram of this hardware configuration framework according to a preferred embodiment in accordance with a preferred embodiment. The classes which form the hardware configuration framework are discussed in the following sections.
  • THardwareConfiguration class 204 The primary purpose of the THardwareConfiguration class 204 is to support centralized user configuration of hardware. It does this by providing a set of hardware related database services.
  • THardwareConfiguration also called the computer hardware database
  • This database is the foundation of centralized user configuration of a personal computer.
  • Figure 3 depicts an example ComputerHardwareConfiguration.
  • THardwareConfiguration objects notification is sent to interested clients when any change is made to a hardware configuration (e.g. a hardware module is added or removed or a connection changed). Clients are only alerted that a change occurred and are not given any additional details about the change. Since changes to hardware configurations occur very infrequently, this minimal notification scheme is not expected to be a problem (e.g. noticeably increase interprocess communication, IPC, traffic).
  • THardwareModule object 206 The purpose of a THardwareModule object 206 is to represent, at a very low level, a device which will be displayed by the hardware configuration viewer (or parts bin) and which will be configured or used by a user.
  • THardwareModule objects 206 are used to represent computers, cards and peripherals. For example, each of the following would be represented by its own THardwareModule object: Apple Macintosh Ilci computer, Apple ADB keyboard, and Macintosh Video Card.
  • a THardwareModule object 206 represents a real device which a user may attempt to configure or use.
  • a THardwareModule object 206 represents a prototype for any number of real devices with identical characteristics (i.e. a part which can be added to the system).
  • a THardwareModule object 206 owns a set of ordered THardwarelnterface objects 212 (discussed below; THardwarelnterface objects 212 are also called connector objects, or simply connectors, herein). Each THardwarelnterface object 212 corresponds to a real physical connector on a real device.
  • the THardwareModule object 410 which represents the multi-function card 402 will own the THardwarelnterface objects 416, 414, and 412, respectively corresponding to the following devices: one edge connector 404, a video connector 406 and a SCSI connector 408.
  • Each THardwarelnterface object 206 corresponds to a THardwarelnterfaceldentifier object 224 (described below) and additionally corresponds to a connector object in a presentation object displayed by the computer viewer- One or more of the owned connectors is considered the default (see
  • FIG. 4 where the edge hardware object 416 is the default).
  • Default connectors represent special connectors which are chosen as potential connection targets during drag and drop of devices onto connectors. This is a short cut for generating connections. The alternative is to drop the icon into a hardware viewer and then manually wire it to the proper connector.
  • Example short cut method A user drags the video-SCSI card, illustrated above, out of the parts bin and onto an ISA slot connector in the computer viewer. The computer viewer chooses the edge connector (over the SCSI or video connector) because the developer has specified the edge connector as the default. Sometimes more than one default connector is required. For example, a printer could have both a serial port and a parallel port. If the user dragged this printer over to the serial port, the computer viewer would test both default connectors for compatibility. It would discover that the printer was compatible with the serial port. The user could continue to drag the printer over to a parallel port. The computer viewer would discover that the printer was also compatible with that.
  • Each THardwareModule object 206 has a personality-independent HardwareModuleSignature object 210 (discussed below) which identifies the class of physical hardware to which the THardwareModule object belongs to.
  • a THardwareModule object 206 which represents an Apple
  • ImageWriter II will have an instance of HardwareModuleSignature 210 whose value is "ApplelmageWriter-Q”.
  • Each THardwareModule object 206 has one or more HardwareModuleCategory objects 208 (discussed below).
  • Each category object 208 represents one particular kind of device that the THardwareModule object 206 is capable of representing.
  • a THardwareModule object 206 which represents a fax machine capable of being used as a modem, scanner, printer and fax, will have one instance of each of the following HardwareModuleCategorys
  • every THardwareModule object 206 in a hardware database is
  • THardwareConfiguration is "connected" to at least one other THardwareModule object 206.
  • this is not a requirement since a device may become completely disconnected for a variety of reasons. Disconnected devices in a THardwareConfiguration are still owned by the THardwareConfiguration object and are reachable by direct iteration.
  • a THardwareModule object has a number of attributes, including "root,” “internal,” and “wants persistence.” Root is a Boolean value. If true, then the
  • THardwareModule object 206 is the central device of a
  • Each THardwareConfiguration object 204 has one root device.
  • the THardwareModule object For a personal computer database, the THardwareModule object
  • Root which represents the computer is the root device. Root defaults to FALSE.
  • the root device is a special device used by the Hardware Configuration Viewer.
  • the root device When the Abstract or Schematic view by the hardware configuration viewer is displayed, the root device is "exploded" into a special area.
  • Wants persistence is a Boolean value. A module that is not persistent is implicitly removed from the configuration when the system reboots (its connections are implicitly removed as well). On the other hand, a persistent module stays in the configuration through reboots, until it is explicitly removed. Typically, all manually connected devices will want to be automatically restored by the HW configuration framework and SCSI disk drives will not. Defaults to FALSE.
  • HardwareModuleCategory 208 The purpose of HardwareModuleCategory 208 is to permit clients to group THardwareModule objects 206 by kind. An instance of
  • HardwareModuleCategory 208 may be owned by a THardwareModule object 206 or by a TPartLocator object 218 (discussed below). When owned by a
  • THardwareModule object 206 an instance of HardwareModuleCategory 208 represents a kind of device the module is capable of representing.
  • Each THardwareModule object 206 will have one HardwareModuleCategory object 208 for each kind of device it can represent.
  • HardwareModuleCategory 208 represents the common group of all THardwareModule objects 206 owned by the TPartLocator object 218.
  • Supported device categories include: Monitor, Printer, Keyboard, Pointing (mouse or tablet), Modem, Card, Disk drive, Scanner, FAX, etc.
  • HardwareModuleSignature 210 The purpose of HardwareModuleSignature 210 is to provide a mechanism which enables operating system (OS) personalities (e.g. OS/2) to create objects of their own to represent THardwareModule objects 206. This is required because THardwareModule objects 206 have no knowledge of what OS personalities reside above them.
  • An instance of HardwareModuleSignature 210 represents a personality independent "key" to a unique personality dependent entity. For example, a particular operating system could use this key to resurrect a presentation object, corresponding to the HardwareModule object 206, from a file. Or, it could translate the signature into a presentation class name and then create a new presentation object corresponding to the THardwareModule object 206.
  • An instance of THardwareConfiguration 204 can include many devices with equivalent HardwareModuleSignature objects 210.
  • a database could have two 80MB Apple disk drives.
  • Equivalent instances of HardwareModuleSignature 210 will exist, one for each THardwareModule object 206. These are not the same devices. They are two different THardwareModule objects 206 representing two different real devices of the same type.
  • THardwarelnterface 212 The purpose of THardwarelnterface 212 is to represent, at a very low level, a real connector on a real device. It can represent a connector on the computer, a card or a peripheral. For example, each of the following would be represented by its own THardwarelnterface object 212: SCSI connector on a Macintosh ⁇ fx, video connector on a Macintosh video card or a serial connector on a StyleWriter. THardwarelnterface objects 212 are owned by THardwareModule objects 206.
  • Each THardwarelnterface object 212 has one or more HardwarelnterfaceCategory objects 214 (described below).
  • Each category object 214 represents one particular kind of interface that the THardwarelnterface object 212 is capable of representing.
  • a THardwarelnterface object 212 which represents a serial port will have one instance of each of the following HardwarelnterfaceCategory objects 214: "serial".
  • THardwarelnterface 212 will have one THardwareConnection object 216 (discussed below) for each THardwarelnterface object 212 to which it is connected.
  • THardwareConnection object 216 discussed below
  • a SCSI connector on the computer can be connected to a SCSI disk drive and a SCSI printer.
  • the SCSI connector on the computer would have two THardwareConnection objects 216.
  • the SCSI disk drive and the SCSI printer would each have one.
  • THardwarelnterface 212 will have one THardwarelnterf aceldentifier object 224 (discussed below) which serves as a unique key into the database.
  • Some THardwarelnterfaces 212 will represent an actual "interface port” (e.g. the SCSI port on a computer or the video port on a video card). These THardwarelnterfaces 212 can be used to start service stacks.
  • Clients can request THardwarelnterface objects 212 to refresh.
  • a client e.g. the computer viewer
  • a side effect of allowing a THardwareModule object 206 to have more than one THardwarelnterface object 212 is that a connection may indirectly "loop" back to a device. If a client were attempting to traverse all of the connections of a device, he would need to be aware of potential loops.
  • a THardwarelnterface object 212 has the following attributes:
  • a THardwarelnterface object 212 may support one or more connections. This attribute specifies the maximum number of legal connections a THardwarelnterface object 212 may have. Defaults to 1.
  • Mode Possible values are In/Out/InOut. This specifies the transmission mode.
  • a THardwarelnterface object 212 can be an input, an output or both. Defaults to InOut. • Reconfigurable: This is a boolean value. If true, then the hardware can support refresh (i.e. it can probe to see if anything has changed). It does not mean that a service is available to actually perform the rescan. Defaults to FALSE.
  • This attribute is only used as an optimization. Before a client attempts to refresh a port, it can first check to see if the hardware can support it. This same information can be determined by activating the THardwarelnterfaceReference 222 for the port. However, most hardware will not support reconfiguration and using property searches is slow.
  • a connector which wants persistent connections implies that its device also wants persistence. If they do not agree, then an exception is generated.
  • HardwarelnterfaceCategory 214 The purpose of HardwarelnterfaceCategory 214 is to permit clients to group THardwarelnterface 212 objects by kind. For example, a client may want to find and group all of the serial ports for a given hardware configuration. An instance of HardwarelnterfaceCategory 214 represents a kind of interface a connector is capable of representing. Each THardwarelnterface object 212 will have one HardwarelnterfaceCategory object 214 for each kind of interface it can represent.
  • the interface categories include: Serial, Parallel, Video, MIDI, ADB, SCSI and Slot.
  • THardwareConnection object 216 The purpose of a THardwareConnection object 216 is to support distinct presentations for connections based on their state. An instance of THardwareConnection 216 represents a connection between two THardwarelnterface objects 212.
  • a hardware connection object 216 has the following attributes: • Kind: A connection may be automatic or manual. An automatic connection is made by the system. A manual connection is made by the user. It is important to be able to distinguish between these two types of connections. A user should not modify automatic connections. Hence, these connections are presented in such a way as to prevent users from changing them. Defaults to Automatic.
  • a connection object 216 can be created if (1) the maximum number of connections is not exceeded on either one of the THardwarelnterface objects 212; (2) the "stack" of services between the two THardwarelnterface objects 212 is createable (or created). This means that the appropriate services must be installed before a user is allowed to connect a new device in his computer viewer; and (3) the modes of the two THardwarelnterface objects 212 are valid (using the table below):
  • TPartLocator 218 The purpose of TPartLocator 218 is to find all of the "installed" THardwareModule "prototypes" for a specific PartsBin category.
  • an instance of TPartLocator 218 represents the set of devices to be displayed by a PartsBin viewer, for a particular tab.
  • Each TPartLocator object 218 has a BinCategory.
  • a TPartLocator object 218 refers to a set of Parts (i.e. THardwareModules 206). Each part represents a device which the computer system is capable of supporting. For example, a printer TPartLocator object will own one prototype THardwareModule object for each type of printer found.
  • a TPartLocator object 218 has the following additional behaviors:
  • TPartLocator 218 have unique HardwareModuleSignature objects 210.
  • TPartsBin 220 The purpose of TPartsBin 220 is to organize the plethora of manually configurable devices into meaningful sets of related devices. For example, instead of presenting the user with the complete list of every device which his system is capable of supporting, the Parts bin 220 organizes this set of devices into several lists, each list based on a device category.
  • a TPartsBin object 220 owns a set of Bin TPartLocator objects 218. Each bin represents a compartment and corresponds to exactly one tab on the parts bin viewer.
  • the PartsBin viewer displays the contents of TPartLocator objects 218. As new "parts" are introduced into the system (i.e. installed), the appropriate TPartLocator objects 218 are updated. Furthermore, as new categories of "parts" are introduced, new TPartLocator objects 218 are created by the TPartsBin object 220 and new tabs are automatically displayed. User customizable locators are not excluded.
  • the parts bin presents to the user all of the "potentially" connectable "dumb” devices (like the Apple Chooser, except the Chooser shows a few of the currently connected devices as well).
  • the presentation consists of a window which has a tab for each device type. For example, tabs will be provided for printers and modems. The user selects a particular tab to see all the devices of a particular type. The user may drag a device out of the parts bin and to the computer viewer to connect it.
  • the parts bin replaces that part of the Apple Chooser or similar entity where a user would select a printer and then click on the port the printer is connected to. It also replaces that part of MacTerminal or similar application where the user would select the port the modem is connected to.
  • a TPartsBin object 220 has the following additional behaviors:
  • An icon may belong to more than one parts bin category and hence may appear in more than one compartment of a parts bin.
  • THardwarelnterfaceReference 222 The purpose of THardwarelnterfaceReference 222 is to shield clients from the details of how a service for a local device is created. It encapsulates the details necessary to create the service (for example, what port the device is connected to)- It uses this information along with other information to build the appropriate service stack. The interface returned, as a result of creating the stack, is a strongly-typed interface to the desired service. This "top" interface is specified directly by the client.
  • An instance of an active THardwarelnterfaceReference object represents access to a service provided by a real local device.
  • THardwarelnterfaceldentifier 224 The purpose of THardwarelnterfaceldentifier 224 is to uniquely identify a real physical hardware component.
  • THardwarelnterfaceldentifier objects 224 are used by services and configuration access managers (CAMs) to get the physical information they require to actually drive the hardware (for example, a service may require the physical address of the chip, IRQ, byte-lane information, etc.).
  • THardwarelnterfaceldentifier objects 224 are strongly typed so the service will know exactly what information is available and how to get it.
  • the THardwarelnterfaceldentifier object shown in Figure 6, is for a serial THardwarelnterface object which is owned by a computer
  • the THardwarelnterfaceldentifier object could be used by a service to get the physical I/O address of the SCC chip it represents.
  • a Configuration Access Manager is an input/output system entity responsible for the initialization of system hardware resources. It is subclassed for each type of hardware resource. For auto-config devices, subclasses are responsible for finding live devices and starting their associated CAM's.
  • a CAM may or may not automatically create and initiate an Access Manager (AM) for a device. For example, a SCSI CAM may create and initiate an AM for a SCSI HD but not for a SCSI printer. AM's for printers are really not required until the printer is used.
  • An Access Manager is an IO service which can talk directly to a chip.
  • the AM handles arbitration between multiple requests to access the chip.
  • This scenario relates to the manual connection of a device.
  • a user adds a new ISA serial card to his system and successfully boots.
  • the ISA probe fails to find the card, so the card can not be used.
  • the card is not displayed in the computer viewer. Its absence in the computer viewer is a hint to the user that the system does not see it.
  • the user must teach his system about this new hardware module. He does this by using the computer viewer as supported by the hardware configuration system as shown in the following steps.
  • Figure 7A is a partial illustration of the initial state of the computer hardware configuration and the parts bin.
  • the computer hardware configuration is shown with one computer module which has an empty ISA slot.
  • the parts bin has the ISA card we want to update the system with.
  • connection must be connected.
  • the command connects the two connectors together by creating a THardwareConnection.
  • the final step is to call the Add method, on the connection, to consummate the connection.
  • the ComputerHardwareConfiguration now has a copy of the ISA card and is connected to the ISA slot. This is depicted in Figure 7D.
  • any change to the hardware configuration results in a notification event, which is sent to all interested clients.
  • the ISA configuration database is interested in manually connected ISA cards and receives notification. This is depicted in Figure 7E.
  • the new ISA card can be used as soon as the ISA database learns about it.
  • the ISA card CAM requires additional information (e.g. physical address, IRQ and/or DMA information), it may still be unavailable for use. The user may be required to supply this information to the card CAM. If so, then the ISA card icon should reflect the state (via a "software impaired" device icon or similar).
  • a user alert may be generated to notify the user of this problem.
  • the hardware configuration framework in accordance with a preferred embodiment provides all clients with persistent handles for the following: THardwareConfiguration 204, THardwareModule 206, THardwarelnterface 212 and THardwareConnection 216.
  • Authentic and Dangling Handles can be in one of two states, Authentic or Dangling.
  • An authentic handle is a handle which refers to a master in the database. One gets an authentic handle by adding a master to the database, or by copying another authentic handle.
  • a dangling handle is a handle which no longer refers to a master in the database. Dangling handles can be copied, but clients may not use dangling handles to actually read or write the master.
  • Handle Transition A handle transitions from the authentic to dangling state if either of the following events occur. (1) Unbeknownst to one handle, the master is explicitly removed from the database by another handle. Or (2) the master is implicitly removed from the database as a result of reboot (because the master has been marked as non-persistent). A handle transitions from the dangling to authentic state when a new master is added to the database that is "equivalent" to the (old) master that was referred to by the handle when it was in the authentic state. Equivalence is defined below.
  • THardwareConfiguration master per hardware configuration is implicitly marked persistent. THardwareConfiguration masters only go away when the database is destroyed. Handles referencing destroyed databases will dangle forever. Two configuration masters are never considered “equivalent", for the purposes of this section. A pair of THardwareModule masters are considered “equivalent” if (1) they have identical values for the Type attribute (THardwareModuleSignature), and (2) there is a one-to-one mapping between equivalent THardwarelnterface objects of the two module masters.
  • a pair of THardwareConnection masters are considered “equivalent” if the endpoints are themselves equivalent.
  • a handle is not multi-thread safe, except as follows: A method that operates on a master in a configuration database (as opposed to a reference counted master) is atomic with respect to other operations on the same master. In implementation terms, a handle does not have an internal monitor. A reference counted master also has no internal monitor. But, for a master in the configuration database, there is synchronization to ensure that at most one operation is being applied to a master at a time.
  • THardwareConfigurationHandle 204 may be saved to a file and restored at anytime. The handle will continue to be valid until the Destroy method is called.
  • the THardwareConfiguration class 204 includes the following functions.
  • THardwareConfigurationHandle (const TText& name) Constructs a Handle to a master THardwareConfiguration object which is constructed using the persistent hardware configuration specified by the name argument. Many different THardwareConfigurations can exist concurrently, and this name is used to uniquely identify them. The name space is managed by attaching the manufacture's name to the beginning of the name argument. If a persistent hardware configuration is not wanted, then passing in an empty name (i.e. "”), will create a non-persistent, reference-counted hardware configuration.
  • the persistent hardware configuration contains all of the THardwareModule and THardwareConnection objects which requested persistence.
  • THardwareConf igurationHandle& operator (const THardwareConfiguration Handle& copyFrom) Copies the handle, not the master.
  • This method destroys the persistent store and all master objects in this hardware configuration. All handles to every object in this hardware configuration become dangling, including this one.
  • This method copies all of the handles which have been registered for this hardware configuration and adds them to the collection specified by the result argument. It does not empty the result first.
  • the copied handles reflect the state of the master THardwareConfiguration object at the time this method was called.
  • the state of the master THardwareConfiguration object can change at any time and will not be reflected by the result directly. Changes will be reflected by the handles in the result. For example, any handle whose master has been removed from its THardwareConfiguration object becomes a dangling handle.
  • the only methods that may be applied to a handle in the dangling state are assignment, copy or streaming operators.
  • a dangling handle becomes authentic when it is the target of assignment or streaming where the source is not dangling.
  • the copied handles reflect the state of the master THardwareConfiguration object at the time this method was called.
  • AddHardwareModule (THardwareModuleHandle& newHardwareModule) This method adds the given newHardwareModule object to this hardware configuration. It does this by moving the master THardwareModule object referred to by newHardwareModule, and any THardwarelnterfaceHandle objects owned by newHardwareModule, into the hardware configuration. If the client owns handles to any THardwarelnterfaceHandle objects owned by newHardwareModule, they will be updated to reflect the move into the database.
  • This method removes all THardwareConnection objects for each THardwarelnterface object owned by the master referred to by hardwareModule.
  • the master is removed from the hardware configuration; the master becomes reference counted by this handle. All other handles that refer to the master become dangling.
  • This method creates an interest in any change to the hardware configuration (which includes any change to any member of the hardware configuration); client adopts result storage. Notification is sent, by this
  • THardwareConfiguration object to all interested clients. Clients may call this method directly to create an interest which is used to register for notification.
  • a THardwareModuleHandle may be saved to a file and restored at anytime. The handle will continue to be valid until the master is removed (via a RemoveHardwareModule method).
  • the THardwareModule class 206 includes the following functions. THardwareModuleHandleO
  • THardwareModuleHandle (const THardwareModuleHandle& copyFrom) Copies the handle, not the master.
  • the new handle becomes a reference to the master referenced by copyFrom.
  • THardwareModuleHandle& operator (const THardwareModuleHandlefe copyFrom) Copies the handle, not the master. If the left-hand side is the last reference to a master not in any hardware configuration, then the master is destroyed. The left-hand side handle then becomes a reference to the master referenced by copyFrom.
  • This method copies all of the handles of THardwarelnterface objects owned by this THardwareModule and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
  • the connectors are added to the result in the same order they were added to the module (i.e. the first connector added will be the first connector returned from the TSequence iterator).
  • the copied handles reflect the state of the master THardwareModule object at the time this method was called.
  • the state of the master THardwareModule object can change at any time and will not be reflected by the result directly. Changes will be reflected by the handles in the result.
  • This method may be called directly by clients at any time.
  • the hardware viewer framework will call this method to map the connector objects in a hardware module with the connector icons to be displayed.
  • the copied handles reflect the state of the master THardwareModule object at the time this method was called. This method may be called directly by clients at any time.
  • This method moves the master THardwarelnterface object referred to by newConnector into the THardwareModule master. If the isDefault argument is true, then the newConnector is recorded as a default connector.
  • This method is typically called when manually constructing a THardwareModule object from scratch.
  • This method removes all connections associated with the given connector.
  • the master specified by the connector argument, is removed from the hardware configuration; the master becomes reference counted by this handle. All other handles that refer to the master become dangling.
  • This personality neutral entity can be used to create a personality dependent object (e.g. a presentation object). This method may be called directly by clients at any time. Typically, the computer viewer will call this method when constructing the presentation object for this hardware module for the first time.
  • This method copies all of the HardwareCategory objects owned by this THardwareModule and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
  • the iterator reflects the state of the master THardwareModule object at the time this method was called. This method may be called directly by clients at any time.
  • this THardwareModule object is the central device of its THardwareConfiguration.
  • Each THardwareConfiguration object has one root device.
  • the THardwareModule object which represents the computer is the root.
  • this THardwareModule object is located inside of the root THardwareModule. This method is called by the configuration viewer to determine if it should draw the device inside or outside of the root device.
  • the internal HD of a Macintosh is "inside" the computer.
  • this THardwareModule object wants the hardware configuration framework to automatically restore the device when the master THardwareConfiguration object is restored.
  • This method is typically called by the hardware configuration framework (that is, by objects of the hardware configuration framework).
  • this method streams out a persistent reference. Otherwise, this method streams out a copy of the master, including its connectors but not their connections.
  • this method streams in a persistent reference. Otherwise, this method streams in a master, including its connectors.
  • THardwarelnterface A THardwarelnterfaceHandle may be saved to a file and restored at anytime. The handle will remain valid until the master is removed.
  • the THardwarelnterface class 212 includes the following functions.
  • THardwarelnterfaceHandle Creates a reference counted master not in any hardware configuration.
  • THardwareInterfaceHandle (const THardwareInterfaceHandle& copyFrom) Copies the handle, not the master.
  • the new handle becomes a reference to the master referenced by copyFrom.
  • This method copies all of the THardwareConnectionHandle objects associated with this THardwarelnterface and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
  • the copied handles reflect the state of the master THardwarelnterface object at the time this method was called. This method is typically called by the hardware configuration viewer.
  • This method deletes the THardwareConnection object, specified by this object and the otherEnd. from this hardware configuration. All handles that refer to the master THardwareConnection object become dangling.
  • This method deletes all of the THardwareConnections from this THardwarelnterface object. All handles that refer to the master THardwareConnection objects deleted become dangling. This method is typically called by the hardware configuration viewer framework.
  • THardwarelnterfaceldentifier* CopyHardwarelnterfaceldentifierO const Returns a pointer to the object which identifies the real physical hardware component this connector represents. Caller adopts returned storage.
  • the connector represents a bus (e.g. SCSI,
  • ADB This method is typically called by the hardware configuration viewer during connection negotiations.
  • This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
  • ETransmissionMode GetModeO const Returns the transmission mode supported by this connector. This method is typically called by the hardware configuration viewer during connection negotiations.
  • This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
  • Boolean WantsPersistentConnectionsO const Returns TRUE if this THardwarelnterface object wants the hardware configuration framework to automatically restore its connections when the master THardwareConfiguration object is restored. A connection will be restored if either connector forming the connection makes this request. void SetWantsPersistentConnections(Boolean)
  • This method copies all of the HardwareCategory objects owned by this THardwarelnterface and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
  • the iterator reflects the state of the master THardwarelnterface object at the time this method was called. This method may be called directly by clients at any time.
  • AddCategory (const Hardwarelnterf aceCategory& category) Appends the category argument to the end of the list of categories for this hardware interface. This method is called when manually constructing a THardwarelnterface object from scratch and will rarely be called by clients directly.
  • this method streams out a persistent reference. Otherwise, this method streams out a copy of the master.
  • this method streams in a persistent reference. Otherwise, this method streams in a master.
  • a THardwareConnectionHandle may be saved to a file and restored at anytime. The handle will remain valid until the master is removed.
  • the THardwareConnection class 216 includes the following functions.
  • THardwareConnectionHandle (const THardwareConnectionHandle& copy From) Copies the handle, not the master.
  • the new handle becomes a reference to the master referenced by copyFrom.
  • THardwareConnectionHandle& operator (const THardwareConnection Handle& copyFrom) Copies the handle, not the master. If the left-hand side is the last reference to a master not in any hardware configuration, then the master is destroyed. The left-hand side handle then becomes a reference to the master referenced by copyFrom.
  • a connection may be automatic or manual. An automatic connection is made by the system. A manual connection is made by the user. It is important to be able to distinguish between these two kinds of connections. This method is typically called by the hardware configuration framework.
  • this method streams in a persistent reference. Otherwise, this method streams in a master.
  • TPartLocator A TPartLocator object may not be saved.
  • the TPartLocator class 218 includes the following member functions.
  • TPartsBin Creates a part locator capable of finding all of the hardware module prototypes (i.e. parts) specified by theCompartment.
  • the only expected client of this constructor is TPartsBin.
  • TPartsBin will create one of these locators for every compartment (i.e. tray, bin, tab, etc.) the parts bin will have.
  • This method finds all the FSEntities which identify themselves as parts that want to be in this compartment. It resurrects all of the THardwareModuleHandle objects from the located files and adds them to the given collection specified by theResult: caller adopts the storage. It does not empty theResult first. It returns TRUE if it found anything. The parts bin will call this when it needs to display (or prepare to display) the contents of a particular compartment.
  • This method returns the THardwareModuleHandle "installed" for this compartment whose HardwareModuleSignature matches theName.
  • TInterest* CreateAddedlnterestO This method creates an interest for clients to use to register for notification on the addition of any part which belongs to this compartment; client adopts result storage.
  • the only expected client of this method is TPartsBin. TPartBin will call this method just before it calls FindAll, so it can ensure an up-to-date display of the available parts.
  • TPartsBin This method creates an interest for clients to use to register for notification on the removal of any part which belongs to this compartment; client adopts result storage.
  • the only expected client of this method is TPartsBin. TPartsBin will call this method just before it calls FindAll, so it can ensure an up-to-date display of the available parts.
  • a TPartsBin object may not be saved.
  • the TPartsBin class 220 includes the following member functions.
  • TPartsBinO Constructs an empty parts bin.
  • This method copies all of the TPartLocator objects in this parts bin and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
  • the contents of the parts bin object can change at any time, but this will not be directly reflected by the iterator.
  • This method may be called directly by clients at any time.
  • the only expected client of this method is the parts bin viewer. It will display an icon (and name) for every part locator it owns. Each part locator represents a tab on the parts bin. Furthermore, when a tab is selected by the user, the parts bin viewer will display all of the parts for that compartment.
  • TPartLocator GetPartLocator(const HardwareModuleCategory& desired Compartment) const Returns the TPartLocator object for the desiredCompartment in this parts bin. This method may be called directly by clients at any time.
  • This method creates a TPartLocator object for the kind of compartment specified by the compartment argument for this parts bin.
  • This method may be called directly by clients at any time.
  • the only expected client of this method is a parts bin viewer.
  • a parts bin viewer can decide which categories it wants to display.
  • This method removes the TPartLocator object for the kind of compartment specified by the compartment argument for this parts bin.
  • the only expected client of this method is the parts bin viewer.
  • This method creates an interest for clients to use to register for notification on the addition of any new part locator.
  • the only expected client of this method is a parts bin viewer.
  • the parts bin viewer will call this method just before it calls GetAllPartLocators, so it can ensure an up-to-date display of the available compartments.
  • This method creates an interest for clients to use to register for notification on the removal of an existing part locator.
  • the only expected client of this method is a parts bin viewer.
  • the parts bin viewer will call this method just before it calls GetAllPartLocators, so it can ensure an up-to-date display of the available compartments.

Abstract

An object-oriented hardware configuration system for enabling centralized user configuration of hardware in a computer system includes a plurality of object-oriented hardware interface objects each representing a hardware device physical connector, and a plurality of object-oriented hardware module objects. Each of the hardware module objects represents a hardware device that is user-configurable. Each of the hardware module objects includes one or more hardware interface objects associated with the hardware device such that connectors of the hardware device are defined. An object-oriented hardware configuration object is provided, wherein the hardware configuration object includes a plurality of hardware module objects that represent hardware devices connected to a particular computer system. The hardware configuration object defines a hardware configuration of the particular computer system. A user may access the hardware configuration object to configure the hardware devices connected to the particular computer system.

Description

OBJECT-ORIENTED SYSTEM AND METHOD FOR HARDWARE CONFIGURATION
BACKGROUND OF THE INVEΛNΗON Field of the Invention
The present invention is generally directed to configuring hardware in a computer system, and more particularly to an object-oriented system and method for configuring hardware in a computer system.
Related Art
The phrase "hardware configuration" has many meanings. In the user domain of a computer system, hardware configuration refers to configuring computer components which are generally visible to users (this is called user- oriented hardware configuration). This includes tasks such as setting the double-click speed of a mouse, formatting a disk drive, connecting a modem to a serial port, or changing an existing connection.
In the input/output (I/O) domain of a computer system, hardware configuration refers to low-level services which control or regulate access to integrated circuits (ICs) and other low-level hardware resources (this is called I/O hardware configuration).
The present invention is primarily directed to user-oriented hardware configuration, but can be applied to other types of hardware configuration, such as I/O hardware configuration.
Conventional computer systems distribute hardware configuration tasks among many different applications. For example, on the well-known Apple Macintosh computer, the Chooser application must be used to connect a StyleWriter printer to a modem port. To connect a modem to the modem port, a communication application (e.g. MacTerminal) must be used. To set up an Apple SCSI drive, the "Apple HD SC Setup" application must be used. To set the double-click speed of the mouse, the mouse control panel in the control panels folder must be used. As will be appreciated, it is difficult for users to keep track of where these configuration applications are maintained. Also, it is difficult for users to remember which configuration applications are required for the configuration of particular resources. Users must inform the computer of the location of some devices (that is, tell the computer how and where the devices are connected to the computer). These devices are called manually connected devices or manually configured devices, and require special attention with regard to hardware configuration. When a manually connected device is attached to a computer, the computer cannot sense its presence. As an aspect of hardware configuration, some entity in the computer must be told (by a user) what kind of device it is and where it is connected. On the well-known Apple Macintosh System 7, the entity that is told depends on the type of the device in question. For example, the "Comm Toolbox" is used for modems and the Chooser is used for printers. Furthermore, the Comm Toolbox is port centric, not device centric (that is, the information saved by a document is about a port, not a device). If a user moves his modem to a different port, all of the terminal documents using that modem will not properly transmit when asked to do so, because they will expect the modem to be connected to the original port.
Thus, what is required is a system and method for hardware configuration that does not suffer from the problems discussed above.
Summary of the Invention The present invention is directed to an object-oriented hardware configuration system for enabling centralized user configuration of hardware in a computer system. The hardware configuration system includes a plurality of object-oriented hardware interface objects each representing a hardware device physical connector, and a plurality of object-oriented hardware module objects. Each of the hardware module objects represents a hardware device that is user-configurable. Each of the hardware module objects includes one or more hardware interface objects associated with the hardware device such that connectors of the hardware device are defined.
An object-oriented hardware configuration object is provided, wherein the hardware configuration object includes a plurality of hardware module objects that represent hardware devices connected to a particular computer system. The hardware configuration object defines a hardware configuration of the particular computer system. A user may access the hardware configuration object to configure the hardware devices connected to the particular computer system.
The configuration system of the present invention supports centralized user configuration of hardware. Centralizing hardware configuration releases users from the burden of having to remember all of the different places hardware configuration tools can be located. For example, a computer viewer (discussed below), which is supported by the configuration system, is used to connect manually configured devices to the system. It provides access to configuration utilities (for example, tools to format disk drives, change a monitor's bit-depth, etc.) for all local devices. It may also be used for choosing or directly using local services (e.g. local printers and modems).
In the area of manually connected devices, the hardware configuration system offers special benefits. First, the system is used whenever a new device is added. This gives the system the option of automatically allocating the device if it so desires. Second, the system is empowered by the hardware configuration system to keep track of a device, even if it has moved to a different port. The user is not required to update all documents which use the affected device. Finally, a parts bin is supported, which collects all of the appropriate "installed" hardware resources the system is currently capable of supporting. The parts bin enables a user to find and connect a new device quickly using a hardware configuration viewer (e.g. the computer viewer). The parts bin is used for all manually connected devices. The hardware configuration system offers a number of innovative features.
For example, the hardware configuration system manages a database of devices and their connections. The Hardware Configuration system records the existence, physical characteristics and connections of devices associated with a real hardware system. It allows clients to change connections and characteristics of these devices. For example, a personal computer consists of a computer and its peripherals. The existence and physical characteristics of the computer and its peripherals are recorded by a hardware database and users may change connections and add new or remove existing devices. The Hardware configuration system supports complex hardware systems which include switch boxes, multi-function cards, multi-slot cards, connections to more than one network (e.g. multiple network cards), multi-slot-type computers and expansion buses.
The hardware configuration system supports refresh of configuration database. A service is provided which enables clients to manually make the database current.
The hardware configuration system provides persistence for devices and their connections. When a device object is registered with the Hardware configuration system, the device object and its connection(s) can be saved. When restarted, all of these saved device objects will be automatically
"restored" by the Hardware configuration system. The restored device objects behave the same as they did before the restart. The hardware configuration system assists THardwarelnterfaceReferences in supporting device associations. Sufficient information is recorded to allow a THardwarelnterfaceReference object to automatically create a service for any connected device (manual or auto). The reference object remains valid even after the device's connection in the computer viewer has changed.
The hardware configuration system provides notification. Notification is provided to any interested client when the state of an interesting hardware database changes (e.g. a device is added, removed, or connection changes). There is only one TInterest provided and that is: "something changed". Consequently, clients are only alerted that a change occurred and are not automatically given any additional details about the change.
The hardware configuration system Supports a Hardware Configuration Viewer Framework. Clients can create their own hardware databases which can be built using the hardware configuration system of the present invention and displayed by the hardware configuration viewer framework. For example, a LaserWriter NTX configuration viewer can be created which would allow a user to see the hardware configuration of a remote LaserWriter (including its disk drives, connections, etc.). The hardware configuration system supports creation of device configuration viewers. Device configuration viewers enable a user to configure the "real device". Device configuration viewers are created by presentation objects. An entity of the operating system may create a presentation object using information obtained from a device object. For example, a configuration viewer for a disk drive will be created to reformat, partition, test, mount and unmount volumes for a drive.
Further features and advantages of the present invention, as well as the structure and operation of various embodiments of the present invention, are described in detail below with reference to the accompanying drawings.
Brief Description of the Drawings Figure 1 is a block diagram of a computer system in which the hardware configuration system in accordance with a preferred embodiment operates; Figure 2 is a class diagram of a hardware configuration framework according to a preferred embodiment in accordance with a preferred embodiment;
Figure 3 is a diagram used to illustrate the operation of a THardwareConfiguration object in accordance with a preferred embodiment; Figure 4 is a diagram used to illustrate the operation of a THardwareModule object in accordance with a preferred embodiment;
Figure 5 is a diagram used to illustrate the operation of a THardwarelnterface object in accordance with a preferred embodiment; Figure 6 is a diagram used to illustrate the operation of a
THardwarelnterfaceldentifier object in accordance with a preferred embodiment; and
Figures 7A-7E are diagrams used to illustrate the manner in which a preferred embodiment operates during an example hardware configuration scenario.
Detailed Discussion of the Preferred Embodiments The present invention is directed to an object-oriented system and method for configuring the hardware of a computer system. Since it is object- based, the present invention will be described herein using object-oriented terms and concepts. Such object-oriented terms and concepts are well known, and are discussed in many publicly available documents, such as Object- Oriented Design by Grady Booch (Benjamin Cummings 1991).
Figure 1 illustrates a high-level block diagram of a computer system 102 in which the object-oriented configuration system in accordance with a preferred embodiment operates. It should be noted that the present invention alternatively encompasses the configuration system in combination with the computer system 102.
The computer system 102 includes hardware components 104, such as a random access memory (RAM) 108 and a central processing unit (CPU) 106. It should be noted that the CPU 106 may represent a single processor or multiple processors operating in parallel. The computer system 102 also includes peripheral devices which are connected to the hardware components 104. These peripheral devices include an input device or devices (such as a keyboard, a mouse, a light pen, etc.) 110, a data storage device 112 (such as a hard disk or floppy disk), a display 114, a printer 116, and a network adapter 118. The computer system 102 could be connected to other peripheral devices.
The computer system 102 also includes an operating system 122, and may include microinstruction code 120 (also called firmware). The operating system 122 may represent a substantially full-function operating system, such as the Disk Operating System (DOS) and the UNIX operating system. The operating system 122 may alternatively represent other types of operating systems. Preferably, the operating system 122 represents a limited functionality operating system, such as the Mach micro-kernel developed by IBM, which is well-known to those skilled in the relevant art.
In a preferred embodiment in accordance with a preferred embodiment, the computer system 102 is an International Business Machines (IBM) computer or an IBM-compatible computer. In an alternate embodiment in accordance with a preferred embodiment, the computer system 102 is an Apple computer.
One or more programs 124 operate in parallel in the computer system 102.
Preferably, the object-oriented configuration system in accordance with a preferred embodiment is implemented as a collection of object-oriented objects which execute in the computer system 102. These objects are represented by one or more of the programs 124 which execute in the computer system 102.
Alternatively, the objects could be implemented as part of the operating system 122 where the operating system 122 is object-oriented, rather than procedural based. Other methods of representing the configuration system in accordance with a preferred embodiment (as discussed herein) in the computer system 102 will be apparent to persons skilled in the relevant art.
The objects which implement the configuration system in accordance with a preferred embodiment are instances of a plurality of object-oriented classes which are collected to form an object-oriented hardware configuration framework. This hardware configuration framework and the classes contained therein are discussed below.
Before discussing the present invention in detail, it will be useful to define a few terms which are important for the understanding in accordance with a preferred embodiment. The first term is "auto configuration." There are two types of auto configuration. The first type is really more auto identifying than it is auto configuring. Devices falling into this category can identify themselves to the system. The system then turns around and looks for the required software, which in some cases must be manually "installed" by the user (see manual configuration below). The other form of auto configuration is self contained configuration. Devices falling into this category not only identify themselves, but can also provide their own configuration software and data. Auto configuration is "Bottom Up". The system configures itself and it transfers information up to the top (the user).
The second term is "manual configuration." Manual configuration requires the user to do something special (e.g. "install" a service or tell the computer where a device is connected). There are three cases of manual configuration.
According to the first case, the device is identifiable by the system, but the required device service(s) can not be found. The user must manually "install" the service(s). This device is "software impaired". According to the second case, the required services are available, but the device is not detectable or identifiable by the system (i.e. its icon appears in the parts bin, but the device itself does not appear in the computer viewer). In this case, the user must drag the device from the parts bin to where the device is connected in the computer viewer. In the third case, the required services are not available nor is the device detectable. This is a partial combination of the two cases above. First, the user must "install" the service(s). Then he can drag the device from the parts bin to where the device is connected in the computer viewer.
Manual configuration is "Top Down". The user supplies configuration information via some User Interface and this information percolates down to the bottom (the I/O system).
The next term is "software impaired hardware." A hardware resource is deemed to be software impaired whenever the hardware resource is known to the system, but the system is unable to use it because the required software can not be found. A THardwareModule can represent impaired hardware. A
THardwareModule may not become partially impaired. All software necessary to initialize a card must be available at the time the card THardwareModule is registered. Software impaired hardware is discovered on refresh or at boot time. The hardware configuration system in accordance with a preferred embodiment supports a hardware configuration viewer, which is preferably implemented using object-oriented techniques (such as being instances of related classes that form a framework). The hardware configuration viewer is described below.
The hardware configuration viewer is a tool for displaying to a user a graphical representation of a computer's current hardware configuration. The hardware configuration viewer operates by using the parts bin (discussed below). There are many types of hardware configuration viewers. For example, a computer viewer displays a graphical representation of the current configuration of an entire computer system.
A printer viewer allows a user to see the configuration of a printer. For example, the printer viewer displays the hard disk drive(s) as well as optional attachments to the printer like a sheet feeder. The user could see what fonts the printer has (on the disk drive).
A parts bin viewer presents to a user all the "potentially" connectable "dumb" devices (like the Apple Chooser, only the Chooser shows some of the currently connected devices as well). The presentation by the parts bin viewer may include a window which has a tab for each device type. For example, tabs could be provided for printers and modems. The user selects a particular tab to see all the devices of a particular type. Thus, the Computer Viewer shows the user what is connected, whereas the parts bin viewer shows the user what can be connected. A device configuration viewer enables a user to configure a "real device"
(that is, a physical device). Device configuration viewers are created by presentation objects. An entity of the operating system may create a presentation object using information obtained from a device object. For example, a configuration viewer for a disk drive will be created to reformat, partition, test, mount and unmount volumes for a drive.
Architecture of the Hardware Configuration System
As discussed above, the object-oriented configuration system in accordance with a preferred embodiment is implemented as a collection of object-oriented objects which execute in the computer system 102. These objects are instances of a plurality of related object-oriented classes which are collected to form an object-oriented hardware configuration framework. Figure 2 is a class diagram of this hardware configuration framework according to a preferred embodiment in accordance with a preferred embodiment. The classes which form the hardware configuration framework are discussed in the following sections.
THardwareConfiguration
The primary purpose of the THardwareConfiguration class 204 is to support centralized user configuration of hardware. It does this by providing a set of hardware related database services. THardwareConfiguration 204 owns a collection of THardwareModule objects. Clients may add new or remove existing THardwareModule objects from an instance of THardwareConfiguration. Clients may directly retrieve from an instance of THardwareConfiguration, every THardwareModule object or specific kind(s) of THardwareModule objects (e.g. kind=printer, kinds=scanner & modem).
Clients have access to a special THardwareConfiguration object, known as the ComputerHardwareConfiguration (also called the computer hardware database), which represents a personal computer's local hardware configuration. It includes devices such as the computer, mouse, keyboard and monitor. This database is the foundation of centralized user configuration of a personal computer. Figure 3 depicts an example ComputerHardwareConfiguration. With THardwareConfiguration objects, notification is sent to interested clients when any change is made to a hardware configuration (e.g. a hardware module is added or removed or a connection changed). Clients are only alerted that a change occurred and are not given any additional details about the change. Since changes to hardware configurations occur very infrequently, this minimal notification scheme is not expected to be a problem (e.g. noticeably increase interprocess communication, IPC, traffic).
THardwareModule
The purpose of a THardwareModule object 206 is to represent, at a very low level, a device which will be displayed by the hardware configuration viewer (or parts bin) and which will be configured or used by a user. THardwareModule objects 206 are used to represent computers, cards and peripherals. For example, each of the following would be represented by its own THardwareModule object: Apple Macintosh Ilci computer, Apple ADB keyboard, and Macintosh Video Card.
As a member of THardwareConfiguration, a THardwareModule object 206 represents a real device which a user may attempt to configure or use. As a member of a TPartLocator (i.e. parts bin 220, described below), a THardwareModule object 206 represents a prototype for any number of real devices with identical characteristics (i.e. a part which can be added to the system).
A THardwareModule object 206 owns a set of ordered THardwarelnterface objects 212 (discussed below; THardwarelnterface objects 212 are also called connector objects, or simply connectors, herein). Each THardwarelnterface object 212 corresponds to a real physical connector on a real device. For example, with reference to Figure 4, the THardwareModule object 410 which represents the multi-function card 402 will own the THardwarelnterface objects 416, 414, and 412, respectively corresponding to the following devices: one edge connector 404, a video connector 406 and a SCSI connector 408.
Since THardwareModule is not required to be subclassed, the creator of a THardwareModule object must ensure that the appropriate THardwarelnterface objects are created and adopted into the THardwareModule object. Each THardwarelnterface object 206 corresponds to a THardwarelnterfaceldentifier object 224 (described below) and additionally corresponds to a connector object in a presentation object displayed by the computer viewer- One or more of the owned connectors is considered the default (see
Figure 4 where the edge hardware object 416 is the default). Default connectors represent special connectors which are chosen as potential connection targets during drag and drop of devices onto connectors. This is a short cut for generating connections. The alternative is to drop the icon into a hardware viewer and then manually wire it to the proper connector. Example short cut method: A user drags the video-SCSI card, illustrated above, out of the parts bin and onto an ISA slot connector in the computer viewer. The computer viewer chooses the edge connector (over the SCSI or video connector) because the developer has specified the edge connector as the default. Sometimes more than one default connector is required. For example, a printer could have both a serial port and a parallel port. If the user dragged this printer over to the serial port, the computer viewer would test both default connectors for compatibility. It would discover that the printer was compatible with the serial port. The user could continue to drag the printer over to a parallel port. The computer viewer would discover that the printer was also compatible with that.
Each THardwareModule object 206 has a personality-independent HardwareModuleSignature object 210 (discussed below) which identifies the class of physical hardware to which the THardwareModule object belongs to. For example, a THardwareModule object 206 which represents an Apple
ImageWriter II will have an instance of HardwareModuleSignature 210 whose value is "ApplelmageWriter-Q".
Each THardwareModule object 206 has one or more HardwareModuleCategory objects 208 (discussed below). Each category object 208 represents one particular kind of device that the THardwareModule object 206 is capable of representing. For example, a THardwareModule object 206 which represents a fax machine capable of being used as a modem, scanner, printer and fax, will have one instance of each of the following HardwareModuleCategorys
208: "modem", "scanner", "printer" and "fax".
Typically, every THardwareModule object 206 in a hardware database is
"connected" to at least one other THardwareModule object 206. However, this is not a requirement since a device may become completely disconnected for a variety of reasons. Disconnected devices in a THardwareConfiguration are still owned by the THardwareConfiguration object and are reachable by direct iteration.
A THardwareModule object has a number of attributes, including "root," "internal," and "wants persistence." Root is a Boolean value. If true, then the
THardwareModule object 206 is the central device of a
THardwareConfiguration. Each THardwareConfiguration object 204 has one root device. For a personal computer database, the THardwareModule object
206 which represents the computer is the root device. Root defaults to FALSE. The root device is a special device used by the Hardware Configuration Viewer.
When the Abstract or Schematic view by the hardware configuration viewer is displayed, the root device is "exploded" into a special area.
Internal is also a Boolean value. If true, then the real device is physically located inside of the root device. For example, the internal hard drive of a Macintosh is "inside" the computer. Defaults to FALSE. This state is used only by the computer viewer's schematic view. If a device is inside of the computer, it is displayed in a special area.
"Wants persistence" is a Boolean value. A module that is not persistent is implicitly removed from the configuration when the system reboots (its connections are implicitly removed as well). On the other hand, a persistent module stays in the configuration through reboots, until it is explicitly removed. Typically, all manually connected devices will want to be automatically restored by the HW configuration framework and SCSI disk drives will not. Defaults to FALSE.
HardwareModuleCategory The purpose of HardwareModuleCategory 208 is to permit clients to group THardwareModule objects 206 by kind. An instance of
HardwareModuleCategory 208 may be owned by a THardwareModule object 206 or by a TPartLocator object 218 (discussed below). When owned by a
THardwareModule object 206, an instance of HardwareModuleCategory 208 represents a kind of device the module is capable of representing. Each THardwareModule object 206 will have one HardwareModuleCategory object 208 for each kind of device it can represent.
When owned by a TPartLocator object 218, an instance of HardwareModuleCategory 208 represents the common group of all THardwareModule objects 206 owned by the TPartLocator object 218.
Supported device categories include: Monitor, Printer, Keyboard, Pointing (mouse or tablet), Modem, Card, Disk drive, Scanner, FAX, etc.
HardwareModuleSignature The purpose of HardwareModuleSignature 210 is to provide a mechanism which enables operating system (OS) personalities (e.g. OS/2) to create objects of their own to represent THardwareModule objects 206. This is required because THardwareModule objects 206 have no knowledge of what OS personalities reside above them. An instance of HardwareModuleSignature 210 represents a personality independent "key" to a unique personality dependent entity. For example, a particular operating system could use this key to resurrect a presentation object, corresponding to the HardwareModule object 206, from a file. Or, it could translate the signature into a presentation class name and then create a new presentation object corresponding to the THardwareModule object 206.
An instance of THardwareConfiguration 204 can include many devices with equivalent HardwareModuleSignature objects 210. For example, a database could have two 80MB Apple disk drives. Equivalent instances of HardwareModuleSignature 210 will exist, one for each THardwareModule object 206. These are not the same devices. They are two different THardwareModule objects 206 representing two different real devices of the same type.
THardwarelnterface
The purpose of THardwarelnterface 212 is to represent, at a very low level, a real connector on a real device. It can represent a connector on the computer, a card or a peripheral. For example, each of the following would be represented by its own THardwarelnterface object 212: SCSI connector on a Macintosh πfx, video connector on a Macintosh video card or a serial connector on a StyleWriter. THardwarelnterface objects 212 are owned by THardwareModule objects 206.
Each THardwarelnterface object 212 has one or more HardwarelnterfaceCategory objects 214 (described below). Each category object 214 represents one particular kind of interface that the THardwarelnterface object 212 is capable of representing. For example, a THardwarelnterface object 212 which represents a serial port, will have one instance of each of the following HardwarelnterfaceCategory objects 214: "serial".
Each instance of THardwarelnterface 212 will have one THardwareConnection object 216 (discussed below) for each THardwarelnterface object 212 to which it is connected. For example, as shown in Figure 5, a SCSI connector on the computer can be connected to a SCSI disk drive and a SCSI printer. The SCSI connector on the computer would have two THardwareConnection objects 216. The SCSI disk drive and the SCSI printer would each have one.
Each instance of THardwarelnterface 212 will have one THardwarelnterf aceldentifier object 224 (discussed below) which serves as a unique key into the database.
Some THardwarelnterfaces 212 will represent an actual "interface port" (e.g. the SCSI port on a computer or the video port on a video card). These THardwarelnterfaces 212 can be used to start service stacks.
Clients can request THardwarelnterface objects 212 to refresh. To accomplish this, a client (e.g. the computer viewer) creates a THardwarelnterfaceReference 222 with "MReconfigurablelnterface" as the top interface. If "MReconfigurablelnterface" is supported, a service will be returned when the hardware reference object 222 is activated and the client may safely call Reconfigure() on it.
A side effect of allowing a THardwareModule object 206 to have more than one THardwarelnterface object 212 is that a connection may indirectly "loop" back to a device. If a client were attempting to traverse all of the connections of a device, he would need to be aware of potential loops. A THardwarelnterface object 212 has the following attributes:
• Max connections: This is a short integer. A THardwarelnterface object 212 may support one or more connections. This attribute specifies the maximum number of legal connections a THardwarelnterface object 212 may have. Defaults to 1.
• Mode: Possible values are In/Out/InOut. This specifies the transmission mode. A THardwarelnterface object 212 can be an input, an output or both. Defaults to InOut. • Reconfigurable: This is a boolean value. If true, then the hardware can support refresh (i.e. it can probe to see if anything has changed). It does not mean that a service is available to actually perform the rescan. Defaults to FALSE.
This attribute is only used as an optimization. Before a client attempts to refresh a port, it can first check to see if the hardware can support it. This same information can be determined by activating the THardwarelnterfaceReference 222 for the port. However, most hardware will not support reconfiguration and using property searches is slow.
• Wants persistent Connections: This is a boolean value. The concept of persistence is the same as described for THardwareModule 206. A connector can request that its connection(s) be persistent. A connection will persist if either connector forming the connection makes this request.
Defaults to FALSE.
A connector which wants persistent connections implies that its device also wants persistence. If they do not agree, then an exception is generated.
HardwarelnterfaceCategory The purpose of HardwarelnterfaceCategory 214 is to permit clients to group THardwarelnterface 212 objects by kind. For example, a client may want to find and group all of the serial ports for a given hardware configuration. An instance of HardwarelnterfaceCategory 214 represents a kind of interface a connector is capable of representing. Each THardwarelnterface object 212 will have one HardwarelnterfaceCategory object 214 for each kind of interface it can represent. The interface categories include: Serial, Parallel, Video, MIDI, ADB, SCSI and Slot.
THardwareConnection The purpose of a THardwareConnection object 216 is to support distinct presentations for connections based on their state. An instance of THardwareConnection 216 represents a connection between two THardwarelnterface objects 212.
A hardware connection object 216 has the following attributes: • Kind: A connection may be automatic or manual. An automatic connection is made by the system. A manual connection is made by the user. It is important to be able to distinguish between these two types of connections. A user should not modify automatic connections. Hence, these connections are presented in such a way as to prevent users from changing them. Defaults to Automatic.
• Wants Persistence: A boolean value. A derived attribute which is true if either connector wants persistent connections.
A connection object 216 can be created if (1) the maximum number of connections is not exceeded on either one of the THardwarelnterface objects 212; (2) the "stack" of services between the two THardwarelnterface objects 212 is createable (or created). This means that the appropriate services must be installed before a user is allowed to connect a new device in his computer viewer; and (3) the modes of the two THardwarelnterface objects 212 are valid (using the table below):
In Out In/Out
In X Valid X
Out Valid X X
In/Out X X Valid
Table 1
TPartLocator
The purpose of TPartLocator 218 is to find all of the "installed" THardwareModule "prototypes" for a specific PartsBin category. As a member of a TPartsBin object 220, an instance of TPartLocator 218 represents the set of devices to be displayed by a PartsBin viewer, for a particular tab. Each TPartLocator object 218 has a BinCategory. The BinCategory specifies what kinds of devices the TPartLocator object 218 will find. For example, if the BinCategory ="Printer", then the TPartLocator object 218 will find all prototypes of printer "installed" on the system. When used by the parts bin, this bin category corresponds to a tab on the parts bin viewer. The parts bin viewer will own one TPartLocator for every tab it displays. A TPartLocator object 218 refers to a set of Parts (i.e. THardwareModules 206). Each part represents a device which the computer system is capable of supporting. For example, a printer TPartLocator object will own one prototype THardwareModule object for each type of printer found. A TPartLocator object 218 has the following additional behaviors:
• All of the THardwareModule objects 206 owned by an instance of TPartLocator 218 belong to the same HardwareModuleCategory 208.
• All of the THardwareModule objects 206 owned by an instance of
TPartLocator 218 have unique HardwareModuleSignature objects 210.
TPartsBin
The purpose of TPartsBin 220 is to organize the plethora of manually configurable devices into meaningful sets of related devices. For example, instead of presenting the user with the complete list of every device which his system is capable of supporting, the Parts bin 220 organizes this set of devices into several lists, each list based on a device category. A TPartsBin object 220 owns a set of Bin TPartLocator objects 218. Each bin represents a compartment and corresponds to exactly one tab on the parts bin viewer. The PartsBin viewer displays the contents of TPartLocator objects 218. As new "parts" are introduced into the system (i.e. installed), the appropriate TPartLocator objects 218 are updated. Furthermore, as new categories of "parts" are introduced, new TPartLocator objects 218 are created by the TPartsBin object 220 and new tabs are automatically displayed. User customizable locators are not excluded.
The parts bin presents to the user all of the "potentially" connectable "dumb" devices (like the Apple Chooser, except the Chooser shows a few of the currently connected devices as well). The presentation consists of a window which has a tab for each device type. For example, tabs will be provided for printers and modems. The user selects a particular tab to see all the devices of a particular type. The user may drag a device out of the parts bin and to the computer viewer to connect it.
The parts bin replaces that part of the Apple Chooser or similar entity where a user would select a printer and then click on the port the printer is connected to. It also replaces that part of MacTerminal or similar application where the user would select the port the modem is connected to.
Every file which represents a prototype of a THardwareModule 206, and expects to be shown in the parts bin, must include one PartsBin THardwareCategory property for every compartment the icon expects to appear in.
A TPartsBin object 220 has the following additional behaviors:
• The user may open any of the icons to specify persistent default settings.
• An icon may belong to more than one parts bin category and hence may appear in more than one compartment of a parts bin.
THardwarelnterfaceReference
The purpose of THardwarelnterfaceReference 222 is to shield clients from the details of how a service for a local device is created. It encapsulates the details necessary to create the service (for example, what port the device is connected to)- It uses this information along with other information to build the appropriate service stack. The interface returned, as a result of creating the stack, is a strongly-typed interface to the desired service. This "top" interface is specified directly by the client.
An instance of an active THardwarelnterfaceReference object represents access to a service provided by a real local device.
THardwarelnterfaceldentifier The purpose of THardwarelnterfaceldentifier 224 is to uniquely identify a real physical hardware component. THardwarelnterfaceldentifier objects 224 are used by services and configuration access managers (CAMs) to get the physical information they require to actually drive the hardware (for example, a service may require the physical address of the chip, IRQ, byte-lane information, etc.). THardwarelnterfaceldentifier objects 224 are strongly typed so the service will know exactly what information is available and how to get it.
As an example, the THardwarelnterfaceldentifier object, shown in Figure 6, is for a serial THardwarelnterface object which is owned by a computer
THardwareModule object. The THardwarelnterfaceldentifier object could be used by a service to get the physical I/O address of the SCC chip it represents.
A Configuration Access Manager is an input/output system entity responsible for the initialization of system hardware resources. It is subclassed for each type of hardware resource. For auto-config devices, subclasses are responsible for finding live devices and starting their associated CAM's. A CAM may or may not automatically create and initiate an Access Manager (AM) for a device. For example, a SCSI CAM may create and initiate an AM for a SCSI HD but not for a SCSI printer. AM's for printers are really not required until the printer is used.
An Access Manager is an IO service which can talk directly to a chip. The AM handles arbitration between multiple requests to access the chip.
Operation in accordance with a preferred embodiment The operation in accordance with a preferred embodiment shall now be described by discussing the manner in which the present invention operates in a typical hardware configuration scenario. The operation in accordance with a preferred embodiment under different hardware configuration scenarios will be apparent to persons skilled in the relevant art based on the discussion contained herein.
This scenario relates to the manual connection of a device. In this scenario, a user adds a new ISA serial card to his system and successfully boots. During the boot process, the ISA probe fails to find the card, so the card can not be used. Furthermore, the card is not displayed in the computer viewer. Its absence in the computer viewer is a hint to the user that the system does not see it. The user must teach his system about this new hardware module. He does this by using the computer viewer as supported by the hardware configuration system as shown in the following steps.
(1) First, the user opens the computer viewer and the parts bin. Figure 7A is a partial illustration of the initial state of the computer hardware configuration and the parts bin. The computer hardware configuration is shown with one computer module which has an empty ISA slot. The parts bin has the ISA card we want to update the system with.
(2) The user drags the ISA card icon from the parts bin over to any empty ISA slot icon on the computer (preferably the same slot it is really plugged into). The default connector is obtained from the card THardwareModule object (in this example it is the edge connector). Type negotiation between the two icons certifies that it is permissible for these two to be joined together. The standard negotiation process takes into account the invariants for connections as specified herein.
(3) Now this card is connected to the slot. This is performed as follows. First, the computer viewer (via a command object) adds the card THardwareModule object to the ComputerHardwareConfiguration. This is depicted in Figure 7B.
(4) Next, the connection must be connected. This is depicted in Figure 7C There are two connector (i.e. THardwarelnterface) objects: one from the computer viewer, chosen by the user, and one from the card, chosen by default. The command connects the two connectors together by creating a THardwareConnection. The final step is to call the Add method, on the connection, to consummate the connection. (5) The ComputerHardwareConfiguration now has a copy of the ISA card and is connected to the ISA slot. This is depicted in Figure 7D.
(6) Any change to the hardware configuration results in a notification event, which is sent to all interested clients. For example, the ISA configuration database is interested in manually connected ISA cards and receives notification. This is depicted in Figure 7E. In many cases, the new ISA card can be used as soon as the ISA database learns about it. However, if the ISA card CAM requires additional information (e.g. physical address, IRQ and/or DMA information), it may still be unavailable for use. The user may be required to supply this information to the card CAM. If so, then the ISA card icon should reflect the state (via a "software impaired" device icon or similar).
Furthermore, a user alert may be generated to notify the user of this problem.
Persistence of Handles
This section describes the behaviors of handles as they relate to the master objects in a hardware configuration. The hardware configuration framework in accordance with a preferred embodiment provides all clients with persistent handles for the following: THardwareConfiguration 204, THardwareModule 206, THardwarelnterface 212 and THardwareConnection 216.
Authentic and Dangling Handles Handles can be in one of two states, Authentic or Dangling. An authentic handle is a handle which refers to a master in the database. One gets an authentic handle by adding a master to the database, or by copying another authentic handle. A dangling handle is a handle which no longer refers to a master in the database. Dangling handles can be copied, but clients may not use dangling handles to actually read or write the master.
Handle Transition A handle transitions from the authentic to dangling state if either of the following events occur. (1) Unbeknownst to one handle, the master is explicitly removed from the database by another handle. Or (2) the master is implicitly removed from the database as a result of reboot (because the master has been marked as non-persistent). A handle transitions from the dangling to authentic state when a new master is added to the database that is "equivalent" to the (old) master that was referred to by the handle when it was in the authentic state. Equivalence is defined below.
Handle Equivalency The single THardwareConfiguration master per hardware configuration is implicitly marked persistent. THardwareConfiguration masters only go away when the database is destroyed. Handles referencing destroyed databases will dangle forever. Two configuration masters are never considered "equivalent", for the purposes of this section. A pair of THardwareModule masters are considered "equivalent" if (1) they have identical values for the Type attribute (THardwareModuleSignature), and (2) there is a one-to-one mapping between equivalent THardwarelnterface objects of the two module masters. A pair of THardwarelnterface masters are considered "equivalent" if (1) they belong to the same THardwareModule master, and (2) they have THardwarelnterfaceldentifiers that are considered "==". A pair of THardwareConnection masters are considered "equivalent" if the endpoints are themselves equivalent.
Concurrency of Handles This section describes the concurrency behaviors of handles provided by the hardware configuration framework in accordance with a preferred embodiment. The hardware configuration framework provides all clients with handles for the following: THardwareConfiguration, THardwareModule,
THardwarelnterface and THardwareConnection. A handle is not multi-thread safe, except as follows: A method that operates on a master in a configuration database (as opposed to a reference counted master) is atomic with respect to other operations on the same master. In implementation terms, a handle does not have an internal monitor. A reference counted master also has no internal monitor. But, for a master in the configuration database, there is synchronization to ensure that at most one operation is being applied to a master at a time.
Class Interfaces
For illustrative purposes, additional details (such as the persistence of handles and the functionality of member functions) pertaining to selected classes of the hardware configuration framework (see Figure 2) are described below. Such additional details for classes not specifically discussed below will be apparent to persons skilled in the art based on the discussion contained herein.
THardwareConfiguration A THardwareConfigurationHandle 204 may be saved to a file and restored at anytime. The handle will continue to be valid until the Destroy method is called. The THardwareConfiguration class 204 includes the following functions.
THardwareConfigurationHandleO
Constructs a dangling Handle. Useful as a target for streaming and assignment.
THardwareConfigurationHandle (const TText& name) Constructs a Handle to a master THardwareConfiguration object which is constructed using the persistent hardware configuration specified by the name argument. Many different THardwareConfigurations can exist concurrently, and this name is used to uniquely identify them. The name space is managed by attaching the manufacture's name to the beginning of the name argument. If a persistent hardware configuration is not wanted, then passing in an empty name (i.e. ""), will create a non-persistent, reference-counted hardware configuration.
The persistent hardware configuration, specified by the name argument, contains all of the THardwareModule and THardwareConnection objects which requested persistence.
All handles constructed for the THardwareConfigurationHandle named "Foo", refer to the single master in the persistent hardware configuration named "Foo".
THardwareConfigurationHandle(const THardwareConfigurationHandle& copyFrom
Copies the handle, not the master. The new handle becomes a reference to the master referenced by copyFrom.
THardwareConf igurationHandle& operator= (const THardwareConfiguration Handle& copyFrom) Copies the handle, not the master.
-THardwareConfigurationHandleO
Destroys the handle, not the master.
void DestroyO
This method destroys the persistent store and all master objects in this hardware configuration. All handles to every object in this hardware configuration become dangling, including this one.
void GetAllHardwareModules(TCollection<THardwareModuleHandle>& result) const
This method copies all of the handles which have been registered for this hardware configuration and adds them to the collection specified by the result argument. It does not empty the result first.
The copied handles reflect the state of the master THardwareConfiguration object at the time this method was called. The state of the master THardwareConfiguration object can change at any time and will not be reflected by the result directly. Changes will be reflected by the handles in the result. For example, any handle whose master has been removed from its THardwareConfiguration object becomes a dangling handle. The only methods that may be applied to a handle in the dangling state are assignment, copy or streaming operators. A dangling handle becomes authentic when it is the target of assignment or streaming where the source is not dangling.
void GetHardwareModules(TCollection<THardwareModuleHandle>& result,const HardwareModuleCategory& desiredKind) const This method copies all of the handles of the desiredKind which have been registered for this hardware configuration and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
The copied handles reflect the state of the master THardwareConfiguration object at the time this method was called.
void AddHardwareModule(THardwareModuleHandle& newHardwareModule) This method adds the given newHardwareModule object to this hardware configuration. It does this by moving the master THardwareModule object referred to by newHardwareModule, and any THardwarelnterfaceHandle objects owned by newHardwareModule, into the hardware configuration. If the client owns handles to any THardwarelnterfaceHandle objects owned by newHardwareModule, they will be updated to reflect the move into the database.
void RemoveHardwareModule(const THardwareModuleHandle& hardware Module)
This method removes all THardwareConnection objects for each THardwarelnterface object owned by the master referred to by hardwareModule. Next, the master, is removed from the hardware configuration; the master becomes reference counted by this handle. All other handles that refer to the master become dangling.
TInterest* CreateAnyChangelnterestO
This method creates an interest in any change to the hardware configuration (which includes any change to any member of the hardware configuration); client adopts result storage. Notification is sent, by this
THardwareConfiguration object, to all interested clients. Clients may call this method directly to create an interest which is used to register for notification.
TStream& operator»=(TStream& toWhere) const
Stream out a persistent reference to the master hardware configuration this handle represents.
TStream& operator«=(TStream& fromWhere) Stream in a reference to a master hardware configuration.
THardwareModule
A THardwareModuleHandle may be saved to a file and restored at anytime. The handle will continue to be valid until the master is removed (via a RemoveHardwareModule method). The THardwareModule class 206 includes the following functions. THardwareModuleHandleO
Creates a reference counted master not in any hardware configuration. THardwareModuleHandle(const THardwareModuleHandle& copyFrom) Copies the handle, not the master. The new handle becomes a reference to the master referenced by copyFrom.
THardwareModuleHandle& operator=(const THardwareModuleHandlefe copyFrom) Copies the handle, not the master. If the left-hand side is the last reference to a master not in any hardware configuration, then the master is destroyed. The left-hand side handle then becomes a reference to the master referenced by copyFrom.
-THardwareModuleHandleO
Destroys the handle. If this is the last reference to a master not in any hardware configuration, then the master is destroyed.
void GetAllConnectors(TSequence<THardwareInterfaceHandle>& result) const
This method copies all of the handles of THardwarelnterface objects owned by this THardwareModule and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first. The connectors are added to the result in the same order they were added to the module (i.e. the first connector added will be the first connector returned from the TSequence iterator).
The copied handles reflect the state of the master THardwareModule object at the time this method was called. The state of the master THardwareModule object can change at any time and will not be reflected by the result directly. Changes will be reflected by the handles in the result.
This method may be called directly by clients at any time. Typically, the hardware viewer framework will call this method to map the connector objects in a hardware module with the connector icons to be displayed.
void GetDefaultConnectors(TSequence<THardwareInterfaceHandle>& result) const This method copies all of the handles of THardwarelnterface objects owned by this THardwareModule which have been recorded as default connectors and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first. The connectors are added to the result in the same order they were added to the module.
The copied handles reflect the state of the master THardwareModule object at the time this method was called. This method may be called directly by clients at any time.
void AddConnector(const THardwareInterfaceHandle& newConnector, Boolean isDefault = FALSE)
This method moves the master THardwarelnterface object referred to by newConnector into the THardwareModule master. If the isDefault argument is true, then the newConnector is recorded as a default connector.
This method is typically called when manually constructing a THardwareModule object from scratch.
void RemoveConnector(const THardwarelnterf aceHandle& connector)
This method removes all connections associated with the given connector. Next, the master, specified by the connector argument, is removed from the hardware configuration; the master becomes reference counted by this handle. All other handles that refer to the master become dangling.
void GetSignature(HardwareModuleSignature& signature) const
Copies a personality neutral entity, which represents the type of device this THardwareModule object represents, into the signature argument. This personality neutral entity can be used to create a personality dependent object (e.g. a presentation object). This method may be called directly by clients at any time. Typically, the computer viewer will call this method when constructing the presentation object for this hardware module for the first time.
void SetSignature(const HardwareModuleSignature&)
Sets the type this THardwareModule object represents. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly. void GetCategories(TCollection<HardwareModuleCategory>& result) const
This method copies all of the HardwareCategory objects owned by this THardwareModule and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
The iterator reflects the state of the master THardwareModule object at the time this method was called. This method may be called directly by clients at any time.
void AddCategory(const HardwareModuleCategory& category)
Appends the category argument to the end of the list of categories for this hardware module. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
void DeleteCategory(const HardwareModuleCategory& category)
Deletes the HardwareModuleCategory object, specified by the category argument, from the master THardwareModule.
Boolean IsRootO const
Returns TRUE if this THardwareModule object is the central device of its THardwareConfiguration. Each THardwareConfiguration object has one root device. For a personal computer, the THardwareModule object which represents the computer is the root.
void SetRoot(Boolean)
Sets the "Root" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
Boolean IsInternalO const
Returns TRUE if this THardwareModule object is located inside of the root THardwareModule. This method is called by the configuration viewer to determine if it should draw the device inside or outside of the root device.
For example, the internal HD of a Macintosh is "inside" the computer.
void Setlnternal(Boolean) Sets the "Internal" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
Boolean WantsPersistenceO const
Returns TRUE if this THardwareModule object wants the hardware configuration framework to automatically restore the device when the master THardwareConfiguration object is restored. This method is typically called by the hardware configuration framework (that is, by objects of the hardware configuration framework).
void SetWantsPersistence(Boolean)
Sets the "WantsPersistence" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
TStream& operator»=(TStream& toWhere) const
If a master THardwareModule object is in a hardware configuration, then this method streams out a persistent reference. Otherwise, this method streams out a copy of the master, including its connectors but not their connections.
TStream& operator«=(TStream& from Where)
Stream in a THardwareModuleHandle. If the object in the fromWhere argument is in a hardware configuration, then this method streams in a persistent reference. Otherwise, this method streams in a master, including its connectors.
THardwarelnterface A THardwarelnterfaceHandle may be saved to a file and restored at anytime. The handle will remain valid until the master is removed. The THardwarelnterface class 212 includes the following functions.
THardwarelnterfaceHandle () Creates a reference counted master not in any hardware configuration.
THardwareInterfaceHandle(const THardwareInterfaceHandle& copyFrom) Copies the handle, not the master. The new handle becomes a reference to the master referenced by copyFrom.
THardwareInterfaceHandle& operator=(const THardwareInterfaceHandle& copyFrom)
Copies the handle, not the master. If the left-hand side is the last reference to a master not in any hardware configuration, then the master is destroyed. The left-hand side handle then becomes a reference to the master referenced by copyFrom.
~THardwareInterfaceHandle()
Destroys the handle. If this is the last reference to a master not in any hardware configuration, then the master is destroyed.
THardwareModuleHandle GetOwnerO const
Returns a handle to the THardwareModule object this THardwarelnterface object belongs to. This method is typically called by the hardware configuration viewer.
void GetAUConnections(TCollection<THardwareConnectionHandle>& result) const
This method copies all of the THardwareConnectionHandle objects associated with this THardwarelnterface and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
The copied handles reflect the state of the master THardwarelnterface object at the time this method was called. This method is typically called by the hardware configuration viewer.
void DeleteConnection(const THardwareInterfaceHandle& otherEnd)
This method deletes the THardwareConnection object, specified by this object and the otherEnd. from this hardware configuration. All handles that refer to the master THardwareConnection object become dangling.
void DeleteAllConnectionsO
This method deletes all of the THardwareConnections from this THardwarelnterface object. All handles that refer to the master THardwareConnection objects deleted become dangling. This method is typically called by the hardware configuration viewer framework.
THardwarelnterfaceldentifier* CopyHardwarelnterfaceldentifierO const Returns a pointer to the object which identifies the real physical hardware component this connector represents. Caller adopts returned storage.
void SetHardwareInterfaceIdentifier(const THardwareInterfaceIdentifier&)
Sets the "Interfaceldentifier" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
short GetMaxConnectionsO const
Returns the maximum number of connections allowed by this connector. If this value is greater than one, then the connector represents a bus (e.g. SCSI,
ADB). This method is typically called by the hardware configuration viewer during connection negotiations.
void SetMaxConnections(short) Sets the "MaxConnections" attribute to the value of the given argument.
This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
ETransmissionMode GetModeO const Returns the transmission mode supported by this connector. This method is typically called by the hardware configuration viewer during connection negotiations.
void SetMode(ETransmissionMode) Sets the "TransmissionMode" attribute to the value of the given argument.
This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
Boolean WantsPersistentConnectionsO const Returns TRUE if this THardwarelnterface object wants the hardware configuration framework to automatically restore its connections when the master THardwareConfiguration object is restored. A connection will be restored if either connector forming the connection makes this request. void SetWantsPersistentConnections(Boolean)
Sets the "WantsPersistentConnections" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
Boolean IsReconfigurableO const
Returns TRUE if the hardware represented by this THardwarelnterface object can support reconfiguration. This does not mean that a service is currently available to actually perform the reconfiguration. This attribute is an optimization.
void SetWantsReconfiuration(Boolean) Sets the "WantsReconfiguration" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
void GetCategories(TCollection<HardwareInterfaceCategory>& result) const
This method copies all of the HardwareCategory objects owned by this THardwarelnterface and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
The iterator reflects the state of the master THardwarelnterface object at the time this method was called. This method may be called directly by clients at any time.
void AddCategory(const Hardwarelnterf aceCategory& category) Appends the category argument to the end of the list of categories for this hardware interface. This method is called when manually constructing a THardwarelnterface object from scratch and will rarely be called by clients directly.
void DeleteCategory(const HardwareInterfaceCategory& category)
Delete the HardwarelnterfaceCategory object, specified by the category argument, from the master THardwarelnterface. TStream& operator»=(TStream& to Where) const
If a master THardwarelnterface object is in a hardware configuration, then this method streams out a persistent reference. Otherwise, this method streams out a copy of the master.
TStream& operator«=(TStream& fromWhere)
Stream in a THardwarelnterfaceHandle. If the object in the fromWhere argument is in a hardware configuration, then this method streams in a persistent reference. Otherwise, this method streams in a master.
THardwareConnectionHandle
A THardwareConnectionHandle may be saved to a file and restored at anytime. The handle will remain valid until the master is removed. The THardwareConnection class 216 includes the following functions.
THardwareConnectionHandleO
Creates a dangling handle. Useful as a target for streaming and assignment.
THardwareConnectionHandle (const THardwarelnterf aceHandle& toConnector,const THardwarelnterf aceHandle& f romConnector)
Creates a reference counted master not in hardware configuration.
THardwareConnectionHandle(const THardwareConnectionHandle& copy From) Copies the handle, not the master. The new handle becomes a reference to the master referenced by copyFrom.
THardwareConnectionHandle& operator= (const THardwareConnection Handle& copyFrom) Copies the handle, not the master. If the left-hand side is the last reference to a master not in any hardware configuration, then the master is destroyed. The left-hand side handle then becomes a reference to the master referenced by copyFrom.
~THardwareConnectionHandle()
Destroys the handle. If this is the last reference to a master not in any hardware configuration, then the master is destroyed. void AddO
This method moves the master THardwarelnterfaceConnection object into the hardware configuration. No connector sees this connection until Add is called.
void RemoveO
This method reverses the effects of doing an Add. The master THardwareConnection object is removed from the hardware configuration; the master becomes reference counted by this handle. All OTHER handles that refer to the master become dangling. This method is typically called by the hardware configuration viewer.
THardwarelnterfaceHandle GetOtherEnd(const THardwareInterfaceHandle& thisEnd) const
Given the THardwarelnterfaceHandle, specified by thisEnd. this method returns the THardwarelnterfaceHandle at the other end.
EConnectionKind GetKindO const
Returns the kind of connection this THardwareConnection object represents. A connection may be automatic or manual. An automatic connection is made by the system. A manual connection is made by the user. It is important to be able to distinguish between these two kinds of connections. This method is typically called by the hardware configuration framework.
void SetKind(EConnectionKind)
Sets the "kind" attribute to the value of the given argument. This method is called when manually constructing a THardwareModule object from scratch and will rarely be called by clients directly.
Boolean IsPersistentO const
Returns TRUE iff either connector of this THardwareConnection object wants persistent connections. This method is typically called by the hardware configuration framework.
TStream& operator»=(TStream& toWhere) const
If in a hardware configuration, then this method streams in a persistent reference. Otherwise, this method streams out a copy of the master. TStream& operator«=(TStream& fromWhere)
Stream in a THardwareConnectionHandle. If the object in the fromWhere argument is in a hardware configuration, then this method streams in a persistent reference. Otherwise, this method streams in a master.
TPartLocator A TPartLocator object may not be saved. The TPartLocator class 218 includes the following member functions.
TPartLocator(const HardwareModuleCategory& theCompartment)
Creates a part locator capable of finding all of the hardware module prototypes (i.e. parts) specified by theCompartment. The only expected client of this constructor is TPartsBin. TPartsBin will create one of these locators for every compartment (i.e. tray, bin, tab, etc.) the parts bin will have.
Boolean FindAll(TCollection<THardwareModuleHandle>& theResult)
This method finds all the FSEntities which identify themselves as parts that want to be in this compartment. It resurrects all of the THardwareModuleHandle objects from the located files and adds them to the given collection specified by theResult: caller adopts the storage. It does not empty theResult first. It returns TRUE if it found anything. The parts bin will call this when it needs to display (or prepare to display) the contents of a particular compartment.
THardwareModuleHandle FindOne(const TText& theName)
This method returns the THardwareModuleHandle "installed" for this compartment whose HardwareModuleSignature matches theName.
TInterest* CreateAddedlnterestO This method creates an interest for clients to use to register for notification on the addition of any part which belongs to this compartment; client adopts result storage. The only expected client of this method is TPartsBin. TPartBin will call this method just before it calls FindAll, so it can ensure an up-to-date display of the available parts.
TInterest* CreateRemovedlnterestO
This method creates an interest for clients to use to register for notification on the removal of any part which belongs to this compartment; client adopts result storage. The only expected client of this method is TPartsBin. TPartsBin will call this method just before it calls FindAll, so it can ensure an up-to-date display of the available parts.
TPartsBin
A TPartsBin object may not be saved. The TPartsBin class 220 includes the following member functions.
TPartsBinO Constructs an empty parts bin.
TPartsBin(const TPartLocator& copyFrom)
Copies all of the TPartLocators owned by copyFrom into this TPartsBin.
void GetAllPartLocators(TCollection<TPartLocator>& result) const
This method copies all of the TPartLocator objects in this parts bin and adds them to the collection specified by the result argument; caller adopts the storage. It does not empty the result first.
The contents of the parts bin object can change at any time, but this will not be directly reflected by the iterator. This method may be called directly by clients at any time. The only expected client of this method is the parts bin viewer. It will display an icon (and name) for every part locator it owns. Each part locator represents a tab on the parts bin. Furthermore, when a tab is selected by the user, the parts bin viewer will display all of the parts for that compartment.
TPartLocator GetPartLocator(const HardwareModuleCategory& desired Compartment) const Returns the TPartLocator object for the desiredCompartment in this parts bin. This method may be called directly by clients at any time.
void AddCompartmentFor(const HardwareModuleCategory& compartment)
This method creates a TPartLocator object for the kind of compartment specified by the compartment argument for this parts bin. This method may be called directly by clients at any time. The only expected client of this method is a parts bin viewer. A parts bin viewer can decide which categories it wants to display. void RemoveCompartment(const HardwareModuleCategory& compartment)
This method removes the TPartLocator object for the kind of compartment specified by the compartment argument for this parts bin. The only expected client of this method is the parts bin viewer.
TInterest* CreateAddedlnterestO
This method creates an interest for clients to use to register for notification on the addition of any new part locator. The only expected client of this method is a parts bin viewer. The parts bin viewer will call this method just before it calls GetAllPartLocators, so it can ensure an up-to-date display of the available compartments. TInterest* CreateRemovedlnterestO
This method creates an interest for clients to use to register for notification on the removal of an existing part locator. The only expected client of this method is a parts bin viewer. The parts bin viewer will call this method just before it calls GetAllPartLocators, so it can ensure an up-to-date display of the available compartments.
While various embodiments in accordance with a preferred embodiment have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope in accordance with a preferred embodiment should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.

Claims

What is claimed is:
1. An object-oriented hardware configuration system for enabling centralized user configuration of hardware in a computer system, comprising: a plurality of object-oriented hardware interface objects each representing a hardware device physical connector; a plurality of object-oriented hardware module objects each representing a hardware device that is user-configurable and comprising one or more hardware interface objects associated with the hardware device such that connectors of the hardware device are defined; an object-oriented hardware configuration object comprising a plurality of hardware module objects that represent hardware devices connected to a particular computer system, such that the hardware configuration object defines a hardware configuration of the particular computer system; and means for enabling a user to access the hardware configuration object to configure the hardware devices connected to the particular computer system.
2. The hardware configuration system of claim 1, further comprising means for notifying interested clients of changes in the hardware configuration of the particular computer system by transmitting to the interested clients notification of changes in the hardware configuration object.
3. The hardware configuration system of claim 1, wherein the hardware module objects belong to device classes, and wherein the hardware module objects comprise object-oriented hardware module signature objects to identify the device classes.
4. The hardware configuration system of claim 1, wherein the hardware module objects comprise object-oriented hardware module category objects for identifying device types which the hardware module objects can represent. 4 5. The hardware configuration system of claim 4, wherein the device types
5 comprise a monitor type, a printer type, a keyboard type, a pointing
6 device type, a modem type, a card type, a disk drive type, a scanner type,
7 and a facsimile device type.
1 6. The hardware configuration system of claim 1, wherein the hardware
2 interface objects comprise object-oriented hardware interface category
3 objects for identifying device connector types which the hardware
4 interface objects can represent.
1 7. The hardware configuration system of claim 6, wherein the device
2 connector types comprise a serial connector type, a parallel connector
3 type, a video connector type, a MIDI connector type, an ADB connector
4 type, a SCSI connector type, and a slot connector type.
1 8. The hardware configuration system of claim 1, wherein the hardware
2 interface objects represent computer system interface ports.
1 9. The hardware configuration system of claim 1, wherein the hardware
2 interface objects, the hardware module objects, and the hardware
3 configuration object are instances of related object-oriented classes which
4 form an object-oriented framework.
l
2
3
4
5
6
7
8
9 0 1 2 3 4
10. A computer system, comprising: a computer; a plurality of user-configurable hardware devices connected to the computer; and an object-oriented hardware configuration system, executing in the computer, for enabling centralized user configuration of the hardware devices, comprising a plurality of object-oriented hardware interface objects each representing a hardware device physical connector, a plurality of object-oriented hardware module objects representing the hardware devices, the hardware module objects each comprising one or more of the hardware interface objects such that connectors of the hardware devices are defined by the hardware module objects, an object-oriented hardware configuration object comprising the hardware module objects, wherein the hardware configuration object defines a hardware configuration of the computer system, and means for enabling a user to access the hardware configuration object to configure the hardware devices.
11. The computer system of claim 10, wherein the hardware configuration system further comprising means for notifying interested clients of changes in the hardware configuration of the computer system by transmitting to the interested clients notification of changes in the hardware configuration object.
12. The computer system of claim 10, wherein the hardware module objects belong to device classes, and wherein the hardware module objects comprise object-oriented hardware module signature objects to identify the device classes.
13. The computer system of claim 10, wherein the hardware module objects comprise object-oriented hardware module category objects for identifying device types which the hardware module objects can represent.
14. The computer system of claim 13, wherein the device types comprise a monitor type, a printer type, a keyboard type, a pointing device type, a modem type, a card type, a disk drive type, a scanner type, and a facsimile device type.
15. The hardware configuration system of claim 10, wherein the hardware interface objects comprise object-oriented hardware interface category objects for identifying device connector types which the hardware interface objects can represent.
16. The hardware configuration system of claim 15, wherein the device connector types comprise a serial connector type, a parallel connector type, a video connector type, a MIDI connector type, an ADB connector type, a SCSI connector type, and a slot connector type.
17. The hardware configuration system of claim 10, wherein the hardware interface objects represent computer system interface ports.
18. The hardware configuration system of claim 10, wherein the hardware interface objects, the hardware module objects, and the hardware configuration object are instances of related object-oriented classes which form an object-oriented framework.
PCT/US1994/003981 1993-12-21 1994-04-11 Object-oriented system and method for hardware configuration WO1995017715A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP94923149A EP0730763B1 (en) 1993-12-21 1994-04-11 Object-oriented system and method for hardware configuration
AU73105/94A AU7310594A (en) 1993-12-21 1994-04-11 Object-oriented system and method for hardware configuration
DE69405408T DE69405408T2 (en) 1993-12-21 1994-04-11 OBJECT-ORIENTED SYSTEM AND METHOD FOR HARDWARE CONFIGURATION
JP7517390A JPH09507317A (en) 1993-12-21 1994-04-11 Object-oriented system and method for hardware configuration

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/171,722 US5546595A (en) 1993-12-21 1993-12-21 Object-oriented system using objects representing hardware devices, physical connectors and connections between the physical connectors for configuring a computer
US08/171,722 1993-12-21

Publications (1)

Publication Number Publication Date
WO1995017715A1 true WO1995017715A1 (en) 1995-06-29

Family

ID=22624879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1994/003981 WO1995017715A1 (en) 1993-12-21 1994-04-11 Object-oriented system and method for hardware configuration

Country Status (7)

Country Link
US (1) US5546595A (en)
EP (1) EP0730763B1 (en)
JP (1) JPH09507317A (en)
AU (1) AU7310594A (en)
CA (1) CA2178582A1 (en)
DE (1) DE69405408T2 (en)
WO (1) WO1995017715A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000065438A2 (en) * 1999-04-28 2000-11-02 Tranxition Corporation Method and system for automatically transitioning of configuration settings among computer systems
EP1103891A2 (en) * 1999-11-15 2001-05-30 Lipman Electronic Engineering Ltd. Adaptive management center especially used for point of sale terminals
EP1221651A2 (en) * 2001-01-09 2002-07-10 Seiko Epson Corporation Device environment configuration system, device environment configuration method, and data storage medium therefor
US7293170B2 (en) 2005-06-06 2007-11-06 Tranxition Corporation Changing the personality of a device by intercepting requests for personality information

Families Citing this family (54)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69516634T2 (en) * 1994-11-04 2000-09-21 Canon Information Syst Inc Intelligent reprogramming of a flash memory
US5745765A (en) * 1995-10-23 1998-04-28 Calico Technology, Inc. Method and apparatus for automatic and interactive configuration of custom products
US5948091A (en) * 1995-12-01 1999-09-07 Texas Instruments Incorporated Universal digital display interface
US6063128A (en) * 1996-03-06 2000-05-16 Bentley Systems, Incorporated Object-oriented computerized modeling system
US5864660A (en) * 1996-03-12 1999-01-26 Electronic Data Systems Corporation Testing the integration of a plurality of elements in a computer system using a plurality of tests codes, each corresponding to an alternate product configuration for an associated element
US5805796A (en) * 1996-03-27 1998-09-08 Dell Usa, Lp System architecture for implementing modular diagnostics
US6704802B1 (en) * 1996-03-27 2004-03-09 Dell Usa, Lp Method and system for communicating between independent software modules
US6526457B1 (en) 1996-10-30 2003-02-25 Computer Associates Think, Inc. Systems utility object interface for facilitating software portability
US5815731A (en) * 1996-10-31 1998-09-29 International Business Machines Corporation Method and system for providing device driver configurations on demand
US6078741A (en) * 1997-02-05 2000-06-20 Firsttel Systems Corporation Automatic generation of reconfiguration scripts for telecommunication devices
US6263376B1 (en) 1997-02-24 2001-07-17 Novell, Inc. Generic run-time binding interpreter
US6125408A (en) * 1997-03-10 2000-09-26 Compaq Computer Corporation Resource type prioritization in generating a device configuration
US6529877B1 (en) * 1997-03-27 2003-03-04 British Telecommunications Public Limited Company Equipment allocation system
US6134614A (en) * 1997-05-13 2000-10-17 Micron Electronics, Inc. Method for facilitating the replacement or insertion of devices in a computer system through the use of a graphical user interface
US6046742A (en) * 1997-05-13 2000-04-04 Micron Electronics, Inc. Display of system information
US6058445A (en) * 1997-05-13 2000-05-02 Micron Electronics, Inc. Data management method for adding or exchanging components on a running computer
US6134615A (en) 1997-05-13 2000-10-17 Micron Electronics, Inc. System for facilitating the replacement or insertion of devices in a computer system through the use of a graphical user interface
US6425006B1 (en) 1997-05-13 2002-07-23 Micron Technology, Inc. Alert configurator and manager
US6553416B1 (en) 1997-05-13 2003-04-22 Micron Technology, Inc. Managing computer system alerts
US6105089A (en) * 1997-05-13 2000-08-15 Micron Electronics, Inc. Data management system for adding or exchanging components on a running computer
US6219711B1 (en) 1997-05-13 2001-04-17 Micron Electronics, Inc. Synchronous communication interface
US6096094A (en) 1997-10-03 2000-08-01 National Instruments Corporation Configuration manager for configuring a data acquisition system
US6009466A (en) * 1997-10-31 1999-12-28 International Business Machines Corporation Network management system for enabling a user to configure a network of storage devices via a graphical user interface
US6161150A (en) * 1998-01-30 2000-12-12 Object Technology Licensing Corporation System for informing a computer user of a conflict encountered during resource allocation to expansion cards of different types having resource information in different format
US6636901B2 (en) 1998-01-30 2003-10-21 Object Technology Licensing Corp. Object-oriented resource lock and entry register
US6161151A (en) * 1998-01-30 2000-12-12 Object Technology Licensing Corporation Object-oriented global resource conflict resolver formatting resource requirements into a predetermined standard format and iteratively computing a resource assignment for each I/O function
US6141712A (en) * 1998-01-30 2000-10-31 Object Technology Licensing Corporation Apparatus and method for modeling behavior of expansion boards in a computer system
US6393557B1 (en) * 1998-05-08 2002-05-21 International Business Machines Corporation Dynamic method for configuring a computer system
US6253318B1 (en) * 1998-07-29 2001-06-26 Compaq Computer Corporation Method of developing physical requirements for computer configuration
US6263382B1 (en) * 1998-07-29 2001-07-17 Compaq Computer Corporation Sizer for interactive computer system configuration
US6192470B1 (en) * 1998-07-29 2001-02-20 Compaq Computer Corporation Configuration sizer for selecting system of computer components based on price/performance normalization
US6353884B1 (en) 1998-07-29 2002-03-05 Compaq Computer Corporation System for describing and storing descriptions of hierachical structures using hardware definition files to specify performance, characteristics, part number and name of hardware components
US6374352B1 (en) * 1998-08-26 2002-04-16 Intel Corporation Temporary configuration with fall-back
US6167408A (en) * 1998-08-31 2000-12-26 International Business Machines Corporation Comparative updates tracking to synchronize local operating parameters with centrally maintained reference parameters in a multiprocessing system
US6334178B1 (en) 1998-08-31 2001-12-25 International Business Machines Corporation Multiprocessing system with automated propagation of changes to centrally maintained configuration settings
US6341291B1 (en) 1998-09-28 2002-01-22 Bentley Systems, Inc. System for collaborative engineering using component and file-oriented tools
US6389491B1 (en) * 1999-03-23 2002-05-14 Agilent Technologies, Inc. Test instrumentation I/O communication interface and method
JP2001006276A (en) * 1999-06-18 2001-01-12 Sony Corp Device and method for controlling external apparatuses
WO2001046804A1 (en) * 1999-08-16 2001-06-28 Z-Force Corporation System of reusable software parts for implementing concurrency and hardware access, and methods of use
US7139693B1 (en) * 1999-12-22 2006-11-21 Intel Corporation Using software objects to communicate with hardware devices
US20040024732A1 (en) * 2001-04-02 2004-02-05 Bryan Klisch Constructing a component management database for managing roles using a directed graph
JP3985135B2 (en) * 2001-12-27 2007-10-03 セイコーエプソン株式会社 Device initialization method in control system, control system, program for causing computer to execute device initialization method, and recording medium recording this program
US7849171B2 (en) * 2002-02-27 2010-12-07 Ricoh Co. Ltd. Method and apparatus for monitoring remote devices by creating device objects for the monitored devices
US20030225772A1 (en) * 2002-05-31 2003-12-04 International Business Machines Corporation Business method for determining required product configurations to meet varied performance requirements
US7730174B2 (en) * 2003-06-27 2010-06-01 Computer Associates Think, Inc. System and method for agent-based monitoring of network devices
US20050060659A1 (en) * 2003-09-11 2005-03-17 Dell Products L.P. System, method and software for communicating the effects of user preference settings in an information handling system
WO2006010241A1 (en) 2004-07-30 2006-02-02 Research In Motion Limited System and method for providing a communications client on a host device
WO2006010257A1 (en) 2004-07-30 2006-02-02 Research In Motion Limited Method and system for coordinating device setting between a communications client and its host device
AU2005256105B8 (en) 2004-07-30 2008-10-02 Blackberry Limited Method and apparatus for provisioning a communications client on a host device
WO2006010263A1 (en) * 2004-07-30 2006-02-02 Research In Motion Limited Client-host divided architecture for input-output coordination
KR100662921B1 (en) * 2004-12-07 2007-01-02 삼성전자주식회사 Image forming apparatus system and program install method thereof
US8701023B1 (en) 2006-02-16 2014-04-15 Cypress Semiconductor Corporation Global parameter management graphical user interface (GUI) for embedded application design
US7786996B2 (en) * 2006-10-24 2010-08-31 Sony Corporation System and method for object oriented hardware including cross-point switch interconnecting modules with I/O
CN101667124A (en) * 2009-10-15 2010-03-10 上海宝信软件股份有限公司 System and method for configuring monitoring device based on object model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0374512A2 (en) * 1988-12-19 1990-06-27 Hewlett-Packard Company Monitoring database objects
EP0398644A2 (en) * 1989-05-15 1990-11-22 International Business Machines Corporation Data processing system comprising system configuration means

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4821220A (en) * 1986-07-25 1989-04-11 Tektronix, Inc. System for animating program operation and displaying time-based relationships
US4885717A (en) * 1986-09-25 1989-12-05 Tektronix, Inc. System for graphically representing operation of object-oriented programs
US4891630A (en) * 1988-04-22 1990-01-02 Friedman Mark B Computer vision system with improved object orientation technique
US4953080A (en) * 1988-04-25 1990-08-28 Hewlett-Packard Company Object management facility for maintaining data in a computer system
EP0347162A3 (en) * 1988-06-14 1990-09-12 Tektronix, Inc. Apparatus and methods for controlling data flow processes by generated instruction sequences
US5041992A (en) * 1988-10-24 1991-08-20 University Of Pittsburgh Interactive method of developing software interfaces
US5050090A (en) * 1989-03-30 1991-09-17 R. J. Reynolds Tobacco Company Object placement method and apparatus
US5060276A (en) * 1989-05-31 1991-10-22 At&T Bell Laboratories Technique for object orientation detection using a feed-forward neural network
US5125091A (en) * 1989-06-08 1992-06-23 Hazox Corporation Object oriented control of real-time processing
US5181162A (en) * 1989-12-06 1993-01-19 Eastman Kodak Company Document management and production system
US5093914A (en) * 1989-12-15 1992-03-03 At&T Bell Laboratories Method of controlling the execution of object-oriented programs
US5075848A (en) * 1989-12-22 1991-12-24 Intel Corporation Object lifetime control in an object-oriented memory protection mechanism
US5151987A (en) * 1990-10-23 1992-09-29 International Business Machines Corporation Recovery objects in an object oriented computing environment
US5119475A (en) * 1991-03-13 1992-06-02 Schlumberger Technology Corporation Object-oriented framework for menu definition
US5253344A (en) * 1991-09-05 1993-10-12 International Business Machines Corp. Method and apparatus for dynamically changing the configuration of a logically partitioned data processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0374512A2 (en) * 1988-12-19 1990-06-27 Hewlett-Packard Company Monitoring database objects
EP0398644A2 (en) * 1989-05-15 1990-11-22 International Business Machines Corporation Data processing system comprising system configuration means

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000065438A2 (en) * 1999-04-28 2000-11-02 Tranxition Corporation Method and system for automatically transitioning of configuration settings among computer systems
WO2000065438A3 (en) * 1999-04-28 2001-02-15 Tranxition Corp Method and system for automatically transitioning of configuration settings among computer systems
EP1103891A2 (en) * 1999-11-15 2001-05-30 Lipman Electronic Engineering Ltd. Adaptive management center especially used for point of sale terminals
EP1103891A3 (en) * 1999-11-15 2006-04-19 Lipman Electronic Engineering Ltd. Adaptive management center especially used for point of sale terminals
EP1221651A2 (en) * 2001-01-09 2002-07-10 Seiko Epson Corporation Device environment configuration system, device environment configuration method, and data storage medium therefor
EP1221651A3 (en) * 2001-01-09 2003-12-03 Seiko Epson Corporation Device environment configuration system, device environment configuration method, and data storage medium therefor
KR100610987B1 (en) * 2001-01-09 2006-08-10 세이코 엡슨 가부시키가이샤 Device environment configuration system, device environment configuration method, and data storage medium therefor
US7251724B2 (en) 2001-01-09 2007-07-31 Seiko Epson Corporation Device environment configuration system and method, and data storage therefor
US7293170B2 (en) 2005-06-06 2007-11-06 Tranxition Corporation Changing the personality of a device by intercepting requests for personality information
US8732449B2 (en) 2005-06-06 2014-05-20 Tranxition Corporation Changing the personality of a device by intercepting requests for personality information

Also Published As

Publication number Publication date
US5546595A (en) 1996-08-13
EP0730763B1 (en) 1997-09-03
JPH09507317A (en) 1997-07-22
DE69405408D1 (en) 1997-10-09
EP0730763A1 (en) 1996-09-11
DE69405408T2 (en) 1998-07-02
CA2178582A1 (en) 1995-06-29
AU7310594A (en) 1995-07-10

Similar Documents

Publication Publication Date Title
US5546595A (en) Object-oriented system using objects representing hardware devices, physical connectors and connections between the physical connectors for configuring a computer
US5675748A (en) Method and apparatus for automatically configuring computer system hardware and software
EP0664028B1 (en) Object-oriented system locator system
US5396626A (en) Object-oriented locator system
US5748980A (en) System for configuring a computer system
EP0657809B1 (en) Input/output objects in operating system kernel
US5345550A (en) User-modifiable popup menus for object oriented behavior
JP3725263B2 (en) Method and apparatus for facilitating interaction between a source object and a target object
US6246409B1 (en) Method and system for connecting to, browsing, and accessing computer network resources
US6966033B1 (en) Methods and apparatus for graphically managing resources
JP3590688B2 (en) Method and system for constructing an installation plan object for installing an application
US7237199B1 (en) Architecture for an application framework
US7526734B2 (en) User interfaces for developing enterprise applications
WO1995017720A1 (en) Service creation in an object oriented system
JP2005025755A (en) System for automatic configuration and method therefor
JP2001060180A (en) System and method for peripheral system management using operation object interface for device control
US20060167886A1 (en) System and method for transmitting data from a storage medium to a user-defined cluster of local and remote server blades
KR930006382B1 (en) Boot system of data processing system
US20130073824A1 (en) Copying segments of a virtual resource definition
CN113626095A (en) Switching method and switching system of configuration center, electronic equipment and storage medium
WO2000014630A1 (en) Method and apparatus for determining preferred controls for an upgradable operating system
US20040034859A1 (en) Shared common connection factory
JP4060890B2 (en) File system primitives that allow reprocessing of I / O requests by multiple drivers in a hierarchical driver I / O system
TW515998B (en) Method for simulating multiplex operations in simplex system
CN115562548A (en) Common function setting method, electronic device, electronic apparatus, and storage medium

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AT AU BB BG BR BY CA CH CN CZ DE DK ES FI GB HU JP KP KR KZ LK LU LV MG MN MW NL NO NZ PL PT RO RU SD SE SK UA UZ VN

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN ML MR NE SN TD TG

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2178582

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 1994923149

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1994923149

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

WWG Wipo information: grant in national office

Ref document number: 1994923149

Country of ref document: EP