WO1997040455A1 - Object oriented case-based reasoning framework mechanism - Google Patents

Object oriented case-based reasoning framework mechanism Download PDF

Info

Publication number
WO1997040455A1
WO1997040455A1 PCT/US1997/002574 US9702574W WO9740455A1 WO 1997040455 A1 WO1997040455 A1 WO 1997040455A1 US 9702574 W US9702574 W US 9702574W WO 9740455 A1 WO9740455 A1 WO 9740455A1
Authority
WO
WIPO (PCT)
Prior art keywords
case
objects
query
user
properties
Prior art date
Application number
PCT/US1997/002574
Other languages
French (fr)
Inventor
Verlyn Mark Johnson
Dennis Dale Koski
Thomas Alan Shore
Original Assignee
International Business Machines Corporation
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 International Business Machines Corporation filed Critical International Business Machines Corporation
Priority to EP97907689A priority Critical patent/EP0954805A4/en
Priority to JP53803897A priority patent/JP2002505769A/en
Publication of WO1997040455A1 publication Critical patent/WO1997040455A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/027Frames

Definitions

  • the present invention relates generally to data processing and, more specifically, to object-oriented programming systems and processes.
  • case-based reasoning generally refers to a computer process that finds solutions to current problems by examining descriptions of similar, previously encountered problems and their associated solutions, matching the novel problems to the closest previously encountered problems, and using the associated solutions to produce a solution to the current problem.
  • problem-solution descriptions are stored in a database called a case base. Weights assigned to different properties of each case are used in scoring cases for similarity against a current problem.
  • the CBR system receives a description of a current problem, retrieves the closest matching cases from the case base using a query engine processor, and iteratively prompts the user for additional descriptive information until the retrieved case or cases are sufficiently close (similar) to be considered a solution to the current problem.
  • the produced solution is then validated through a variety of means, such as user feedback or automatic validation. A validated solution can be added to the case base and used in future problem solving, if appropriate.
  • CBR systems permit experience gained from solving problems to be applied to a much larger number of problem situations than could possibly be remembered by any one individual with substantially reduced chance of providing erroneous or inconsistent solutions. Validation of problem solutions provides an additional safeguard. Finally, updating the case base permits continuous expansion of the case base against which problems are matched, reducing the likelihood that a satisfactory problem solution cannot be produced.
  • CBR systems are gaining use in computer-assisted and automated help-desk and customer service systems and in computer help programs.
  • the construction of the case base and the way in which stored cases are matched and retrieved can vary greatly from CBR system to CBR system.
  • the case base can comprise problem-solution descriptions stored as plain language text, data records having predefined fields, or semantic networks.
  • Case matching and retrieval processing by the query engine can comprise implementation of nearest-neighbor algorithms, decision trees, or associative memories.
  • the user interface also must be part of the CBR system development process, including construction of the user input and solution presentation mechanisms. The development of each CBR system therefore can require much time, effort, and expense in making such data representation and processing decisions and implementing them.
  • CBR systems are tailored for each particular subject matter application and are developed using conventional procedure- oriented programming languages, such as FORTRAN, Pascal, and C.
  • Many lines of computer programming code must be created for each application. For example, even if the same type of case-matching, query engine processing is used for different CBR systems, the query engine must be adapted to work with the problem-solution description being used. Some code can be modified from other versions, or deleted and replaced with different instructions for different applications, which still can require much analysis and design effort.
  • the development of CBR systems would be easier, less expensive, and less time consuming if the user interface could be more consistent, representation of the problem-solution descriptions standardized, development of the case base made simpler, and the query engine made interchangeable from application to application.
  • CBR systems As CBR systems become more widely distributed, more users of CBR systems will be novice users who might be unfamiliar with the case base and with CBR search techniques generally. With current CBR search implementations, search techniques employed by novice users can easily be relatively ineffective.
  • CBR systems typically use weighted matching techniques to find the cases in the case base that are the closest match o a set of specified search criteria. Cases are defined by a set c: properties and cases are deemed more closely matched to a search query if they have more properties in common. Conventional weighting techniques can be said to penalize cases that are more completely defined (have more properties in their definition) because searches that leave many properties unspecified result in fewer completely-defined cases being deemed a match. Novice users are especially prone to leaving search properties unspecified.
  • CBR search techniques also penalize cases that are under-defined, or that have fewer properties defined than are defined in the search query. Users of the CBR system have no control over the way in which the system deals with unspecified properties. Some systems attempt to reduce such problems by assigning different weights to properties and thereby properly accommodate case properties that are not specified m a search, case properties that are unmatched to a search, or search properties that are unmatched to a case. Specifying the case base can become relatively complicated, as case base developers struggle to assign weights. Moreover, different weights might be advisable, depending on the specific search. The CBR system either becomes unresponsive to different searches or case definition becomes too complex.
  • a reusable object oriented (00) framework for use with object oriented programming systems comprises a case-based reasoning (CBR) shell that permits a framework user to use a case set comprising a set of case instance descriptions and generates a case-based reasoning system that receives user requests for query solutions and produces a query solution that can be incorporated into the set of case instance descriptions.
  • the object oriented framework includes a
  • Control Flow component that controls processing of the CBR system
  • a Data Store component that manages all persistent data associated with the system
  • a Presentation component that manages interface to users of the CBR system.
  • the CBR system user can engage in operations such as query processing, building case history definitions, and modifying operating parameters, according to the object definitions.
  • the case history descriptions and search queries comprise a set of object oriented classes that are organized into an inheritance hierarchy. In this way, a single framework can be used to generate, update, and use many different case histories and evaluate search queries with reduced development time.
  • the extended framework thereby quickly and efficiently provides a variety of case-based reasoning systems.
  • the present invention permits dynamic, user adjustment of property weights used in specifying a search query and in specifying a case set from which a solution will be retrieved.
  • Such dynamic weighting can be applied to a case-based reasoning system implemented in an object oriented environment or in a procedural environment.
  • the CBR system developer uses the framework to provide a set of case definitions, property definitions, and case base descriptions for the CBR system under development.
  • the framework provides the CBR system shell having the Control Flow component, Presentation component, Data Store component, and a Query Engine component.
  • the extended framework provides a CBR system that includes the case base and receives a current problem query, matches the current query description to the closest case history description in the case base, and produces a solution to the current query. The produced solution is validated and, if appropriate, is added to the case base. In this way, a CBR system developer can more quickly integrate a case base with a query engine and user interface to provide an operable CBR system.
  • property weights assigned to cases in the case base are dynamically adjusted during search and property weights are also assigned to the search query. In this way, users specifying searches can control which properties are used, what combinations of weights are used, and whether or not missing properties should penalize the case history matching.
  • cases are stored as sets of property/value pairs and each property is assigned an importance rank value relative to the other properties of the case.
  • the rank values are normalized, so that unspecified properties in a query that ordinarily would result in a lower match score instead can be compared in relative terms. Also, only properties specified in a query are considered in calculating the normalized rank score, so that unspecified properties do not skew the scoring.
  • search queries are specified as property/value pairs and each property is assigned a normalized importance rank relative to the other properties of the search query and a match score is computed considering only the defined properties of the query. In this way, unspecified properties m a search query do not result in lower match scoring.
  • Figure 1 is a category diagram of an exemplary Zoo
  • Figures 2, 3, 4, 5, and 6 are class diagrams for the exemplary Zoo Administration framework of Figure 1.
  • Figure 7 is an object diagram for the exemplary framework of Figures 1 through 6.
  • Figure 8 is a functional block diagram of a computer processing system constructed m accordance with the present invention.
  • Figure 9 is a flow diagram that illustrates the processing steps performed by the framework mechanism of the computer processing system illustrated in Figure 8.
  • Figure 10 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system in executing the build case structure definition step of Figure 9.
  • Figure 11 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system in executing the construct properties, values, and weight set processing step of Figure 10.
  • Figure 12 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system in executing the build case instance definitions processing step of Figure 9.
  • Figure 13 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system illustrated in Figure 8 in producing a solution to a query.
  • Figure 14 is a category diagram representation of the framework mechanism of the computer processing system illustrated in Figure 8.
  • Figure 15 is a class diagram representation of the CBR Session category implemented by the computer processing system illustrated in Figure 8.
  • Figure 16 is a class diagram representation of the CBR Base category implemented by the computer processing system illustrated in Figure 8.
  • Figure 17 is a class diagram representation of classes related to a case structure definition for the CBR system as implemented by the computer processing system illustrated in Figure 8.
  • Figure 18 is a class diagram representation that shows the functions implemented by the CaseDefinition category shown in Figure 17.
  • Figure 19 is a class diagram representation of the CaseDefinition category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 20 is a class diagram representation of the PropertyDefinition category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 21 is a class diagram representation of the CaseSet category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 22 is a class diagram representation of classes related to a case history instance as implemented by the computer processing system illustrated in Figure 8.
  • Figure 23 is a class diagram representation of the Case category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 24 is a class diagram representation of the Value category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 25 is a class diagram representation of the Caselnstance category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 26 is a class diagram representation of classes related to a case query as implemented by the computer processing system illustrated in Figure 8.
  • Figure 27 is a class diagram representation of the CBRQuery category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 28 is a class diagram representation of the Pattern category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 29 is a class diagram representation of the
  • Figure 30 is a class diagram representation of the ControlFlowComponent category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 31 is a class diagram representation of the PresentationPart category and related classes implemented by the computer processing system illustrated in Figure 8.
  • Figure 32 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a CaseDefinition is created.
  • Figure 33 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when Property, Value, and WeightSet objects are constructed.
  • Figure 34 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when ActionPrompt, Tracking, and IndexDefinition objects are constructed.
  • Figure 35 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when Pattern objects are constructed.
  • Figure 36 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a ParseDefinition object is updated.
  • Figure 37 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a CaseDefinition object is stored.
  • Figure 38 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a Caselnstance Definition object is created.
  • Figure 39 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 for selection of a CaseDefinition object.
  • Figure 40 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a Propertylnstance object is created.
  • Figure 41 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when Propertylnstance and Value objects are built.
  • Figure 42 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when ActionPrompt objects are created and Audit methods are performed.
  • Figure 43 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when IndexDefinition objects are refreshed and a Caselnstance object is stored.
  • Figure 44 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a single CBR Query is received from a user.
  • Figure 45 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when building a pattern for the CBR Query.
  • Figure 46 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a received CBR Query is evaluated.
  • Figure 47 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a CaseMatch Set is built.
  • Figure 48 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a PropertyMatch Set is built.
  • Figure 49 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a Query solution is evaluated. Description of the Preferred Embodiment
  • the present invention was developed using Object-Oriented (00) framework technology.
  • the preferred embodiment is implemented in an object oriented programming environment. Therefore, an exemplary 00 system will be described next.
  • Individuals skilled in the art of 00 framework technology may wish to proceed to the Detailed Description section of this specification. However, those individuals who are new to framework technology, or new to 00 technology m general, should read this overview section m order to best understand the benefits and advantages of the present invention.
  • 00 technology is significantly different from procedural technology because problems are broken down into sets of cooperating objects instead of into hierarchies of nested computer programs or procedures. That is, procedural technology defines a system in terms of data variables and process functions whereas 00 technology defines a system m terms of objects and classes.
  • framework is used in this specification to describe an 00 technology system that has been designed to have core function and extensible function.
  • the core function is that part of the framework that is not subject to modification by the framework purchaser.
  • the extensible function is that part of the framework that has been explicitly designed to be customized and extended by the framework purchaser as part of its implementation.
  • frameworks are designed in a way that permits and promotes customization and extension of certain aspects of the 00 solution, whereas a basic 00 solution can be said to comprise a particular collection, or library, of classes and objects.
  • frameworks provide an 00 programming solution that can be customized and extended to address individualized requirements that change over time.
  • framework consumers the cost of customizing or extending a framework is much less than the cost of replacing or reworking an existing program solution.
  • framework designers when framework designers set out to solve a particular problem, they should do more than merely design individual objects and specify how those objects interrelate. They should also design the core function of the framework (i.e., that part of the framework that is not to be subject to potential customization and extension by the framework consumer) and the extensible function of the framework (i.e., that part of the framework that i_s to be subject to potential customization and extension) . In the end, the ultimate worth of a framework rests not only on the quality of the object design, but also on the design choices involving which aspects of the framework represent core function and which aspects represent extensible function.
  • ZAF--An Illustrative Framework ZAF--An Illustrative Framework
  • framework design is necessarily an intertwined and iterative process
  • example design choices for a simplistic framework are set forth in the paragraphs that follow. It should be understood, though, that this is only an example framework that is being used in this specification to illustrate and best explain frameworks such that the reader can better understand and appreciate the benefits and advantages of the present invention.
  • Framework designers determine what objects are needed for a framework mechanism by selecting objects from what is called the problem domain.
  • the problem domain is an abstract view of the specific problem at hand.
  • the example problem domain chosen for the illustrative framework is that of zoo administration.
  • the specific problem presented is that of designing a framework that assists zoo keepers in the care and feeding of zoo animals.
  • ZAF Zoo Administration Framework
  • an 00 framework designer would look to the zoological problem domain and decide that any ZAF would of necessity involve an abstraction that represents the relationship between zoo keepers and animals (i.e., represents how zoo keepers care for animals) .
  • the framework designer would also likely recognize that zoo animals usually live in cages, pens, tanks, and other sorts of containment units. Therefore, the framework designer also would start with the idea that the framework would have to involve abstractions or mechanisms that represent all of these fundamental entities and relationships.
  • FIG. 1 is a category diagram for the example framework ZAF.
  • Each entity, or icon, in a category diagram represents groupings of data objects that perform a particular function.
  • Mechanisms For the purposes of illustration, assume that the framework designer decides that ZAF should be made up of four components that, at a high level perspective, will be referred to as mechanisms: a Zoo Administration mechanism, a Zoo Keeper mechanism, an Animal mechanism, and a Containment Unit mechanism.
  • the Zoo Administration mechanism has been designed to use the Zoo Keeper mechanism to administer the zoo.
  • the Zoo Administration mechanism is therefore said to have a "using" relationship with the Zoo Keeper mechanism.
  • the Zoo Administration mechanism has been designed to have responsibility for overall control of ZAF. Accordingly, the Zoo Administration mechanism is responsible for scheduling the operation of the Zoo Keeper mechanism.
  • the framework designer has designed the Zoo Administration mechanism to be a core function of ZAF, which means that it has been designed such that it will not be subject to potential customization and extension.
  • the upper case block letter "C" in the category box for the Zoo Administration mechanism denotes this fact.
  • the "uses" relationship between the Zoo Administration mechanism and the Zoo Keeper mechanism also has been designed as a core function such that it is not available for ultimate customization by the framework consumer.
  • the Zoo Keeper mechanism has been designed to be generally responsible for the care and feeding of the zoo animals. Accordingly, it uses the Animal and Containment Unit mechanisms to perform its tasks. Unlike the design of the Zoo Administration mechanism, however, the framework designer has designed the Zoo Keeper mechanism to be an extensible function, which again means that the Zoo Keeper mechanism has been designed to be available for modification and/or extension by the framework consumer to address future care and feeding requirements. This fact is denoted by the upper case block letter "E" in the Zoo Keeper mechanism category box.
  • the framework designer has designed the Animal mechanism to represent the animal side of the interaction between zoo animals and zoo keepers. Since the animal population in the zoo is something that changes on a regular basis, the Animal mechanism has similarly been designed as an extensible function.
  • the Containment Unit mechanism interacts with the Zoo Keeper mechanism by representing individual containment units such as pens, tanks, and cages. Like the Animal mechanism, the Containment Unit mechanism has been designed as an extensible function such that it can handle future customization and extension requirements. Please note here, however, that even though the Zoo Keeper, Animal, and Containment Unit mechanisms have all been designed as extensible functions, the relationships between the mechanisms have been designed to be a core function of ZAF.
  • a class is a definition of a set of like objects. As such, a class can be thought of as an abstraction of the objects or as a definition of a type of object. From the view of a computer system, a single object represents an encapsulated set of data and the operation or a group of operations that are performed by a computer system upon that data. In fact, in a secure computer system, the only access to the information controlled by an object is via the object itself. This is why the information contained in an object is said to be encapsulated by the object.
  • Each class definition comprises data definitions that define the information controlled by the object and operation definitions that define the operation or operations performed by objects on the data that each object controls.
  • a class definition defines how an object acts and reacts to other objects by defining an operation or set of operations that is/are performed on the defined data. (Please note that operations are sometimes called methods, method programs, and/or member functions.)
  • operations are sometimes called methods, method programs, and/or member functions.
  • the defined operation(s) and data are said to be the behavior of the object.
  • a class definition defines the behavior of its member object or objects.
  • Figure 2 is an 00 class diagram that shows the fundamental classes that the framework designer has designed for ZAF. Each class representation indicates its relationship to the mechanisms shown on Figure 1.
  • the Zoo Keepers class is denoted as being from the Zoo Keeper mechanism.
  • the fundamental classes of ZAF include: the Zoo Administrator class, which is part of the Zoo Administration mechanism; the Zoo Keeper Registry class, which is also part of the Zoo Administration mechanism; the Animal Registry class, which is part of the Zoo Keeper mechanism; the Zoo Keepers class, which is also part of the Zoo Keeper mechanism; the Containment Unit Registry class, which is also part of the Zoo Keeper mechanism; the Animals class, which is part of the Animal mechanism; and the Containment Unit class, which is part of the Containment Unit mechanism.
  • the relationships between the classes have been designed as core functions of ZAF such that they are not available for ultimate modification by ZAF's consumers.
  • the Zoo Administrator class is the definition of the object that is responsible for the overall control of ZAF. Again, 00 classes only define the objects that interact to provide a solution to the problem. However, it is by exploring the characteristics of the class definitions that one is able to understand how the objects of the framework mechanism have been designed to provide a living solution that can be customized and/or extended to address future requirements.
  • the Zoo Administration class has been designed to have a "uses" relationship with the Zoo Keeper Registry class
  • the framework designer has designed the Zoo Administration and Zoo Registry classes to be a core function of ZAF because the designer has decided that ZAF's consumers should not be allowed to modify the behavior of objects that are members of these class definitions.
  • the Zoo Keeper Registry which has what is called a "contains by reference” relationship with the Zoo Keepers class, is simply a class that defines an object that is a container for all zoo keeper objects. Accordingly, the Zoo Keeper Registry includes a definition for a l ⁇ st_zoo_keepers 0 operation. As will be described later, this operation is responsible for providing a list of Zoo Keepers objects to other objects that request such a list.
  • Figure 3 shows a lower level view of the Zoo Administrator class. Because objects of type zoo administrator have responsibility for overall control of ZAF, the Zoo Administrator class has been designed to include operations that perform tasks oriented towards zoo administration.
  • the class definition includes the following five operations: 5_minute_timer () , add/delete_an ⁇ mal () , add/delete_contance_unI t ( ) , add/delete_zoo_keeper() , and start_zoo_admm0.
  • the start_zoo_adm ⁇ n() operation is responsible for starting ZAF. That is, a user or system administrator will interact with the start_zoo_admm() operation to begin administration of a zoo via ZAF.
  • the start_zoo_admm0 operation has been designed to initiate the 5_m ⁇ nute_t ⁇ mer() operation such that, every five minutes, the 5_m ⁇ nute_t ⁇ mer0 operation instructs the Zoo Keepers objects to go out and check on the zoo animals.
  • the add/delete_zoo_keeper() operation is responsible for interacting with users of ZAF to define additional zoo keepers (i.e., additional Zoo Keepers classes), to add additional zoo keepers (i.e., Zoo Keepers objects), and to remove Zoo Keeper classes and/or objects.
  • additional zoo keepers i.e., additional Zoo Keepers classes
  • additional zoo keepers i.e., Zoo Keepers objects
  • Zoo Keeper classes and/or objects i.e., each of the Zoo Keepers objects is responsible for performing a particular zoo task. Therefore, it is natural that a user of ZAF might well want to add a Zoo Keepers definition and object to handle an additional zoo task or to remove a definition or object that is no longer needed.
  • the ZAF framework designer has provided this flexibility by designing the Zoo Keeper mechanism as an extensible function.
  • the add/delete_an ⁇ mal ⁇ ) operation is responsible for interacting with users to define additional zoo animal classes and objects and also to remove classes and objects that are no longer needed. Again, it is quite natural for a zoo to need to add and remove animals.
  • the add/delete_conta ⁇ nment_un ⁇ t 0 operation is responsible for the definition of new Containment Unit classes and objects and for removal of classes and/or objects that are no longer necessary. Again, the framework designer has provided such flexibility by designing the Animal and Containment Unit mechanisms as extensible functions.
  • the Zoo Keepers class definition has a "uses" relationship with the Animal Registry, Animals, Containment Unit Registry, and Containment Unit classes. Since the value of ZAF is enhanced by allowing ZAF's consumers to customize and extend the Zoo Keepers, Animals, and Containment Unit classes, the ZAF framework designer has designed these classes as extensible functions. However, changing the behavior of the Animals and Containment Unit Registry classes would disrupt the basic operation of ZAF. Therefore, the framework designer has designed these classes to be core functions of ZAF.
  • Figure 4 is a class diagram of the Zoo Keepers class.
  • a class like the Zoo Keepers class, that represents the most generalized/abstract class in a class hierarchy is referred to as the base class of the hierarchy.
  • the ordering of classes in a class hierarchy goes from most general to least general (i.e., from general to specific) .
  • Less general classes e.g., the Feeder class
  • Feeder, Veterinarian, and Temperature Controller are said to be subclasses of the Zoo Keepers class. Inheritance mechanisms will be explored in more detail in the discussion associated with Figure 5.
  • the Zoo Keepers class definition contains a single operation definition, the check_animals 0 operation definition.
  • the reader should also note that the Zoo Keepers class definition is marked as being an abstract class.
  • Abstract classes are not designed to have objects created as their members, but are instead used to define a common interface/protocol for their subclasses.
  • a class is said to be an abstract class when at least one of its operation definitions is a pure virtual operation definition. Pure virtual operation definitions are designed for the sole purpose of defining a common interface for subclass definition of that operation. In other words, the design of the actual behavior (i.e., the data and operations) is left to the subclasses themselves.
  • the Feeder, Veterinarian, and Temperature Controller subclasses define specific implementations of the pure virtual check_an ⁇ mals () operation definition that is contained in the Zoo Keepers class.
  • An operation is marked as a pure virtual operation when it is set equal to 0.
  • Polymorphism is extremely important to 00 framework design because it allows the way in which something is done (called the implementation) to be changed or extended without effecting the mechanisms that depend on the fact that the action is actually performed. In other words, client objects need only understand that certain objects perform certain functions, not how those functions are actually carried out. This is one way in which a properly designed 00 framework can be readily customized and extended to satisfy future requirements.
  • Figure 5 is a class diagram for the class hierarchy of the abstract class Animals. Because the Animals class definition is responsible for representing the characteristics and behavior of zoo animals, the framework designer has designed the abstract class Animals in a way that reflects this responsibility. As shown, the example class definition for Animals includes data definitions feed_freq, location, and temp_range and operation definitions get_temp_range ( ) , feed() , needs_food ( ) , needs__vet_visit 0 , and vet_visit() .
  • the feedO operation definition is designed to perform the actual feeding of the animals (i.e., through specific feeding apparatus, which is not shown) .
  • the feedO operation is a pure virtual operation. Again, this means that the design of the class is such that the actual mechanism that performs the needed function has been left to be defined by the subclasses. Requiring subclass definition is a good design choice in cases like this where objects that are created as members of the subclasses have particularized needs.
  • each type of animal is likely to have need for a particularized feeding apparatus, which not only makes definition of a generic feedO operation difficult, but valueless.
  • the framework designer has explicitly designed the get_temp_range0 operation such that it is not a pure virtual operation definition.
  • get_temp_range() has been generically defined as a default operation. As such, it is considered a virtual operation.
  • Default operations are used to provide generic function to subclasses. The subclasses can simply use the default operations or they can customize or extend the default operations by redefinition. Redefinition of a default operation is called overriding the default operation.
  • FIG. 5 shows that Mammals is a subclass of the class Animals and, as such, the Mammals class inherits all of the characteristics of the Animals class.
  • the Mammals class is also designed as an abstract class, which again means that it has not been designed to have objects created as its members, but has instead been designed to provide a common interface for its subclasses. Subclass Mammals is further subclassed into classes Carnivore and Herbivore.
  • Temp_range is a data definition for the range of temperatures that coincides with that of the specific animal's natural habitat and the get_temp_range0 operation definition is designed to retrieve the temp_range for a specific animal and return it to a requesting client object.
  • Subclass Reptiles contains its own data definition for temp_range and its own definition for the get_temp_range() operation. ZAF has been designed this way to point out that data definitions can be overridden just like operation definitions. Since many reptiles live in desert conditions, where nights can be very cold and days very hot, the default temp_range definition has been overridden m the Reptiles class to include time and temperature information (not explicitly shown on Figure 5) . This is another good design choice because it allows ZAF to treat reptile containment units differently than other containment units by allowing temperature adjustments to be made based on the time of day as well as on the current temperature of the containment unit itself.
  • U Figure 6 is a class diagram showing a lower level view of the Containment Unit class.
  • the containment unit class contains a virtual operation definition adjust_temp 0.
  • the adjust_temp0 definition defines both the interface and mechanism used to actually adjust the temperature m the containment units of the zoo (i.e., via heating and cooling mechanisms that are not shown) .
  • the framework designer must also design how the individual objects interrelate.
  • the objects must interrelate in way that takes advantage of the manner in which they were designed.
  • the way in which the defined operations of an object operate on the data defined for the object is called the object's behavior. While objects may be characterized as autonomous entities, it is still very important that each object exhibit a consistent behavior when interrelating with other objects. Consistent behavior is important because objects depend upon the consistent behavior of other objects so that they themselves can exhibit consistent behavior. In fact, consistent behavior is so important that an object's behavior is often referred to as the contract the object has with the other objects. When an object does not exhibit a consistent behavior, it is said to have violated its contract with the other objects.
  • an operation of one object needs access to the data controlled by a second object, it is considered to be a client of the second object.
  • one of the operations of the client will call or invoke one of the operations of the second object to gam access to the data controlled by that second object.
  • One of the operations of the called second object i.e., a server operation in this case
  • Figure 7 is an object diagram showing how the example objects of ZAF interact to assist zoo personnel m operating the zoo. A detailed analysis of the interaction of all of the ZAF objects is unnecessary for the purposes of this overview. However, the reader should review the following simple control flow to obtain a rudimentary understanding of how objects in an 00 environment interact to solve problems.
  • an object is created to be a member of a particular class. Therefore, the object zelda the Zoo Administrator 706 is an object that is a member (actually, the only member) of the Zoo Administrator class.
  • object Zelda is responsible for overall control of ZAF. All of the Zoo Keeper objects have registered with the Zoo Keeper Register object [object 700] .
  • object Zelda obtains a list of the current zoo keepers by calling the list_zoo_keepers 0 operation [step 1] of the Zoo Keeper Register object.
  • the Zoo Keeper Register object 700 has been created as a member of the Zoo Keeper Register class. For the purposes of illustration, assume that this occurs every five minutes as part of Zelda' s 5_m ⁇ nute_timer() operation.
  • the Zoo Keeper Register object then responds with the zoo keepers list [step 2] .
  • the list of zoo keepers includes Tina the Temperature Checker [object 714], Vmce the Vet. [object 740], and Fred the Animal Feeder [object 752] .
  • Each zoo keeper has been created as a member of the Zoo Keepers class.
  • objects Tina the Temp. Checker, Vmce the vet., and Fred the Feeder are respectively members of the Temperature Controller, Veterinarian, and Feeder subclasses.
  • object Zelda instructs each zoo keeper in the list to check the animals by calling the check_an ⁇ mals 0 operation of each Zoo Keeper object. Only the call to Tina the Temp. Checker is shown, indicated as step 3. It should be noted that object Zelda did not need to understand the types of zoo keepers that were in the zoo keeper list, the number of Zoo Keeper objects in the list, or the specialized characteristics of any one Zoo Keeper object. Object Zelda uses the same interface (i.e., the check_animals 0 operation) to communicate with each Zoo Keeper object. It is then up to the individual Zoo Keeper objects to perform the task for which they have been created.
  • Each Zoo Keeper object performs its assigned task through use of its own check_an ⁇ mals 0 operation.
  • object Tina's check_animals 0 operation retrieves a list of current animals from the Animal Registry object by calling the list_animals () operation [step 4] and then a list of containment units from the Containment Unit Register object by calling the list_cont_un ⁇ ts() operation [step 61.
  • object Tina's check_an ⁇ mals () operation determines that there are only two animals currently registered in the zoo, Sam the Snake [object 728] and Simba the Lion [object 718] .
  • Object Tina's check_animals 0 operation then calls the get_temp_range() operations to get temperature ranges from objects Sam and Simba [steps 8 and 10] .
  • the check_animals 0 operation of object Tina determines which containment units house the respective animals (i.e., Simba and Sam) and then calls the adjust_temp 0 operation of the appropriate containment unit (i.e., Lion Cage 7 in the case of object Simba and Snake Pit 3 in the case of object Sam) to adjust the temperature of the containment units [steps 12 and 13] .
  • the adjust_temp() operation of each containment unit then completes the control flow by proceeding to adjust the temperature in a way that is appropriate for the animals contained in each containment unit.
  • FIG 8 is a block diagram of a computer system 30 constructed in accordance with the present invention.
  • the computer system includes a central processing unit (CPU) 32 that operates in response to operator commands, which it receives from an operator/display interface 34 to which it is connected by a system bus 36.
  • the CPU also communicates over the system bus with a main memory 38.
  • the main memory is illustrated containing a variety of data structures, including application programs 40, objects 42, data 44, and an operating system 46.
  • the main memory 38 is represented as a single entity, but those skilled in the art will O 97/40455 PC17US97/02574
  • main memory can comprise a combination of random access memory (RAM) , hard disk drives, optical disk drives, and other storage devices containing logically segmented storage locations .
  • the operating system 46 preferably supports an object oriented programming environment such as provided, for example, by the C++ programming language.
  • the application programs 40 are invoked, or launched, by a user through the operator/display interface 34.
  • the application programs can be written in a variety of languages, including C++.
  • the objects 42 are programming data structures of an object oriented programming language, such as C++.
  • the computer system 30 also includes a direct access storage device (DASD) interface 48 that is connected to the system bus 36 and also is connected to a DASD 50.
  • DASD direct access storage device
  • the DASD 50 can receive and read computer program products 52 from, for example, integrated circuit chips, and also machine-readable storage devices such as magnetic media disks, on which are recorded program instructions whose execution implements the framework of the present invention.
  • the machine- readable storage devices also can comprise, for example, media such as optical disks.
  • the computer system 30 also includes a network interface 54 that permits communication between the CPU 32 and other computer systems 56 over a network 58.
  • the other computer systems 56 can comprise, for example, computer systems similar in construction to the exemplary computer system 30.
  • the computer system 30 can receive data into the main memory 38 over the network 58 after communication between the computer systems has been established by well-known methods that will be understood by those skilled in the art without further explanation. It is important to note that, while the present invention has been (and will continue to be) described in the context of a fully functional computer system, those skilled in the art will appreciate that the mechanisms of the present invention are capable of being distributed as a program product in a variety of forms, and that the present invention applies equally regardless of tr.e particular type of signal bearing media used to actually carry out the distribution. Examples of signal bearing media include: recordable- type media such as floppy disks and CD ROMs and transmission-type media such as digital and analog communication links.
  • Figure 9 is a flow diagram that represents a typical sequence of processing steps executed by the computer system illustrated in Figure 8 in processing a query following case-based reasoning (CBR) system generation and start-up processing.
  • CBR case-based reasoning
  • start-up processing is performed that includes initialization of data objects for classes called CBR_Session, ControlFlowComponent, DataStoreComponent, PresentationComponent, and ChangeLog.
  • object and class names will be written as words run together with initial capitals. As illustrated by the "ZAF" example described above, names are also written as words connected by an underscore.
  • the objects and classes are described in greater detail below and are instantiated, or built, according to the object oriented programming environment provided by the computer system illustrated in Figure 8.
  • the start-up processing is represented by the flow diagram box numbered 102.
  • the processing represented by the Figure 9 flow diagram box numbered 102 comprises establishing the necessary processing environment.
  • Such processing includes constructing and initializing a CBR_SessionComponent object to control processing m the CBR system and determine the environment required by the user for additional processing, as represented by line 1 of Table 1.
  • the information received from the CBR_SessionComponent guides construction of a ControlFlowComponent object, a DataStoreComponent object, and a PresentationComponent object, as indicated by lines 2-4 of Table 1.
  • a ChangeLog object also is constructed, as represented by line 5, to store system selections and changes by the user.
  • the user can invoke various CBR system options, specifying query processing, building case definitions, or building case instances.
  • CBR system options specifying query processing, building case definitions, or building case instances.
  • the user selects and defines such options in the mam control flow through the user interface, by selecting menu options shown on the user display screen.
  • These exemplary options are specified in lines 6-10 of Table 1.
  • associated object oriented "destruct" operations will be performed at the conclusion of CBR system operations to delete the objects that were constructed and/or initialized.
  • the CBR system changes initiated by the user are recorded in the ChangeLog object, as represented by line 11 of Table 1.
  • the recorded changes comprise processed information that might be required in a future system operation and therefore are saved in a format for retrieval using the DataStoreComponent, as indicated by line 12.
  • the information in the CBR_Sess ⁇ on object also is saved for retrieval at the next system operation, as represented by line 13.
  • users may build case structure definitions, which specify how case instance descriptions will be stored.
  • the data objects comprising each case structure are built, again according to the object oriented programming environment provided by the computer system illustrated in Figure 8.
  • the case structure definition processing includes parsing definitions, which W 97/40455
  • the flow diagram box numbered 104 indicates that the case instance (case base) definitions are received and built next.
  • the case instance objects follow the structure and behaviors specified by the case structure definition. It should be noted, however, that the case instance descriptions need not comprise object oriented data.
  • the case instance definitions are metadata for the case instance objects.
  • the system receives a problem description (query) from a CBR system user and builds a query, which is used to query the case base.
  • the processing of the flow diagram box numbered 108 includes evaluating the query by retrieving the closest matching case (or cases) from the case base. This is described in greater detail below.
  • the CBR system receives the next CBR task, such as a next search query, at the flow diagram box numbered 120.
  • the next task could be, for example, to build additional search queries, case definitions, or case instances.
  • Figure 10 is a flow diagram that represents the processing steps executed by the computer system illustrated in Figure 8 in performing the case structure definition processing of the Figure 9 flow diagram box numbered 104.
  • the case structure definition processing provides the means for a user to define a new case structure for use by the extended framework system and to modify existing case structures.
  • a case structure definition is a definition, or specification, of the attributes, properties, and relationships between the objects of the case base. Thus, the case structure definition informs the CBR system how the data comprising the case base will be organized and stored.
  • the Figure 10 flow diagram box numbered 132 indicates that the first step in the case structure definition processing is to create and/or retrieve and document the case definition.
  • such processing includes constructing a CaseDefinition object. That is, the processing represented by the flow diagram box numbered 132 is to receive input from a user that indicates the case description data structure m terms of the data objects comprising that data structure.
  • the received input can be a previous description or a selection of a previously defined description.
  • Receiving the data structure from the user permits greater flexibility in the details of the extended (CBR) system and does not unduly restrict the framework user.
  • the processing represented by the Figure 10 flow diagram box numbered 132 includes constructing the CaseDefmition object and displaying a user interface screen that permits the framework user to build various elements (comprising data objects) of the CaseDefmition.
  • a CaseSet object is then constructed, which includes a determine 0 method that permits the user to select the CaseSet to be associated with the newly defined CaseDefmition.
  • all existing CaseSet objects are retrieved by the DataStoreComponent object and the list of case sets is displayed to the framework user for selection.
  • the case structure definition processing next includes constructing a ParseDefmition object for the selected CaseSet.
  • the ParseDefmition can be retrieved by the DataStoreComponent object.
  • the user is provided with the option of changing the parsing definition again, before the parsing definition is stored by the DataStoreComponent object. If a user has entered data for an initial problem description for the CaseDefmition object, then parsing methods of the ParseDefmition class are executed to parse the Description object mto searchable components.
  • the option to retrieve a case definition (in contrast to creating one) as indicated in the flow diagram box means that a framework user is free to use previously defined case descriptions, thereby reducing the work involved m creating new CBR applications.
  • the documentation of the case definition can take a variety of forms, depending on the choice of the framework provider. See, for example, the section entitled “Notation” on representing object oriented data structures, located at the end of this Specification.
  • the next case definition processing step in Figure 10, represented by the flow diagram box numbered 134, is to enter and/or update the properties for the case definition from the prior processing step.
  • the framework user is free to specify the case description properties, thereby providing maximum flexibility to the framework user and avoiding undue restriction.
  • the processing represented by the flow diagram box numbered 134 permits the framework user to define Properties class attributes associated with the CaseDefinition object.
  • the Properties define what data is permitted for defining Caselnstance objects that are used with a selected CaseSet.
  • the processing is repeated for each property that is associated with the CaseDefinition object.
  • Figure 11 is a flow diagram that represents processing steps executed by the computer system in performing the case definition properties update processing step. That is. Figure 11 represents the processing executed in the Figure 10 flow diagram box numbered 134.
  • the processing represented by the flow diagram box numbered 152 of Figure 11 includes constructing a PropertyUsage object that permits the framework user to input property information.
  • the processing further includes building a PropertyDefinition object, represented by the flow diagram box numbered 154. This involves the user selecting (using a determine0 method of the PropertyUsage object) which property definition to include.
  • the allowable property definitions for the selected case set are retrieved by the DataStoreComponent and are shown to the user for selection. If a new PropertyDefinition object is being built, appropriate input prompt information is displayed to the user so the information can be received. Such prompting is implemented by the user interface according to the framework user.
  • the properties processing permits the user to add allowable values, which are associated with the PropertyDefinition object being added to the new case definition.
  • allowable values which are associated with the PropertyDefinition object being added to the new case definition.
  • a value can be either a simple value or a compound value, and each case is constructed and displayed for input from the user as the user selects and/or adds to the values.
  • the user defines the allowable weighting.
  • a WeightSet object is built and displayed, comprising chosen weight definitions, represented by the Figure 11 flow diagram box numbered 158.
  • Weight values are later associated with properties of case instances, as described below, and are used by the query engine to select the closest match to the current problem.
  • the weight structure may be received from the framework user to thereby permit greater flexibility in the details of the extended (CBR) system and not unduly restrict the framework user.
  • CBR extended
  • the processing updates the change log (that is, creates ChangeLog objects) to reflect the changes. This is represented by the Figure 11 flow diagram box numbered 160. This completes the properties definition processing.
  • Action Prompt, Tracking, and Index Definitions the next processing step of the case structure definition processing is represented by the flow diagram box numbered 136, which is to enter and/or update action prompt, tracking, and index definitions.
  • the processing represented by the flow diagram box numbered 136 includes constructing an ActionPromptDefmition object, a TrackmgDefmition object, and an IndexDefmition object. The construction of such objects can be accomplished m any order.
  • Each CaseDefinition can have more than one of each of such object elements.
  • the framework user associates action prompt definitions to the case definition.
  • An ActionPromptDefmition object is constructed and displayed to the user to permit the user to input information. Accordingly, a list of permissible definitions for the chosen case set is retrieved and displayed to the user for selection, or the user can decide to build a new ActionPromptDefinition object. Any updates or creations are added to the ChangeLog object. Similar processing would be followed for the creation and/or building of the tracking definitions and index definitions to be added to the case definition.
  • the next processing step is represented by the Figure 10 flow diagram box numbered 138, which indicates that the framework constructs Pattern objects that are associated with the CaseDefmition data object.
  • the processing includes constructing a Pattern data object.
  • the Pattern object is displayed to the framework user to permit the user to input pattern information.
  • a Pattern object consists of one or many single Propertylnstance objects and/or CompoundPropertyValue objects. As these objects are added, each is constructed and displayed to the user for mput of the information.
  • the appropriate objects are built and values are added, comprising either simple or compound values.
  • the next processing step is represented by the Figure 10 flow diagram box numbered 140, which indicates that the framework user updates Parse definitions that are associated with the case set into which the new case definition will be added.
  • the processing includes permitting the user to select a parse definition, such as by displaying a parse definition screen for selection of the parse definition.
  • the selected parse definition is checked for any errors or data structure incompatibilities.
  • changes to the CBR system are recorded in a change log history.
  • the change history can be used, for example, for providing an audit trail, failure recovery, or undo of edit operations.
  • the next processing step is represented by the Figure 10 flow diagram box numbered 142, which indicates that the framework stores the case structure definition.
  • the store processing includes inserting all of the defined objects in the appropriate data store and destructing each one of the objects not needed after storing. The destruction completes the CaseDefinition processing.
  • Figure 12 is a flow diagram that represents the processing steps executed by the computer system of Figure 8 in performing the case instance definition processing of the Figure 9 flow diagram box numbered 106.
  • the case instance definition processing provides the means for a user to define new problem description-solution pairs, called history cases, for inclusion in the case base and to perform maintenance on existing cases.
  • Each problem description-solution pair, or case instance has a data structure specified by the case structure defined in the prior processing step ( Figure 9) . Similar processing would be used to update case instances by first retrieving them and then updating them via the user interface.
  • Figure 12 shows that the first processing step performed in defining case instances is to create a new case instance definition or retrieve an existing definition, as represented by the flow diagram box numbered 172. That is, the framework must determine the data structure of the incoming data.
  • the Caselnstance data object is first constructed according to the object-oriented programming environment of the computer system. After the Caselnstance object is constructed, the user determines the CaseSet to be used. This is accomplished when the user enters data that is used to search for a specific CaseSet from a retrieved list of CaseSet objects to contain the current Caselnstance object.
  • a CaseSet object collects Caselnstances, which conform to the structure of the case definitions associated with the CaseSet object. This can be used to logically separate cases for search purposes.
  • the next step in the processing of the flow diagram box numbered 172 is for the appropriate ParseDefinition objects to be retrieved.
  • This processing permits the user to select the type of parsing that will be used.
  • the user may select tri-string or token parsing either individually or together, as desired, to parse the input data (problem description or query) .
  • the tri-string parse will break down the input data in successive three-character groups. This type of parsing permits some so-called "fuzzy" matching and tolerance for incorrectly spelled words in the input data.
  • the token parse breaks down each word in the input data into a "base" or token word, essentially stripping predetermined prefix and suffix combinations from the individual words. Common synonyms also can be handled by the token parse.
  • the next processing step is to select the case definition that will control the structure of the new case insta- * •.
  • the "select Case Definition" processing of the i JW diagr.. box numbered 174 includes interactions necessary ror the sel .ion of a CaseDefinition object and the assignment of property and value information to the defined case.
  • the stored CaseDefinition objects are first retrieved to permit the user to select which CaseDefinition object should be used.
  • the objects necessary for populating the CaseDefinition objects with the proper data attributes are constructed.
  • the attributes include objects called PropertyDefinition, ActionPrompt, IndexDefinition, TrackingDefinition, and Incident, which are created and retrieved by the DataStoreComponent. These are described further below.
  • the next processing step is to create a Propertylnstance data object.
  • the "create Property instance” processing creates the Propertylnstance data objects for the previously selected Caselnstance based on either the data from an Incident object or by creating new Propertylnstance objects from user input data.
  • a list of Incident objects may be first retrieved to permit selection of a stored Incident object as the source for building a Caselnstance object.
  • the DataStoreComponent is the mechanism through which a user can retrieve stored data such as for selection of a stored Incident object.
  • a "convert-to-case” method identifies all known Property Instance/Value pairs from the Incident and creates objects for such pairs for the newly selected Caselnstance. These Propertylnstance and Value objects can then be modified if necessary for the Caselnstance object. Additional Propertylnstance objects can then be selected from a list of all PropertyDefinition objects that are valid for the current CaseDefinition object. Again, selection of stored objects will be accomplished through the DataStoreComponent. The user may access additional PropertyDefinition objects if necessary, using the DataStoreComponent. Similarly, new PropertyDefinition objects can be stored into persistent storage using the DataStoreComponent. Lastly, the flow diagram box 176 processing finishes with update of the ChangeLog to reflect all changes made by the user.
  • the next processing step is to build Value objects for the Propertylnstance objects and assign weights to the properties of those Value objects.
  • the "build Values" processing permits building the Value objects associated with the Propertylnstance objects, constructing the Weightlnstance objects, and inferring additional PatternValue objects.
  • the values allowed for the current selected CaseDefinition object are listed for selection by the user. This controls the structure and values of property instances, and indicates if users can also add new properties to the case instance and case definition. If the user decides to add a new Value object, then the user selects between the SimpleValue and CompoundValue object types.
  • a SimpleValue is a unitary value type, while a CompoundValue is a combination of one or more SimpleValues. If value objects are added or changed, they are reflected in the ChangeLog.
  • the WeightDefmition objects are retrieved from storage (from the appropriate data objects, using the DataStoreComponent) for user selection. If the user creates a new WeightDefmition object, the new object is stored and the ChangeLog is updated. After the new Propertylnstance, Value, and weight objects are created or selected, the processing to infer Value Pattern objects will enhance the Caselnstance object with additional Propertylnstance objects and/or Value objects that can be determined based on the case definition structure and constraints. In this way, the infer process checks the query against further constraints that might be possible to extract from the case definition This completes the processing of the flow diagram box numbered 178.
  • the CBR system checks to determine if additional property instances are needed. That is, an "infer" operation will determine if the values and weights provide sufficient constraints on the defined case instances to quickly lead to a solution set. For example, if case instance properties that are important (as indicated by ranking data) have not been specified by the user, the system will attempt to enhance the case instance definition by repeating the property instance and value/weight building steps represented by the flow diagram boxes numbered 176 and 178. Thus, if needed, such constraint processing is repeated by looping back (a negative outcome from the decision box 179) .
  • the framework user can enter and/or update the values and weights for each property associated with a case instance This involves storing the case instances mto the case base. It should be appreciated that loading the case base need not be done one by one for each case instance. Rather, a data file can be prepared and stored at an appropriate computer data base location. That is, the case instances can be loaded in their entirety. The data file, comprising multiple case instance objects or indexes, can be retrieved using the DataStoreComponent and loaded. In this way, the "build values" processing need not be repeated at every invocation of the CBR system.
  • the last processing steps of the property instance processing are for entering and/or updating the weight values for each of the properties associated with the case instances.
  • the weight values are applied via the weight structure to assign rank values to the problem descriptions in the case base and thereby permit the query engine to identify and select the case history instance that most closely matches the current problem.
  • ActionPrompt objects are first constructed and then are retrieved to permit user selection of existing ActionPrompt objects or user creation of new ActionPrompt objects. If new objects are created, they are inserted into the appropriate DataStoreComponent objects of the data storage and the ChangeLog object is updated to reflect the addition.
  • the next processing step is to create refresh indexes and store the Caselnstance.
  • the box 182 processing includes refreshing the IndexDefmition objects by constructing Index objects and IndexEntry objects.
  • the IndexDefmition objects must be refreshed whenever the referenced items are changed or new items added.
  • each element of the newly created Caselnstance objects are stored in the data base with an insert operation.
  • the processing of the flow diagram box 182 stores the Propertylnstance and associated Value and Weightlnstance objects.
  • the flow diagram box 182 processing also stores the ActionPromptInstance, Indexlnstance, and IndexEntrylnstance objects for each Caselnstance m the data base. Finally, the "build Case Instance” processing of box 182 includes destructmg each one of the O 97/40455 PC17US97/02574
  • Figure 13 is a flow diagram that represents the processing steps executed by the computer system illustrated in Figure 8 in operating the query engine to generate a solution to a received current problem. That is, Figure 13 represents the processing carried out in the Figure 9 flow diagram box numbered 108 that specifies the step of querying the case base, including evaluating the CBR query by retrieving the case instance set that most closely matches the current problem.
  • the first step in matching the closest case instance set is to obtain the query information from the CBR system user and build a CBR query on the case instances.
  • the user query is represented by a CBR Query object.
  • the system constructs a case set that contains the case instances (the data descriptions) against which a received query will be searched. This step is represented by the flow diagram box numbered 194.
  • the user After the user provides the query and the query is transformed into a query object, the user builds a search pattern, which further defines and specifies what the query is searching for.
  • the search pattern for example, can specify sets of cases with which query matches will be tested.
  • the search pattern processing is represented by the Figure 9 flow diagram box numbered 196.
  • the next processing step is to search the case base and retrieve the case history instances with property values that match the property values of the current problem, in accordance with a parse definition defined previously.
  • the flow diagram box numbered 200 indicates that the next processing step is to use match scoring to score each of the retrieved cases and thereby determine the closest matches to the current problem.
  • the match score is a measure of the number of property values shared in common between a query and a case instance. In this way, the match score indicates the similarity of the query to a case instance description.
  • the system checks for a solution by calculating an evaluation score. If the score indicates a sufficiently close match, then the retrieved case or cases are designated a solution or solutions. If there is one or more solution, an affirmative outcome at the decision box 202, then the next processing step is for the CBR system to generate a solution presentation and provide it to the user, who then can continue with further actions and processing, if desired. This step is indicated by the flow diagram box numbered 204.
  • the PresentationComponent is the mechanism through which data (such as the solution cases) is provided to the user.
  • the solution can be provided, for example, in the form of one or more screen displays of the solution cases.
  • the further user actions can include submitting a new query, saving the current query, or saving the query as an incident.
  • the CBR system then updates the case base, if appropriate, as indicated by the flow diagram box numbered 206.
  • the DataStoreComponent is the mechanism through which data is stored or retrieved from persistent storage of the system, such as DASD files. This completes the CBR system processing for the received query.
  • the CBR system ranks the properties by computing a property values score to guide the user in providing additional information.
  • the user may execute prompts to aid in this.
  • This processing is represented by the flow diagram box numbered 208.
  • the property values score permits the user to determine which additional information would be of the most benefit in finding a solution.
  • the PresentationComponent is the mechanism through which additional priority values are obtained from the user.
  • Ranking of the properties is carried out to determine the relative importance of properties specified in the case structure definitions so as to identify the properties that contribute the most to solution scoring and therefore move the system most rapidly to finding a solution.
  • the processing of the ranking step (box 208) includes system prompting that asks the user to provide additional property values.
  • processing returns to the flow diagram box numbered 196 to modify the search pattern, if desired.
  • the steps represented by the boxes numbered 196, 198, and 200 can be repeated as necessary until a query solution is identified.
  • case based reasoning systems carry out query evaluation match scoring that will effectively penalize (or fail to penalize) attributes or categories that are unspecified in either a query or in a case instance.
  • the system user has no control over such processing, as it is part of the evaluation scoring methodology selected by the system designer.
  • the preferred embodiment permits the user to control whether or not cases and search queries with unspecified properties will be "penalized” by providing dynamic case property weighting and scaled query weights to affect the evaluation score.
  • Case property weighting permits the user to assign differential weights to specified properties of cases to emphasize or minimize particular properties of cases.
  • Scaled query weights permit a user to control the extent to which properties specified in a query are used in scoring.
  • dynamic weighting can be implemented independently of the object oriented aspects of the preferred embodiment.
  • the description of dynamic weighting in the preferred embodiment will assume an object oriented implementation, in keeping with the design of the preferred embodiment, the features of the dynamic weighting and the processing described further below can be implemented in a procedural programming environment. Those skilled in the art will be able to readily construct a procedural implementation of the dynamic weighting based on the following explanation.
  • Case instances are stored as sets of property/value pairs and each property is assigned an importance rank value relative to the other properties of the case when the case is stored. That is, value ranking is assigned at the time the case is added to the case base.
  • the rank values are normalized, so that unspecified properties in a query -hat ordinarily would result in a lower match score instead c > e compared in relative terms. Normalizing the values - _ ⁇ ..s penalizing less precisely defined cases in the data base, as explained below.
  • case-based reasoning systems use weighted matching techniques to find the cases in a history (case instance) data base that are the most similar, and therefore the closest match, to a set of specified search criteria.
  • This technique penalizes history cases in the data base that are more completely defined than others, because for many queries a large percentage of the properties will be unspecified. For example, a query might specify a set of five different properties of a case instance (the total number of properties available to define a case instance is specified by the case structure definition) .
  • a case in the data base does not have data concerning one of the properties
  • the evaluation score for that case can be reduced relative to other history cases that have the property defined because a simple summation of property-value multiplication products will result m a zero for the missing property.
  • the score for the case with the unspecified property might be lower than another completely specified case, even if the completely specified case is not as close a match on the four remaining properties. Thus, it might be desirable to avoid penalizing extra case properties.
  • weights for that property are normalized across the weights of the other properties.
  • weighted matching techniques also penalize a history case if properties are specified in the query that are not defined for the case.
  • the users making queries typically have no control over the manner in which unspecified properties are handled.
  • Some systems attempt to address the problem by requiring those who define cases to provide weights to be associated with each property to allow for unmatched property values, matched property values, or unspecified properties Such weights are static and cannot be adjusted for specific searches. This approach is not satisfactory, because the weights are static, cannot be changed by the user, and make case definition complicated.
  • the present invention permits dynamic weighting so that each property of a history case is assigned an importance ranking relative to the other properties of the case when the case is stored mto the case base.
  • the weights are then accounted for m the match scoring evaluation processing of the query in two ways. First, if the query is one in which unspecified properties should result m lower scoring of a history case, then a standard normalization of the property rankings is used as the weighting factor for each property in the case definition. Second, if unspecified properties should not penalize scoring, then only the history case properties specified in the query will be normalized in accordance with their ranking and computed as the case is scored. This permits properties to be indicated as "mandatory" for scoring by simply making the relative ranking of the property sufficiently large that the solution case set threshold is not reached without that property being present in the history case.
  • match scoring in accordance with the invention is performed according to the following formula:
  • MS is the computed match score for a case; qf is a query weighting usage factor; dnqw is a dynamically normalized query weight for a property; dnqw is the sum of the normalized query weight set
  • case instance property values match query pattern property values
  • cf is a case weighting usage factor
  • dncw is a dynamically normalized case weight for a property
  • dncw is the sum of the normalized case weight values
  • Each query includes a scaling factor that indicates the relative importance of query weights as compared to case weights as the match scores are calculated.
  • a case usage factor (cf) of 1 and query usage factor (qf) of 0 indicates that query weights are to be ignored.
  • a query usage factor (qf) of 1 where the case usage factor (cf) is 0 indicates that case weights should be ignored. Combinations of values between these extremes permit scaled use of O 7/40
  • the case factors can be received in an interactive manner from the display and keyboard input devices illustrated in Figure 8 or can be received as larger data transfers, such as a data file from the direct access storage device or network shown.
  • the query factors can be received at the time the query is received.
  • the sum of the query weighting usage factor and the case weighting usage factor will be 1, so that:
  • the query weighting and case weighting are normalized, so that the sum of all the query weights (and case weights) , without regard to matching against case instance property values, will be 1:
  • the technique described above can be extended so that a different usage factor is received for each property.
  • Such property usage factors provide users with greater control over the relative importance of properties when cases are scored. That is, the user is not forced to accept the decision of the case base developer as to the relative importance of the properties.
  • the property usage factors are employed by multiplying the usage factor for each property by the weight factor for each property. It also should be noted that techniques for matching and scoring multiple value properties can be integrated with the multiple property usage factor described above. In such a circumstance, a property match value is first computed and then is multiplied by the weighting and usage factors to derive the match score.
  • Testl 1 A Testl 1 .1
  • Example B illustrates a query in which unspecified properties are penalized:
  • Example B Penalize Both Extra Query And Extra Case Properties.
  • Example B illustrates dynamic adjustment of case weights so that either properties specified in the query but not defined in a history case, or properties specified in a history case but not in the query, result in a lower evaluation match score.
  • this performance is achieved by including the query specified relative ranking for Property E in the dynamic calculation of the weights. Note that, because only case wights are used in the scoring, no adjustment is made to the query weights to allow for the extra property specified in Case 3. Thus, the scoring for Case 3 is effectively penalized for the unspecified property F by treating that property as an unmatched value.
  • Example C below is an example of the case where no penalty is associated with extra properties in either the query or in history cases:
  • Example C illustrates dynamic adjustment of case weights so properties specified in the query but not present in a history case does not result in a lower evaluation match score. This performance is achieved ignoring an unspecified property when the normalized weights are calculated. Thus, in Case 3, the unspecified Property F is ignored in the match scoring shown at the bottom of the Example C text. Similarly, because query weights are used for scoring, such weights must be dynamically adjusted when comparing against Case 2 by not including the unspecified Property E in the normalization calculation.
  • Example D is the case where a penalty is associated with extra properties in both the query and in a history case:
  • Testl 1 .1 .111 1 A Testl 1 .1
  • Example D illustrates dynamic adjustment of case weights so that either properties specified in the query but not defined in a history case, or properties specified in a history case but not in the query, result in a lower evaluation match score.
  • this performance is achieved by including the query-specified relative ranking for Property E in the dynamic calculation of the weights for Case 2. It should be noted that, because the query weights are included in the match scoring, the query weights must be adjusted for the extra property in Case 3. This is done by including the case-specifled relative ranking for Property F m the dynamic calculation of the weights.
  • Dynamic weighting and calculation of match scores can potentially increase the time needed to evaluate a query. Such slowed processing can be minimized if property weight values are retained and if the structure of a present case is checked agamst previously evaluated cases. If two cases are similar in structure, then the previous property weight values can be used, making it unnecessary to calculate the property weight values again for each case.
  • dynamic weight processing can be made more efficient by calculating a "delta" factor using either the weighting factors or relative ranking data, rather than dynamically adjusting the property weighting factors for each match scoring. The delta factor is expressed in terms of ranking values and is defined by.
  • the match score is calculated using the delta factor by first calculating a raw match score without dynamic adjustments (property weights can be pre-calculated at definition time) . Next, the calculated raw score is multiplied by the delta factor to adjust for dynamic property weighting. Such an approach avoids the need to recalculate the property weighting factors as each match is scored. If scaled query weighting is also being used, then a delta factor is calculated for both the query and case terms m the final match score.
  • the ranking values are scalar numbers that specify a relative ranking (that is, 1, 2, 3,...) .
  • the rankmg values can be raw ranking multiplier data values comprising weight factors. If weight factors are used instead of scalar ranking numbers, then the delta factor is calculated according to the equation above with the ranking terms replaced with weight factors.
  • Testl 1 A Testl 1 .1
  • Example F In Example F below, a penalty is associated with both query and case properties that are unspecified.
  • the delta factor is calculated to have a value of 0.909, as follows:
  • Testl 1 A Testl 1 .1 B Test2 3 B Test2 2 .2
  • the present invention provides an object oriented framework.
  • the operation of the CBR system developed using the framework can be understood with reference to the procedural flow diagrams of Figures 9, 10, 11, 12, and 13.
  • the framework objects, their relationships, and their processing also can be precisely and completely described in terms of object oriented programming representations. Therefore, the framework of the preferred embodiment will next be described in terms of category diagrams and object diagrams similar to those described above in conjunction with Figures 1 through 7 for the zoo keeper example.
  • Figure 14 is a category diagram for the framework implemented in the computer system of Figure 8.
  • the categories illustrated in Figure 14 correspond to object oriented programming (OOP) objects that encapsulate data attributes and behaviors, and are stored in the memory 38 illustrated in the block diagram of Figure 8.
  • OOP object oriented programming
  • Such objects can be implemented, for example, in a computer system operating environment that supports the C++ programming language.
  • the framework includes five primary components, or mechanisms, that are indicated as being "core" mechanisms and therefore will not change with framework extensions. These core mechanisms are shown as comprising a Query Engine mechanism, a Case Structure Definition mechanism, a Parse Definition mechanism, a Case History Instance Definition mechanism, and a Control Flow Engine mechanism.
  • the Query Engine mechanism receives the user query and applies it to the case base.
  • the Case Structure Definition mechanism contains the data structure that defines the way in which problem description-solution pairs are recorded.
  • the Parse Definition mechanism contains the parsing rule set for breaking down queries into searchable components.
  • the Case History Instance Definition mechanism contains the problem description-solution pairs that comprise the case base (the case instances) , which have a structure specified by the case structure definition.
  • the Control Flow Engine mechanism executes control logic that implements the order of processing desired by a user. That is, the CBR system user can specify an Application Control Flow object to provide a desired order and manner of executing the CBR system, and the Control Flow Engine will see to it that the specified Application Control Flow is implemented.
  • the framework also includes seven extensible mechanisms. Being extensible, the objects, attributes, and behaviors comprising such mechanisms will be freely modified by the framework user.
  • the extensible mechanisms comprise an Application Control Flow mechanism, a Match Scoring Weighting mechanism, a Property Scoring Weighting mechanism, a Value Operations mechanism, a User Interface mechanism, which also will be referred to generally as the user interface, and a Case Definitions History Instances mechanism.
  • the Application Control Flow mechanism determines how a user can navigate through the CBR system features, in conjunction with execution by the Control Flow Engine.
  • the Match Scoring Weighting mechanism specifies how the Query Engine mechanism will score items recorded in the case base against a received query.
  • the Property Scoring Weighting mechanism interprets the relative importance of properties that will lead to a solution if input by the user.
  • the Value Operations mechanism assigns received object attributes and values to the corresponding data structures.
  • the Case Definitions History Instances mechanism contains the problem description-solution pairs; that is, the case base. This mechanism is extensible because it is populated according to the particular case base being used by the framework user. Finally, the user interface maintains input and output flow to and from the CBR system user.
  • FIG. 15 is a class diagram that illustrates the characteristics of the class called CBR Session.
  • Each use of the framework causes instantiation of a CBR Session object.
  • the class cloud for CBR Session indicates that it is "from" the User Interface Mechanism, meaning that the CBR Session class is part of the user interface category.
  • the "C” in the class cloud indicates that it is a core class whose objects and object relationships cannot be changed by the user.
  • the class cloud also shows that the CBR Session class includes operations or methods called initializeDataStore () , initializePresentation () , initializeControlFlowO , and execute0.
  • the method called initializeDataStore () instantiates the objects that are necessary for further CBR system processing.
  • the initializePresentationO method performs similar functions for the presentation screens that will be displayed to the user.
  • the initializeControlFlowO method instantiates the ControlFlowComponent objects necessary for the control flow class.
  • the execute0 method manages processing for a single CBR Session of the system.
  • Figure 15 shows that the CBR Session class has a "uses" relationship with classes called DataStoreComponent, PresentationComponent, and ControlFlowComponent. That is, an object of the CBR Session class uses objects of the data store class, presentation class, and the control flow class.
  • Figure 15 shows that the CBR Session class has an association relationship with the ChangeLog class.
  • An association relationship indicates that objects of the ChangeLog class record or track the session- related objects that are modified during the execution of the CBR Session class.
  • the association relationship includes an indication of cardinality, wherein a single CBR Session object will have an association with multiple ChangeLog objects.
  • Figure 16 shows the object class CBR Base, indicated as being from the User Interface Mechanism, with an inheritance relationship to multiple classes.
  • the CBR Base objects serve as a super class and thereby define the structure and behavior of the inheriting subclass.
  • the inheriting subclasses can further define their own specific methods or attributes in addition to those specified by the super class.
  • the subclasses illustrated in Figure 16 include tho; -i of CaseSet, QueryParameter, CBRQuery, Pattern, Weightlnstance, Propertylnstance, Caselnstance, WeightSet, WeightDefinition, ActionPromptDefinition, PropertyDefinition, CaseDefinition, ActionPromptlnstance, IndexDefinition, and ParseDefinition.
  • Figure 17 is a class diagram that illustrates the classes related to the case structure definition.
  • the CaseDefinition class is shown having "has" relationships with multiple classes.
  • the CaseDefinition class represents an aggregate class that contains objects from the classes TrackingDefinition, IndexDefinition, Pattern, ActionPromptDefinition, PropertyUsage, and CaseSet. Cardinality is indicated to show that a single CaseDefinition object contains many of the latter objects, with the exception of the CaseSet relationship. Many CaseDefinition objects will be contained in a single CaseSet, or case base, and therefore the cardinality indicated is for multiple CaseDefinition objects and a single CaseSet object.
  • the other class relationships shown in Figure 17, such as the relationship of Value to Parse Definition and Property Usage classes, will be described below.
  • Figure 18 illustrates the CaseDefinition class in greater detail and shows that it includes many methods.
  • the CaseDefinition class methods include undoO, which deletes a CaseDefinition or a portion of a CaseDefinition, auditCaselnstances 0 , which generates an audit of one or more Caselnstance objects associated with the corresponding CaseDefinition object, and auditPropertyUsage0 , which generates an audit of properties for a Caselnstance object in relation to a CaseDefinition object.
  • the CaseDefinition methods further include inferPatternValue 0 , which infers new data to add values to a pattern object based on constraint patterns associated with the definition; showPropertyDefinitions 0 , which retrieves and displays PropertyDefinition objects that currently exist either within the corresponding CaseDefinition or within all of the instantiated CaseDefinition objects; and addPropertyDefinition0 , which adds new PropertyDefinition objects associated with a current CaseDefinition.
  • inferPatternValue 0 which infers new data to add values to a pattern object based on constraint patterns associated with the definition
  • showPropertyDefinitions 0 which retrieves and displays PropertyDefinition objects that currently exist either within the corresponding CaseDefinition or within all of the instantiated CaseDefinition objects
  • addPropertyDefinition0 which adds new PropertyDefinition objects associated with a current CaseDefinition.
  • CaseDef inition methods include showAllowablePropertyValues () , which retrieves and displays allowable PropertyValues for all properties currently existing in a CaseDefinition object or in all of the CaseDefinition objects of a CaseSet class. Additional methods include addAllowablePropertyValue() , which adds property values to a CaseDefinition, and showActionPromptDefinitions 0 , which retrieves and displays ActionPromptDefinitions that exist for a particular CaseDefinition class.
  • Additional CaseDefinition methods include addActionPromptDefinition() , which adds new ActionPromptDefinitions associated with a current CaseDefinition class, showlndexDefinitions () , which retrieves and displays IndexDefinitions, and addlndexDefinition0 , which adds new IndexDefinitions associated with a current CaseDefinition.
  • Other methods are showAllowableValuePatterns 0 , which retrieves and displays AllowableValuePatterns that are current for a CaseDefinition, and addAllowableValuePattemO , which adds a new AllowableValuePattern associated with a current CaseDefinition.
  • CaseDefinition class also includes methods called auditValuePatterns0 , which generates an audit of the property value combinations with respect to allowable patterns for a CaseDefinition, useDefinition0 , which determines the suitability (that is, correctness) of a CaseDefinition, determine 0 , which retrieves and shows or displays a list of CaseDefinitions to permit selection of a desired CaseDefinition, store 0 , which stores all CaseDefinition objects into the database of the CBR system, showTrackingDefinitions () , which retrieves and displays tracking definitions to permit user selection, and refreshlndexes 0 , which updates indexes when new case objects are added to the case base.
  • auditValuePatterns0 which generates an audit of the property value combinations with respect to allowable patterns for a CaseDefinition
  • useDefinition0 which determines the suitability (that is, correctness) of a CaseDefinition
  • determine 0 which retrieves and shows or displays a list of CaseDe
  • Figure 19 shows the objects and methods of the various classes of which the CaseDefinition class is comprised.
  • the PropertyUsage class includes a method called validProperty0 , which ensures that a property selected by a user to be included in a query evaluation is valid for the related CaseDefinition.
  • the PropertyUsage class also includes a method called auditPropertyValue() , which ensures that the property value selected for audit is valid for the property in the CaseDefinition.
  • the CBR system user is provided with an error warning through the user interface.
  • the CBR system user will be alerted by a warning message on a screen display device.
  • Figure 19 shows that the TrackingDefinition class includes a method called dolncrement 0. This method increments a count that indicates when a specified condition is satisfied. That is, a particular Caselnstance property might be the subject of a tracking definition so that every Caselnstance object having the specified property being tracked results in the TrackingDefinition object count being incremented.
  • IndexDefinition which includes a method called doIncludeO .
  • the doIncludeO method determines if a property should be included in an Index.
  • Another IndexDefinition method is called DoCoverO , which determines if an IndexDefinition will be useful by containing the output of the doIncludeO method if a property is indicated as to be included.
  • the last IndexDefinition method is called refreshO, which updates a case definition index when new indexes are added to a CaseDefinition object.
  • Figure 19 also shows the ActionPromptDefinition class having methods called determine 0 and auditValueO .
  • the determine () method shows the user the action prompts that have been defined. Action prompts are specified by a user to initiate system actions desired by the user.
  • the auditValueO method compares an ActionPromptlnstance object against the set of ActionPromptDefinition objects for the CaseDefinition and confirms their validity.
  • Figure 20 shows the methods of the various objects related to the PropertyDefinition class.
  • the PropertyDefinition class is an aggregate class made up of members comprising a class called Value, a class called ActionPromptlnstance, and a class called WeightSet.
  • the WeightSet class is shown being an aggregate class made-up of WeightDefinition class members.
  • the relationships are further specified by the indicated cardinality relationships.
  • the PropertyUsage class is shown in Figure 20 having a "has" relationship with a class called Value and the PropertyDefinition class.
  • the Value class is indicated as being an abstract base class by the upper-case block "A" within a triangle.
  • An abstract class is a class for which no instances may be created, the abstract class being a class of classes.
  • the aggregate relationship illustrated in Figure 20 for the PropertyUsage class indicates that the PropertyUsage class comprises an aggregate class that is made up of Value classes and PropertyDefinition classes.
  • the relationships shown in Figure 20 are further specified by the cardinality provisions indicated.
  • Figure 20 further shows that the ActionPromptlnstance class includes two methods, one called determine 0 , which retrieves and shows to the user a list of ActionPromptlnstances to permit selection by the user of a desired ActionPromptlnstance, and executeO, which verifies a user's prompt level approval and executes the associated action that was prompted according to the type and selection parameter received from the user.
  • the PropertyDefinition class includes methods called auditValueO, determine 0 , showAllowableValues 0 , andbuildValueO . The auditValueO method generates an audit of the input value received against the allowable values for the associated PropertyDefinition.
  • the determine 0 method checks a Value specified by a user against the list of allowable Values for the PropertyDefinition and provides an error indication if an invalid selection is made by the user.
  • the showAllowableValues 0 method displays to the user the Value objects that can be assumed by the PropertyDefinition.
  • the buildValue0 method is the means by which the user can add to, delete, or otherwise change the Values that can be assumed by the PropertyDefinition.
  • Figure 20 shows that the WeightDefinition class also includes an auditValueO method, which performs a function for the WeightDefinition similar to that performed by the auditValueO method for the PropertyDefinition, and determine 0 , which performs a function for WeightDefinition similar to that performed by the determine 0 method for the PropertyDefinition.
  • the WeightSet class is shown in Figure 20 as having an auditSetValues O method, which generates an audit of an input value or values against the allowable values for the associated defined WeightDefinition in the WeightSet corresponding to the PropertyDefinition.
  • Figure 21 is a class diagram that illustrates the objects that make up the CaseSet class of the framework.
  • Figure 21 shows that the CaseSet class is an aggregate class having members from the ChangeLog class and the ParseDefinition class.
  • the CaseSet class partitions case definitions, instances, and queries into sets and permits retention of information common to the group.
  • the CaseSet class includes a number of "show" methods that result in the retrieval and display of named attributes for associated CaseDefinition objects. These show methods include showCaseDefs0 , which retrieves and displays the case definition objects that currently exist within the associated CaseSet, and showPropertyDefs0 , which retrieves and displays property definitions that currently exist with all of the CaseDefinitions for the associated CaseSet.
  • CaseSet 0 Another CaseSet method is called useSet 0 , which calculates the suitability of a particular CaseSet for a current incident or query.
  • the CaseSet class also includes a method called resetTrackingCounters 0 , which resets or initializes counters that indicate case set processing, and determine 0 , which retrieves all CaseSet instances for the CaseDefinition being processed.
  • Figure 21 also shows the ChangeLog class, which includes methods called cleanup 0 , reduceChanges 0 , and add0.
  • the ChangeLog class records changes that have been made to either transitory or persistent class data.
  • the ChangeLog is used for audit trail, failure recovery, and "undo" of edit operations.
  • the cleanup 0 method maintains a ChangeLog for a selected CaseSet based log retention attributes, which typically will be set by the framework designer.
  • the reduceChanges 0 method reduces a set of ChangeLog entries that are retrieved from a trace of all the steps taken for a particular CaseSet through last previously taken step, identified for writing into the ChangeLog class. This step occurs at the end of the CBR session.
  • the addO method creates an instantiation of the ChangeLog class.
  • Figure 21 also shows the
  • ParseDefinition class which records the data needed for parsing of case descriptions using the tri-string and token parsing methods.
  • the ParseDefinition class includes methods called tri-stringParse 0 , tokenParseO, findWords 0 , findTokensO, and checkused() .
  • the tri- stringParseO method parses the associated text into all permutations of three character groups.
  • the tokenParseO method locates and identifies words as tokens in the CBR data base, that is, the tokenParseO method replaces a string of words with tokens.
  • the findWords 0 method of the ParseDefinition class finds all words associated with a particular token
  • the findTokensO method locates tokens for all words resulting from a token parse
  • the checkUsedO method checks to determine where a token has been applied within a case description.
  • tokens can be used to equate synonyms or to translate words into other languages .
  • Figure 22 is a class diagram that illustrates the classes related to the Caselnstance class that contains objects related to the case history instance definition.
  • the Caselnstance class is shown having "has" relationships with multiple classes.
  • the Caselnstance class represents an aggregate class that contains objects from the classes called Trackinglnstance, ActionPromptlnstance, and IndexInstance.
  • Figure 22 shows that a CaseSet is comprised of Case objects, whose structure and attributes are specified by Caselnstance objects and Incident objects.
  • Figure 22 further shows that a Case is made up of many Propertylnstance objects, which in turn are an aggregate of Weightlnstance objects and Value objects.
  • Figure 22 shows that the Value class is made up of SimpleValue objects and CompoundValue objects.
  • Figure 23 is a class diagram that illustrates the Case class and related objects and their methods.
  • Figure 23 shows that the Case class includes two methods, called undo() and store 0.
  • the Case class is indicated as an abstract base class, which again means that no instantiations of this class will exist.
  • the Case class provides the common base for Caselnstances, which are the data that are examined by queries, or for incidences, which are recorded but are not fully populated for examination by queries.
  • the Case class is illustrated as having multiple Propertylnstance classes.
  • the CaseSet is comprised of many Case classes.
  • Figure 23 also shows that the classes called Caselnstance and incident inherit from the Case class and therefore their structure and behavior must conform to that specified by the Case class.
  • the undoO method of the Case class is an undo of the last set of changes received from the framework user.
  • the store 0 method stores all Caselnstance or Incident objects into the CBR data base.
  • the Caselnstance contains a history case or problem description-solution. If a Caselnstance object is active, meaning that it has been instantiated, then it can be returned in response to a query.
  • the Caselnstance because it inherits from the Case, must conform to the structure and rules of the associated CaseDefinition. The meihods of the Caselnstance are described further below in relation to the Figure 25 description.
  • the Incident class records a set of property values that have not yet been formalized into a history case. The information in an Incident is not available via a query.
  • the showKnownO method of the Incident class finds and displays Caselnstances that refer to the associated incident.
  • the determine O method retrieves and displays incidents.
  • the buildFromQueryO method builds an incident by transforming query data, the convertToCase 0 builds a case from properties and data that are contained m the associated Incident, and the store 0 method stores all Incident objects mto the CBR data base.
  • the Propertylnstance class is an instance of a property that is associated with a Caselnstance object.
  • the structure and behavior of the Propertylnstance objects conform to the PropertyDefmition of the CBR base (see Figure 16) .
  • Figure 23 shows that the Propertylnstance class has a method called compareValue0 , which compares a property input to the collection of stored cases m the CBR data base.
  • the showValue 0 method retrieves and displays a property value and the buildValue0 method assembles a Propertylnstance value structure and associates it with the property collection class.
  • the Propertylnstance class includes a determine 0 method that retrieves and shows a list of Propertylnstances from which the user will make a selection.
  • Figure 23 shows that the Propertylnstance class includes objects of a Weightlnstance class and of a Value class, the latter comprising an abstract base class.
  • Figure 24 illustrates the object structure of the Value class.
  • the Value class as noted above, is an abstract base class and provides a common base for SimpleValues and Boolean combinations of Values.
  • the SimpleValue class is a collection of objects that simply contain data values, which also can comprise text from a problem description-solution pair or query.
  • the CompoundValue class is a collection of objects that groups SimpleValues mto Boolean combinations of SimpleValues or other CompoundValues.
  • the CompoundValue class for example, can implement Boolean operations such as AND, OR, and exclusive-or (XOR) .
  • the CompoundValue includes a collection of left terms and right terms, as indicated in Figure 24, which are joined by the particular Boolean operator.
  • Figure 25 illustrates the objects that make up the case instance class of the framework and related classes.
  • Figure 25 shows the Caselnstance class with a "has" relationship to the classes called Trackmglnstance, ActionPromptlnstance, and Indexlnstance.
  • the Caselnstance class is shown having methods called showRelated0 , which retrieves and displays related cases, showReference 0 , which retrieves and displays referenced incident objects, compareDesc ⁇ ptionO , which compares a received description against descriptions in the case base, and store 0 , which stores all case instance objects associated with the class mto the data base of the CBR system.
  • the ActionPromptlnstance class methods called determine 0 and execute 0 were defined previously in the discussion for Figure 20.
  • Figure 25 shows the Indexlnstance class with a "has" relationship to the IndexEntry class.
  • the IndexEntry class contains the actual data, or attributes, comprising the index instances.
  • the Indexlnstance class of objects includes methods called loadlnternal () , which loads index entries mto the CBR system data base, refreshO , which updates and maintains Indexlnstance objects, and compare 0 , which matches patterns agamst index entries and returns identifiers of partially matching Caselnstance objects.
  • the Trackmglnstance class mcludes methods called increment 0 , which increments counters that are associated with a Caselnstance object to indicate comparison conditions such as when a score is greater than a threshold value or when a case is selected for use in a query.
  • the other method of the Trackmglnstance class is called reset 0 , which initializes particular counters to zero.
  • Figure 26 is a class diagram that illustrates the classes related to the case query classes.
  • Figure 26 shows a CBRQuery class being related to classes called CaseMatchSet, PropertyMatchSet, Incident, and CaseSet.
  • Figure 26 also shows the CBRQuery class with a "has" relationship to the QueryParameter class and the Pattern class.
  • the classes of RankedCaselnstance and PropertyRankedlnstance are shown related to the Ranklnstance class, and these ranked instance classes are shown related to the Caselnstance and Propertylnstance classes, respectively.
  • the Propertylnstance class is, in turn, related to the PropertyMatchSet class, which, along with the CaseMatchSet, is related to the CBRQuery class.
  • Figure 26 shows that the CaseMatchSet and PropertyMatchSet classes inherit from the MatchSet class, and therefore their structure and beha ⁇ .or conform to the specifications of the MatchSet. That is, the MatchSet class is an abstract base class that serves as a template for CaseMatchSet and PropertyMatchSet objects. Similarly, the CaseRank class and RankedPropertylnstance class inherit from the Ranklnstance class, which is an abstract base class, and therefore their structure and behavior conform to the Ranklnstance class.
  • the Ranklnstance class includes no methods but contains several attributes. The rank attribute is calculated to indicate how closely a Caselnstance matches a query pattern or to determine which unknown property values would most increase the rank score.
  • the rank type indicates the ranking algorithm to use, and the status indicates a status for a Caselnstance.
  • Examples of a case status include matched or examined, which indicate a case match or a case being examined, respectively.
  • the Caselnstance and Propertylnstance classes were previously described in conjunction with Figure 23.
  • Figure 27 illustrates the object relationships and behaviors of the CBRQuery class.
  • the CBRQuery class groups a set of information that is needed to search history cases (case instance descriptions) from the CBR data base.
  • the CBR class may include multiple QueryParameter objects and pattern objects.
  • the CBRQuery class has a dual relationship with the CaseSet class.
  • a CaseSet includes multiple CBRQuery objects while a CBRQuery object uses the CaseSet class m a client-supplier relationship.
  • the CBRQuery class has simple association relationships with the classes called Incident, PropertyMatchSet, and CaseMatchSet.
  • the CBRQuery method called undo0 reverses the last received operation performed as part of building the query.
  • the CBRQuery method called BuildPattern () assembles a search pattern for a query and the method called evaluateO searches the case histories for matches to a query pattern.
  • the store O method stores all CBRQuery objects into the CBR data base, the determine 0 method retrieves and displays to the user the stored CBRQueries so one can be selected, and the showListO method displays a list of the stored CBRQueries.
  • the CaseMatchSet class is an execution time collection class that hold information while a query is being processed.
  • the buildCaseMatchSet 0 method of the CaseMatchSet builds a set of ranked Caselnstances
  • the showCaseMatchSet0 method shows a set of ranked Caselnstances
  • the exclude 0 method permits the framework user to remove a case or property instance from the CaseMatchSet.
  • the rankCaseMatchSetO method of the CaseMatchSet calculates an initial rank score using both the description text and the received pattern
  • the re-rankSetO method selects records from a matched set based on additional information m the pattern and then calculates a rank score using both the description text and the pattern.
  • the refreshO method rebuilds a CaseMatchSet based on changes to a Pattern that require different cases from the case base.
  • the PropertyMatchSet includes methods called buildPropertyMatchSet O , which builds a set of ranked property instances, and showPropertyMatchSet0 , which shows a set of ranked property instances.
  • the exclude0 method permits a user to remove a property from further consideration
  • the rankPropertyMatchSet0 method calculates an initial rank score using both the description text and pattern
  • the re-rankSetO method selects records from the property match set based on additional information in a pattern and calculates a new rank score using both description text and pattern.
  • the refreshO method of the PropertyMatchSet rebuilds a PropertyMatchSet based on the changes to the pattern that require different cases from the case data base.
  • Figure 28 illustrates that the Propertylnstance and
  • CompoundPropertyValue classes inherit from the Pattern class and therefore the Pattern class serves to define respective property value patterns. That is, the structure and behavior of the Propertylnstance and CompoundPropertyValue objects conform to the specifications of the Pattern class.
  • the CompoundPropertyValue class contains property-value pairs joined by Boolean operators.
  • the Boolean operators can comprise, for example, the AND, OR, and XOR operations.
  • FIG. 29 indicates that a CaseSet object may use objects from multiple DataStoreComponent classes.
  • Figure 29 illustrates two exemplary extensions of the DataStoreComponent, classes called D B 2 _ D a t a S t o r e I m p l e m e n t a t ⁇ o n a n d PersistentObjectDataStorelmplementation.
  • Figure 30 shows several possible extensions of the
  • ControlFlowComponent class comprising classes called FlowMarkControlFlowlmplementation, BasicControlFlowlmplementation, and C++ControlFlowImplementat ⁇ on.
  • Figure 30 indicates that a user can utilize control flow implementations that comprise FlowMark, Basic, or C++ programming language implementations. In this way a framework user can customize a framework extension to utilize a variety of operating system interface products supplied by vendors.
  • Figure 31 illustrates possible extensions of the framework in terms of the PresentationComponent class and its related classes and objects.
  • CaseSet class uses the PresentationComponent class, which in turn uses the PresentationPart class.
  • the PresentationPart class an abstract base class, defines certain objects comprising Window, Text, Line, MenuBar, Pointer, Button, and the like. These objects are necessary to provide the presentation interface to the framework user.
  • the PresentationPart class m uses the Presentationlmplementation class.
  • the Presentationlmplementation class is illustrated in Figure 31 with two possible extensions, one comprising an OS/2 PresentationManager and the other comprising a "Microsoft" (MS) Windows class. Each of these implementations will contain the classes described for the PresentationPart class.
  • Figures 32 through 37 relate to case definition processing. That is, the processing steps represented by the Figure 10 and Figure 11 flow diagrams (most readily understood in a procedural programming context) may also be described by corresponding object-scenario diagrams that relate to the object oriented programming context, in view of the category diagrams of Figures 14 through 31.
  • the operational steps represented by each object-scenario diagram are further described by tables of pseudo ⁇ code for each diagram. Line numbers for the text in the pseudo-code correspond to legends of the connecting lines in the diagrams.
  • Figure 32 is an object-scenario diagram for the framework implemented in the computer system illustrated in Figure 8 and shows a first set of operations to construct a case definition and a parse definition.
  • Figure 32 assumes that the framework has already been extended so as to instantiate a CBR Session object and a ControlFlowComponent, so that the proper data structures are active and performing the necessary behaviors for the CBR system processing to proceed.
  • Figure 32 shows that the case definition processing begins with construction of the CaseDefmition object, represented by "1. construct” on the connecting line from the ControlFlowComponent object cloud to the CaseDefmition object cloud.
  • the next operation is to display a user interface screen that permits the framework user to build the various data objects of the CaseDefmition. This is represented by the legend "2 displayForlnput” on the same connecting line.
  • the connecting line labelled “3. construct” indicates that a CaseSet object is next constructed, followed by execution of the "4. determine 0 " method that permits the user to select the CaseSet to be associated with the newly defined CaseDefmition.
  • the legend "5. selectCaseSet” indicates that all existing CaseSet objects are retrieved by the DataStoreComponent object, and "6. showList” indicates that the list of case sets is displayed to the framework user for selection.
  • the case definition processing next includes constructing a ParseDefmition object for the selected CaseSet, represented by the legend "7. constructParseDefmition” on the connecting line from the ControlFlowComponent object cloud to the ParseDefmition object cloud.
  • the user has the option of retrieving a desired ParseDefmition with the DataStoreComponent object, as represented by the legend "8. selectParseDefmition” on the connecting line from the ParseDefmition object cloud to the DataStoreComponent object cloud.
  • the user also has the option of prescribing a tri-string parse and a token parse.
  • a tri-string parse is a user-defined group of three text (alphanumeric) characters that will be used to score case instances in a query evaluation.
  • a token parse is a smgle user input character that will be used to replace text in a case instance.
  • User input of a t ⁇ -stnng parse is represented by "9.
  • tri-String Parse and input of a token parse is represented by "10. tokenParse” on the connecting line from the CaseDefmition object cloud to the ParseDefinition cloud.
  • the user is provided with the option of changing the parsing definition again, before the parsing definition is stored by the DataStoreComponent object. If a user has entered data for an initial problem description for the CaseDefmition object, then parsing methods of the ParseDefmition class are executed to parse the Description object into searchable components. Parsing is described m lines 20-23 of the Table 2 pseudo-code.
  • Figure 33 The next sequence of processing steps m the build case definition processing is illustrated in Figure 33 and relates to construction of the objects associated with a PropertyUsage.
  • the first property usage operation performed is indicated by the legend "11. construct” on the connecting line from the CaseDefmition object cloud to the PropertyUsage object cloud, comprising construction of a PropertyUsage object in accordance with the object oriented programming environment of the preferred embodiment.
  • Figure 33 indicates that a property usage input prompt is displayed to the user, represented by the legend "12. displayForlnput" on the same connecting line, to receive property information from the user.
  • the PropertyUsage object constructs a PropertyDefmition object.
  • determine represents processing that uses a determine 0 method of the PropertyUsage object to retrieve the appropriate property definition in accordance with the property usage input.
  • the allowable property definitions for the selected case set are retrieved by the DataStoreComponent and are shown to the user for selection. This processing is represented by the legend "15. showAllowable” on the connecting line from the PropertyDefmition object cloud to the CaseSet object cloud.
  • the user makes a selection from the allowable list and it is retrieved by the DataStoreComponent, as represented by "16. selectPropertyDef . " on the connecting line from che CaseSet object cloud to the DataStoreComponent object cloud.
  • the system displays a Property Definition prompt and receives the new information, as represented by the legend "17. displayForlnput" at the PropertyDefinition object cloud.
  • a value can be either a simple value or a compound value, and each case is constructed and displayed for input from the user as the user selects and/or adds to the values. Any existing, allowable values are displayed (represented by "19. showAllowable”) and selected by the user (represented by "20. selectPropValue”) .
  • the user also can define the allowable weighting. Therefore, the control flow of the CBR system causes a WeightSet object to be constructed and a user prompt displayed, as represented by "28. construct” and “29. displayForlnput” on the connecting line from the PropertyUsage object cloud to the WeightSet object cloud.
  • weight values are associated with properties of case instances and are used by the query engine to select the closest match to the current problem.
  • the weight definitions can be received from the user and this processing is represented by "30. construct” and "31. displayForlnput”.
  • the new weight definitions are recorded in the change log, as represented by the legend "32. add” on the connecting line from the WeightSet object cloud to the ChangeLog object cloud.
  • the next sequence of operations to be performed by the CBR system is to construct action prompts, tracking definitions, and index definitions for use in query evaluation processing. These 45 PC ⁇ 7US97/02574
  • the first step of action prompt processing is represented by the legend "33. construct” and "34. displayForlnput” on the connecting line from the CaseDefmition object cloud to the ActionPromptDefmition object cloud, indicating that an ActionPromptDefmition object is constructed and the user is prompted for the definition input. If there is an existing action prompt set, then the set is displayed to the user (represented by "35. show”) and the user selects from the displayed set (represented by "36. selectActionPrompt”) . The modification to the system implemented by the selection is added to the change log, as indicated by "37. add".
  • the tracking definition is received from the user.
  • This processing is initiated with construction of a TrackingDefinition object (represented by "38. construct"), followed by user specification of the definition (represented by "39. displayForlnput”) .
  • the existing tracking definitions are displayed (represented by "40. show") and the user selects one using the DataStoreComponent (represented by "41. selectTrackmgDef . ”) .
  • the modification is added to the change log, indicated by "42. add".
  • the user specifies the desired index definition.
  • the next processing is to construct an IndexDefmition object and receive user input ("43. construct” and “44. displayForlnput” on the connecting line from CaseDefinition to IndexDefmition) . If an existing index definition was desired, then the index definition set is displayed to the user ("45. show") and the user makes a selection, as indicated by the legend "46. selectlndexDef. " on the connecting line from the CaseSet object cloud to the DataStoreComponent object cloud. Modifications are recorded into the change log at the step indicated by "47. add".
  • the next series of processing steps performed by the CBR system of the extended framework is to construct Pattern objects that are associated with the CaseDefmition data object.
  • the pattern processing is represented by the Figure 35 object-scenario diagram.
  • the initial step of pattern processing is to construct a
  • Pattern object and receive a user-selected pattern, as represented by the legends "48. construct” and “49. displayForlnput” on the connecting line from the CaseDefmition object cloud to the Pattern object cloud. If one or more existing patterns are available for selection by the user, then the system shows the allowable set of patterns to the user (indicated by "50. showAllowablePatterns") and the user makes a selection (indicated by "51. select”) .
  • Property values can be compound, and therefore the next processing is to construct a compound property value and display to the user a prompt to receive the user specification, represented respectively by "52. construct” and "53. displayForlnput”. If a CompoundPropertyValue is added, then the cnange is recorded ("54.
  • a Pattern object consists of one or many single SimpleValue objects and/or CompoundValue objects that are associated with Propertylnstance objects.
  • the next processing is to construct a Propertylnstance object specified by the user ("55. construct” and "56. displayForlnput”).
  • SimpleValue objects are similarly constructed ("57. construct” and “58. displayForlnput"), as are CompoundValue objects ("59. construct” and "60. displayForlnput”) .
  • the revised Pattern is generated by the infer method ("61. inferPatternValue") In this way, the Pattern object limits, or constrains, the combinations of property values that can be defined in case instances of the case definition.
  • the processing represented by the Figure 35 object- strig ⁇ o diagram can be further described by the following table of pseudo-code, which is a contmuation of the previous tables:
  • Figure 36 is an object-scenario diagram that represents processing associated with updating a parse definition, the next sequence of operations.
  • the Figure 36 processing begins with a display for user input to receive a parse definition, as indicated by the legend "62. displayForlnput" on the connecting line from the CaseDefmition object cloud to the ParseDefmition object cloud.
  • the user makes a selection ("63. select") and then the system checks to determine where the parse definition was used, or located, m the case definition ("64. check”) .
  • the parse definition is then subjected to an audit operation that ensures the words are allowable (“65. audit”) .
  • the modifications to the parse definition being used are recorded in the ChangeLog ("66. add”) .
  • Figure 37 is an object-scenario diagram that illustrates the processing to store the case definition in the persistent storage of the CBR system using the DataStoreComponent.
  • the first store operation is for the ControlFlowComponent to cause storage of the CaseDefmition, comprising all of the objects associated with the various classes of which the CaseDefinition is comprised.
  • This operation is represented m Figure 37 by the -.egend "67. storeCaseDefmition” on the connecting line from the ControlFlowComponent object cloud to the CaseDefmition object cloud.
  • the next series of operations comprises the insertion of the objects mto persistent storage using the DataStoreComponent. These steps are represented by the legend "68-80. insert” on the connecting line from the CaseDefmition cloud to the DataStoreComponent cloud.
  • Case Instance Object Interactions Auser defines newproblem description-solution pairs, the history cases, and performs maintenance on existing cases by using the case instance definition processing.
  • Each history case called a case instance, has a data structure specified by the case definition structure.
  • the case definition processing was described above in conjunction with Figures 32-37.
  • the case instance processing is similar in many respects to the case definition processing, and is illustrated in Figures 38-43.
  • Figure 38 is an object-scenario diagram that illustrates operating steps m the case instance processing.
  • a Caselnstance object is constructed and the user is permitted to designate a case instance set. These steps are represented by the legends "1. construct” and "2. displayForlnput” on the connecting line from the ControlFlowComponent object cloud to the Caselnstance object cloud.
  • a CaseSet object is constructed and the allowable CaseSet objects are determined (indicated by "3. construct” and "4. determine” on the connecting line from ControlFlowComponent to CaseSet) .
  • the user next selects one of the available CaseSet objects, using the DataStoreComponent ("5. select"), from among the list of available CaseSet objects ("6. showList”). After the case set is selected, the next step in the
  • Caselnstance processing is for the appropriate ParseDefmition objects to be retrieved.
  • a ParseDefmition object must be constructed, as represented by the legend "7. construct” on the connecting line from the ControlFlowComponent object cloud to the ParseDefmition object cloud.
  • the user selects a ParseDefinition using the DataStoreComponent ("8. select") .
  • the selected parse definition may be either a tri-strmg parse or a token parse, individually or together, as desired.
  • the tri-string parse will break down the input data in successive three-character groups to permit "fuzzy" matching and tolerance for incorrectly spelled words in the input data and the token parse breaks down each word in the input data mto a token, thereby stripping predetermined prefix and suffix combinations from the input words and handling common synonyms.
  • the tri-string and token parse selection is represented by "9. ret ⁇ eveTriStrmgParseDef . " and by "10. retrieveTokenParseDef . " , respectively.
  • Figure 39 is an object-scenario diagram that illustrates selection of a case definition to control the structure of the new case instance.
  • the first processing step is to construct a CaseDefmition object and to determine the set of allowable CaseDefmition objects, as represented by the legends "11. construct” and "12. determine” on the connecting line from the ControlFlowComponent object cloud to the CaseDefmition object cloud.
  • To permit the user to select a CaseDefmition first the set of allowable objects from the CaseSet is shown to the user ("13. show") and then the user selects one of them using the DataStoreComponent ("14. select”) .
  • the selected CaseDefmition is used ("15. use") to construct a PropertyUsage object ("16. construct”) .
  • the user selects a PropertyUsage object, as represented by the legend "17. select” on the connecting line from the CaseSet object cloud to the DataStoreComponent object cloud.
  • the next step is to construct PropertyDefmition objects specified by the PropertyUsage object. This is represented by "18. construct” on the connecting line from PropertyUsage to PropertyDefmition.
  • a property definition includes simple values, compound values, and weights, and therefore the next processing involves constructing and selecting a SimpleValue object ("20. construct” and “21. select”), constructing and selecting a CompoundValue object ("22. construct” and “23. select”) , and constructing and selecting a WeightSet object (“24. construct” and "25. select”) .
  • the CBR system constructs the corresponding WeightDefmition objects and permits the user to make a selection, represented by the legend "26. construct” on the connecting line from the WeightSet object cloud to the WeightDefmition object cloud and the legend "27. select” on the connecting line from the CaseDefinition object cloud to the DataStoreComponent object cloud.
  • Attributes of the CaseDefmition include action prompts, index definitions, and tracking definitions. Therefore, the next case definition processing includes constructing ActionPromptDefmition objects ("28. construct”) and selecting an ActionPromptDefmition ("29. select”) .
  • the processing also includes constructing IndexDefmition objects ("30. construct”) and selecting one (“31. select”), and also constructing Trac ⁇ ngDefmition objects ("32. construct”) and selecting one (“33. select”) . This completes case definition processing.
  • Figure 40 is an object-scenario diagram that illustrates processing that creates the Propertylnstance objects for the previously selected Caselnstance based on either the data from an Incident object or by creating new Propertylnstance objects from user input data.
  • a list of Incident objects may be retrieved before creating the property instance objects, to permit selection of a stored Incident object as the source for building a Caselnstance object.
  • This processing is represented in Figure 40 by the legend "34. construct” and "35. determine” on the connecting line from the Caselnstance object cloud to the Incident object cloud, whereupon the Incident object is created and its allowable objects are determined.
  • the allowable Incident objects from the CaseSet are shown to the user ("36. show"), who then makes a selection using the DataStoreComponent ("37. selectlncident”) .
  • the DataStoreComponent is the mechanism through which a user can retrieve stored data, such as for selection of a stored Incident object.
  • a "convert-to-case” method (represented by “38. convert” on the connecting line from the Caselnstance object cloud to the Incident object cloud) identifies all known Property Instance/Value pairs from the Incident.
  • the method causes Propertylnstance objects to be created ("39. construct") and the set of specified PropertyDefinition objects valid for the current CaseDefinition are determined (“40. determine”) .
  • the permissible PropertyDefinition objects based on the CaseDefinition are shown to the user ("41. show”) and then are selected by the user ("42. select”) using the DataStoreComponent. If the PropertyDefinition selected by the user is new, then a PropertyDefinition object is constructed ("43. construct”) and inserted into the persistent storage by the DataStoreComponent ("44. insert”).
  • the modification (new PropertyDefinition) is recorded in the change log ("45. add”) .
  • Figure 41 is an object-scenario diagram that illustrates building Value objects for the Propertylnstance objects and assigning weights to the properties of those Value objects.
  • the "build Values" processing permits building the Value objects associated with the Propertylnstance objects, constructing the Weightlnstance objects, and inferring additional PatternValue objects.
  • the system builds Value objects based on the Propertylnstance objects for the CaseDefinition. This processing is represented by "46. use”.
  • the allowable property values allowed for the current selected CaseDefinition object are shown to the user ("47. show") . As noted above, such values can be simple values and can be compound values.
  • a SimpleValue object is constructed ("48. construct") and the user is queried for simple value input via the user interface ("49. displayForlnput”) . If the SimpleValue selected by the user is new, then it is inserted into the Value object using the DataStoreComponent ("50. insert”) . Any such changes to the system are recorded in persistent storage (represented by "51. add” on the connecting line from the SimpleValue object cloud to the ChangeLog object cloud) .
  • the Propertylnstance objects include Weightlnstance and WeightDefinition objects and therefore the next portion of processing includes construction of a Weightlnstance object ("56. construct") and displaying to the user a prompt to receive weight instance input (“57. displayForlnput”) . If the Weightlnstance input from the user is new, then a new WeightDefinition object is constructed to contain it (“58. construct”) . The WeightDefinition object is then stored into persistent data storage using the DataStoreComponent ("59. insert") and then the change log is updated ("60. add”) .
  • an "infer" processing step checks against the Pattern objects associated with the case definitions to determine if additional Propertylnstance or Value objects can be automatically generated for the query, based on the constraints specified in the CaseDefinition. In this way, the user first provides as many defining values and weights assigned to those values within the user's knowledge, and then the CBR system executes the infer process to check the query against further constraints.
  • the processing represented by the Figure 41 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code: Table 11. Build Value Property Instance objects.
  • Figure 42 is an object-scenario diagram that illustrates such processing.
  • ActionPrompt objects are first constructed (“62. construct”) and allowable ActionPrompt objects are determined (“63 determine”) .
  • the ActionPrompt objects available from the CaseDefmition are shown to the user ("64. show”), who then makes a selection ("65. select”).
  • the selected ActionPrompt objects are then constructed using the ActionPromptDefmition ("66. construct”) and are inserted into persistent storage using the DataStoreComponent ("67. insert”) . Modifications are inserted mto the ChangeLog (“68. add”) .
  • a series of Audit methods are performed to ensure valid property definition components. An audit call is made on the PropertyUsage attributes for the selected CaseDefmition ("69.
  • auditPropertyUsage an audit is called on PropertyValue attributes for the PropertyUsage ("70. auditPropertyValues”) , and an audit is called on ActionPrompt for the ActionPromptDefmition ("71. auditValues”) .
  • An audit also is called on the PropertyDefmition for the Caselnstance (“72. auditValues”) , an audit is called on the WeightDefinition attributes ("73. auditValues”), an audit is called on the WeightSet (“74. auditValues”), and an audit is called on the PatternCase objects (“75. auditValuePatterns”) .
  • Figure 43 is an object-scenario diagram that represents the next sequence of processing steps, which creates refresh indexes and stores the Caselnstance.
  • the IndexDefinition objects are refreshed ("76. refresh") by constructing Index objects ("77. construct”) and IndexEntry objects ("78. construct”) .
  • the ControlFlowComponent next causes the Caselnstance to be stored ("79. store”) .
  • the IndexDefinition objects must be refreshed whenever the referenced items are changed or new items added. After the refresh, each element of the newly created Caselnstance objects must be stored in the data base with an insert operation ("80. insert") .
  • the Propertylnstance ("81. insert") and associated Value and Weightlnstance objects must be stored ("insert” items 82 and 83 of the diagram) .
  • the ActionPromptlnstance, Indexlnstance, and IndexEntrylnstance objects for each Caselnstance also are stored in the data base, as represented by the "insert” items numbered 84, 85, and 86, respectively.
  • the "build Case instance” processing includes destructing each one of the objects not needed after the data storage, which is collectively indicated by the legend "87. destruct”. This concludes the case instance definition processing.
  • the processing represented by the Figure 43 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code:
  • Figure 44 is a top-level object-scenario diagram for the framework implemented in the computer system illustrated in
  • Figure 44 is a scenario that shows the resulting actions that are performed in the framework mechanism for processing of a single query, the simplest type of query that can be posed by the framework user.
  • Figure 44 assumes that the framework has already been extended so as to instantiate a CBR Session object and a ControlFlowComponent, so that the proper data structures are active and performing the necessary behaviors for the CBR system processing to proceed.
  • Figure 44 shows that the processing of the extended framework starts with the creation of a CBRQuery object, indicated by the connecting line from the object cloud ControlFlowComponent to the object cloud CBRQuery with the arrow labelled "1. construct".
  • this is a representation for the creation by the ControlFlowComponent object of a CBRQuery object with all data, attributes, and behaviors necessary to make the CBRQuery object complete.
  • the framework is implemented in a computer system with the C++ programming language.
  • the creation process is typically a C++ constructor that creates C++ objects.
  • a determine 0 method can be used to assist the user in selecting a query that was previously built and saved by the DataStoreComponent. For such processing, a list of queries from the DataStoreComponent can be provided to the user, from which the user can select one as an initial query.
  • the computer system receives interactive information from the user in response to display prompts.
  • the legend "2. displayForlnput" on the Figure 44 connecting line from the object cloud ControlFlowComponent to the object cloud CBRQuery indicates that the second processing step is to display a user prompt and prepare to receive a query. That is, in response to the display prompt, a problem will be posed by the user to the CBR system, for matching against the case base and generation of a solution, from either the query retrieved from the DataStoreComponent or a new query fashioned by the user.
  • the CBRQuery object is inserted to the ChangeLog object for data storage.
  • This step is indicated by the connecting line from the CBRQuery object cloud to the ChangeLog object cloud with the arrow labelled "3. add”.
  • the case base to be used is selected by the user.
  • This processing is indicated by the arrows labelled "4a. constructCaseSet” and “4b. determineCaseSet” on the connecting line from the ControlFlowComponent object cloud to the CaseSet object cloud and the arrow labelled "4c. selectCaseSet” on the connecting line from the ControlFlowComponent object cloud to the DataStoreComponent object cloud.
  • the selected case base is displayed to the user, indicated by the legend "5. showCaseSet” , and then is instantiated for use by the CBR system, indicated by the legend "6. useCaseSet” on the connecting line from the ControlFlowComponent object cloud to the CaseSet object cloud.
  • the next step is to select the parsing definition that will be used, according to the input start-up processing determined by the framework user.
  • This step is represented by the arrow labelled "7. selectParseDefmition” on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud.
  • Figure 30 next shows parsing in the case that both the tri-string parse and token parse have been selected. Accordingly, the next processing steps are indicated as "8. tri -StrmgParse” and “9 tokenParse” on the connecting line from the CBRQuery object cloud to the ParseDefinition object cloud. It should be understood that selection of a parsing definition is not necessarily needed, and one or both of these processing steps may be skipped.
  • the next step is to receive the user query.
  • This step is represented in Figure 44 by the legends "10a. construct” and “10b. displayForlnput” on the connecting line from the CBRQuery object cloud to the QueryParameter object cloud.
  • the received data input query is placed into the appropriate data objects with the "11. add” label on the connecting line from the QueryParameter object cloud to the ChangeLog object cloud.
  • the next sequence of processing steps in responding to a single query are represented by the object-scenario diagram of Figure 45.
  • the processing illustrated in Figure 45 shows building a pattern for use by the query engine, which begins with receiving property value and property instance selections from the framework user.
  • Such processing involves the step of displaying a pattern prompt to the user, represented by the legends "12. construct” and "13. displayForlnput" on the connecting line from the CBRQuery object cloud to the Pattern object cloud.
  • the system displays input screens for the user.
  • the system next constructs a CompoundPropertyValue object and receives the user selection of the appropriate property value attributes.
  • This processing is represented in Figure 45 by the arrow from the Pattern object cloud to the CompoundPropertyValue object cloud labelled with "14. construct” and "15. displayForlnput".
  • the received compound property value selection is added to the data base as a ChangeLog data object, as represented by the legend "15a. add” on the connecting line from the Pattern object cloud to the ChangeLog object cloud.
  • the next processing involves receiving a selected property instance. This processing is represented by the legends "16. construct", “17. displayForlnput", and "18.
  • the CBRQuery object implements selection of the CaseDefinition attributes after retrieving a menu of possibilities from the data base.
  • This processing is represented by the legend "24a. selectCaseDef” on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud and the legends "24b. showCaseDef”, “24c. useCaseDef”, and "24d. inferPatternValue” on the connecting line from the CBRQuery object cloud to the CaseDefinition object cloud.
  • This processing represents display of the case definitions to the user for selection.
  • the next processing is the evaluation of the query.
  • the evaluation processing is represented by the object-scenario diagram of Figure 46. Proceeding from the last illustrated step in Figure 31, the processing illustrated in Figure 46 shows the next step of "25. evaluateCBRQuery" on the connecting line from the ControlFlowComponent object cloud to the CBRQuery object cloud.
  • the system next selects the index definitions to be used in the evaluation for the case definitions that will be searched. This step is represented by the legend "26. selectlndexDefmition" on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud.
  • the system checks to determine if the index definition being used contains information that will be useful and will speed the search of the case definitions. This step is indicated by the arrow labelled "26a. doCoverIndexDefmition" on the connecting line from the CBRQuery object cloud to the IndexDefmition object cloud.
  • the appropriate index objects are loaded mto memory. That is, the IndexDefmition objects are constructed and instantiated. Loading the index entries into the CBR system memory is indicated by the legend "27. load” on the connecting line from the CBRQuery object cloud to the Indexlnstance object cloud. If the present evaluation is the first iteration of processing for the query, then a CaseMatchSet object is constructed. This is represented by the arrow labelled "28. constructCaseMatchSet" on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud. The CaseMatchSet will serve as a collection object to contain matches located in the case base.
  • Figure 47 illustrates the processing of a CaseMatchSet after it is constructed.
  • the step of building the CaseMatchSet is represented by the legend "29. buildCaseMatchSet" on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud.
  • the CaseMatchSet contains the results of selecting Caselnstance objects that match the property values defined in the Pattern object or whose description matches the description in the Pattern.
  • This processing is represented by the legend "29a. compare” on the connecting line from the CBRQuery object cloud to the Indexlnstance object cloud and the legend "30. selectCaselnstances” on the connecting line from the CaseMatchSet object cloud to the DataStoreComponent object cloud.
  • the selected Caselnstance objects are ranked for closeness to the Pattern searched. If the Caselnstance has not changed (that is, processing is for another iteration on a previously searched case) , then the Caselnstance objects are re-ranked. This processing is represented by the legends "31. rankSet” and "32. re-RankSet” on the connecting line from the CaseMatchSet object cloud back onto itself.
  • Ranking involves first constructing a RankedCaselnstance object to contain the rank information for the Caselnstance of the CaseMatchSet being processed. Therefore, for each selected Caselnstance, a check is made to determine if it is a new Caselnstance for evaluation. If the Caselnstance is new, a RankedCaselnstance object is constructed. Each Caselnstance is scored according to the Rank or re-Rank method of the CaseMatchSet and the results are stored in the RankedCaselnstance.
  • the construction processing is represented by the legend "33. constructRankedCase" and the rank processing is represented by the legend "34.
  • TrackingDefinition objects are iteratively selected, as represented by the arrows labelled "35. selectTrackingDefinition” and “36. doIncrementTrackingDefinition” on the connecting lines from the CaseMatchSet object cloud to the DataStoreComponent cloud and the TrackingDefinition cloud, respectively. If any tracking definitions apply, the corresponding tracking instances are iteratively selected, as represented by the arrows labelled "37. selectTrackinglnstance” and "38. increment” on the connecting lines from the CaseMatchSet object cloud to the DataStoreComponent andTrackinglnstance object clouds, respectively. After the tracking instance processing, the ordered
  • CaseMatchSet is displayed to the user to provide an opportunity to select case instances for exclusion from further processing.
  • the display is represented by the legend "39. showSet” on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud. If at least one solution to the query is not found, that is, none has scored above a specified threshold, then the user can exclude cases from the match set and repeat the evaluation or the user can use a PropertyMatchSet object (which also is constructed on the first iteration of evaluation processing) to help determine which properties will most quickly lead to a solution and to find values for those properties.
  • This processing is represented in Figure 47 by the arrow labelled "40. excludeSet” from the CaseMatchSet object cloud back onto itself and the arrow labelled "41. constructPropertyMatchSet” on the connecting line from the CBRQuery object cloud to the PropertyMatchSet object cloud.
  • the PropertyMatchSet will serve as a collection object to contain properties that could be added to the pattern with associated values to further constrain the search.
  • Figure 48 illustrates CBR system processing when a PropertyMatchSet object is built as part of query evaluation.
  • the building of a PropertyMatchSet object is represented by the legend
  • ranking involves first constructing an object to contain the rank information. Therefore, for each Caselnstance object selected with a Property, a check is made to determine if it is a new Caselnstance. If the Caselnstance is new, a RankedPropertylnstance object is constructed. Each Propertylnstance object is scored according to the Rank or re- Rank method of the PropertyMatchSet and the results are stored in the RankedPropertylnstance.
  • the construction processing is represented by the legend "46. construct" and the rank processing is represented by the legend "47.
  • setRankTypeStatus on the connecting line from the PropertyMatchSet object cloud to the RankedPropertylnstance object cloud
  • the set method indicates the rankmg and status of each Propertylnstance in the PropertyMatchSet.
  • Each property instance also is checked for specified tracking definitions. If any tracking definitions apply, the corresponding tracking instance count is incremented.
  • This processing is represented by the legends "48. selectTrackmgDef”, "49. dolncrement” , "50. selectTrackmglnstance", and "51. increment” on the connecting lines from the PropertyMatchSet object cloud to, respectively, the object clouds DataStoreComponent, TrackingDefinition, DataStoreComponent, and Trackmglnstance.
  • the display step is represented by the legend "52. showSet” on the connecting line from the CBRQuery object cloud to the PropertyMatchSet object cloud and the resulting exclusion is represented by the legend "53. exclude” on the connecting line from the PropertyMatchSet object cloud back onto itself.
  • the user might want to display the property instances, processing that is represented by the arrow labelled "54. display” from the PropertyMatchSet object cloud to the Propertylnstance object cloud. After display, the user can proceed with viewing the property instance values and/or can execute action prompt instances related to the Property object.
  • Such processing is intended to facilitate the user adding information to the Pattern when iterative processing returns to the build pattern portion of the build pattern/evaluate query processing loop of the CBR system.
  • the viewing values processing is represented by the arrow labelled "55 showValue” from the PropertyMatchSet object cloud to the Propertylnstance object cloud and the action prompt processing is represented by the arrow labelled "56. execute” from the Propertylnstance object cloud to the ActionPromptlnstance object cloud.
  • Figure 49 illustrates the processing when a query solution is found.
  • the beginning of solution processing is indicated by the legend "57. evaluate” on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud.
  • the status of the selected RankedCaselnstance is updated to mark the associated Caselnstance object as a solution for the query.
  • This processing is indicated by the arrow labelled "34a. setStatusRankedCaselnstance" on the connecting line from the CaseMatchSet object cloud to the RankedCaselnstance object cloud.
  • a dolncrement 0 method is then performed to determine if any tracking information should be updated and, if applicable, corresponding tracking instances are incremented.
  • This processing is represented by the arrows labelled "36a. dolncrement” and “38a. increment” on the connecting lines from the CaseMatchSet object cloud to the Trackmglnstance object cloud, respectively.
  • the Caselnstance of the solution is displayed to the user, who may then decide to execute associated action prompt instances.
  • Such processing is represented in Figure 35 by the arrows labelled "58a. displayCaselnstance" from the CBRQuery object cloud to the Caselnstance object cloud and "58b. execute” from the Caselnstance object cloud to the ActionPromptlnstance object cloud.
  • the evaluation processing continues with providing the user with the option of saving the query information into the case base. That is, the CBRQuery information can be saved, with associated objects, using the DataStoreComponent and corresponding ChangeLog additions.
  • the query information becomes part of the case base so that it might conceivably be retrieved to help build a subsequent user query.
  • the storing of the query information into the case base is represented by the legend "60. msertCBRQuery" on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud and the legend "61. addChangeLog" on the connecting line from the DataStoreComponent object cloud to the ChangeLog object cloud.
  • the user can save the information as an Incident.
  • an Incident cannot be retrieved via a query. That is, the query information saved as an Incident can be retrieved as an Incident or converted into a Caselnstance, but it cannot be retrieved as a member of the case base as a solution to a query.
  • an Incident object first must be constructed, which is represented by the arrow labelled "62. constructlncident”, and then must be built by converting the query information to an incident format, which is represented by the arrow labelled "63. buildlncident”, both arrows on the connecting line from the Incident connecting line back onto itself.
  • the built Incident is saved in the DataStoreComponent, represented by the legend "64. insert” on the connecting line from the Incident object cloud to the DataStoreComponent.
  • the ChangeLog is updated, as represented by the arrow labelled "67. addChangeLog” on the connecting line from the DataStoreComponent object cloud to the ChangeLog object cloud. If needed, the tracking instances are updated and the update is added to the ChangeLog. Such processing is represented by the legends "66. updateTrackinglnstancesComponent” and "67. addChangeLog” on the connecting lines from the CBRQuery object cloud to the DataStoreComponent object cloud and from that cloud to the ChangeLog object cloud. Finally, evaluation processing is completed by executing destruct methods that delete the instantiated objects from the object oriented programming environment of the CBR system, as will be understood by those skilled m the art.
  • This destruct operation completes the processing of the CBR system, which then awaits another user request.
  • FIG. 1 A system that is modeled by an object-oriented framework can be represented at a high level of abstraction by a diagram called a top-level class diagram.
  • Figure 1 of the drawings is an example of a top-level class diagram containing boxes that represent abstractions of the modeled system. The boxes are arranged in a hierarchy such that boxes representing abstractions close to the physical components of the system are at the lower levels of the diagram and boxes representing more abstract, functional components are closer to the top of the diagram.
  • the boxes are labelled as "mechanisms" to denote that the abstractions comprise means for implementing modeled system components.
  • Figure 1 represents a zoo administration model and therefore the lower hierarchy boxes include a box called Animal Mechanism, which represents animals within the zoo model, and a box called Containment Unit Mechanism, which represents animal pens and cages.
  • the box called Zoo Administration represents a functional abstraction that encompasses a variety of administrative tasks that are performed by personnel.
  • the boxes in a top-level class diagram represent the system abstractions that provide the system behavior.
  • the system abstractions include classes and objects. Details of the system classes are provided m a class diagram that is used to show the class categories and to indicate the relationships and responsibilities of the classes.
  • a class is represented by an irregularly shaped, dashed-line icon commonly referred to as a cloud.
  • Figure 2 shows several classes represented as clouds.
  • Each class is identified by a name that is unique to the associated class category and also indicates the relationship of each class to one of the mechanisms illustrated in Figure 1.
  • the class name is listed above attribute names, operation names followed by parentheses, and constraints that are enclosed withm brackets.
  • Figure 3 illustrates the class Zoo Administrator in greater detail.
  • Figure 3 indicates that the Zoo Administrator class includes multiple operations, including ones called “5_mmute_t ⁇ mer () ", “add_an ⁇ mal 0 ", and “add_contamment_un ⁇ t () " . Words in the operation names (and class attribute names) are sometimes separated by an underscore for easier reading.
  • An example of a class attribute listing is shown by the attributes called “feed_freq” and “temp_range” in the class Animals illustrated in Figure 5.
  • Connecting lines between mechanisms ( Figure 1) and classes ( Figure 2) indicate the nature of the relationships between such respective abstractions.
  • connections between the boxes in Figure 1 represent relationships between the various mechanisms.
  • a straight connecting line for example, represents a simple association relationship indicating shared information.
  • a "using" relationship is a refinement of a simple association whereby one abstraction that is referred to as a server or supplier provides services to another abstraction that is referred to as a client. Such a relationship is indicated by an open circle at one end of a simple association line, the open circle end designating the client that "uses" the associated server.
  • Another refinement of a simple association between two classes is a type referred to as an inheritance relationship.
  • Inheritance is a relationship among classes m which one class shares the structure and/or behavior associated with one or more other classes.
  • An inheritance association is also referred to as a "is a" relationship.
  • the class A has an inheritance relationship with the class B if A is an example of a B; A is said to be a subclass of B and B is said to be a superclass or parent of A. That is, A "is a" B.
  • An inheritance relationship is denoted with a connecting line that includes an arrowhead at one end to indicate a subclass that derives its characteristics from a parent class at the other end of the line.
  • An aggregation relationship denotes an association between a whole and its parts or attribute classes.
  • an aggregation relationship is indicated between a whole class and an attribute class connected with an association line by a solid circle at the whole class end, with an attribute class at the other end.
  • Another relationship specified by a class diagram is an instantiation relationship.
  • An instantiation relationship represents an instance of a class such as a particular implementation of a class as supported by a programming language. For example, a class called "animal" can have multiple instantiations comprising lions, tigers, and bears.
  • An instantiation of a class is represented by a dashed association line with an arrowhead pointing from an instance of a class to the general class.
  • a class relationship referred to as a metaclass denotes a relationship in which a class itself is treated as an object that can be manipulated. That is, a metaclass is a class whose instances are themselves classes. Some computer languages, such as Small Talk, support the concept of a metaclass. Such relationships are denoted by a shaded line with an arrowhead pointing from an instance of a metaclass to the general metaclass.
  • Classes can be parameterized, which denotes a family of classes whose structure and behavior are defined independently of its formal class parameters
  • a parameterized class is represented by a cloud-shaped class icon with a rectangular box placed over a portion of the cloud.
  • the parameter list is named withm the rectangular box.
  • An instantiated class includes a parameter box, called an adornment, in contrast to a dashed line box for a general class.
  • the instantiation relationship between a parameterized class and its instantiated class is represented as a dashed line pointing to the parameterized class.
  • an instantiated class requires a "usmg" relationship to another concrete class for use as an actual parameter.
  • Classes of classes can be represented by class adornments that are enclosed withm the class cloud icon.
  • an abstract class is denoted by an upper case block "A" withm a triangle that is placed within a cloud.
  • An abstract class is a class for which no instances may be created. That is, it is a class of classes
  • Other class adornments are functions of the 00 implementation language. For example, the C++ language permits special class qualifications that will be given special adornments.
  • a static class is represented by an upper case block "S” withm an adornment triangle
  • a friend class is denoted by an upper case block "F” withm an adornment triangle
  • a virtual class is represented by an upper case block "V" within an adornment triangle.
  • Objects are represented as solid line clouds withm which is placed the object name located above a list of object attributes.
  • An object is a tangible entity that exhibits a well defined behavior.
  • An object is intended to represent some part of a real system that is being represented by the object oriented program.
  • An object is characterized by a state, a behavior, and an identity.
  • An object can be thought of as an instance of a class.
  • the behavior of an object is an indication of how the object acts and reacts in terms of its state changes and its message-passing actions.
  • Objects and their interrelationships are represented in object diagrams that comprise object icons having links that indicate synchronization between objects. Links are sequentially numbered to indicate the flow of operations. The existence of a link between two objects indicates an association between their corresponding classes and denotes a path of communication between them. Thus, a link between two objects indicates that one object may send messages to another. The direction of message transfer is indicated by adorning a simple connecting line with an arrowhead that points from an object that invokes an operation, referred to as the client, to the object that provides the operation, referred to as the supplier. Such a representation of a simple synchronization relationship denotes the simplest form of message-passing. Such an association can indicate, for example, the invocation of an operation.
  • Operation parameters can be indicated adjacent the linking line.
  • Some objects may be active, meaning that they embody their own thread of control. That is, such objects are not simply sequential. Active objects may have a variety of concurrency characteristics. If an object has multiple threads of control, then synchronization must be specified.
  • Message synchronization can be synchronous, meaning that the client will wait until the supplier accepts the message.
  • Synchronous synchronization is indicated with an "X" with an arrowhead.
  • Synchronization can encompass balking message- passing, meaning that the client will abandon the message if the supplier cannot immediately service the message Balking is indicated with an arrowhead turned back on itself.
  • Synchronization can encompass a time-out synchronization, meaning that the client will abandon the message if the supplier cannot service the message within a specified amount of time.
  • Time-out synchronization is indicated with a clock face representation adjacent a linking arrowhead.
  • synchronization can encompass an asynchronous message, meaning that the client sends an event to a supplier for processing, the supplier queues the message, and the client then proceeds without waiting for the supplier Those skilled in the art will appreciate that asynchronous message synchronization is analogous to interrupt handling.
  • Asynchronous message synchronization is indicated with a half arrowhead.
  • Booch notation includes interaction diagrams that trace the execution of objects and classes Interaction diagrams are essentially restructured object diagrams. That is, interaction diagrams do not convey any additional information from that conveyed by object diagrams, but simply present the same information in a different format
  • object diagrams rather than interaction diagrams, but those skilled in the art will recognize that they are equivalent and also will understand how to convert from one to the other without further explanation.
  • the object called Zelda 706 obtains a list of current zoo keepers by calling an operation called List Zoo Keepers from the object called Zoo Keeper Register.
  • the second processing step is represented in Figure 7 by the Zoo Keeper Register object responding to the operation call by passing a message to the Zelda object that comprises the zoo keeper list.
  • the zoo keeper objects include members of the Zoo Keepers class called Tina, Vmce, and Fred.
  • the third step indicated m the object diagram is for the object Zelda to pass a message to each of the zoo keepers instructing them to check the animals by calling the respective Check Animals operation of each zoo keeper object.

Abstract

An object-oriented programming framework for a case-based reasoning (CBR) system shell that permits a user build a case base having Case Structure Definitions (104) and Case Instance Definitions (106). The case-based reasoning system receives user queries (108) and produces a query solution that can be incorporated into the case base. The object-oriented framework includes a Session component that controls processing of the CBR system, a Control Flow component that manages the extension of the categories and classes of the object-oriented framework, a Data Store component that stores persistent case structure definitions, case instances, and a change log, a Presentation component that manages the user interface to the CBR system user, and a Query Engine that evaluates a received query against the case base. The case definitions and case base descriptions comprise a set of object-oriented classes that are organized into an inheritance hierarchy.

Description

Description
Object Oriented Case-Based Reasoning Framework Mechanism
Background of the Invention
Field of the Invention The present invention relates generally to data processing and, more specifically, to object-oriented programming systems and processes.
Description of the Related Art
The phrase "case-based reasoning" (CBR) generally refers to a computer process that finds solutions to current problems by examining descriptions of similar, previously encountered problems and their associated solutions, matching the novel problems to the closest previously encountered problems, and using the associated solutions to produce a solution to the current problem. In a CBR system, problem-solution descriptions are stored in a database called a case base. Weights assigned to different properties of each case are used in scoring cases for similarity against a current problem. The CBR system receives a description of a current problem, retrieves the closest matching cases from the case base using a query engine processor, and iteratively prompts the user for additional descriptive information until the retrieved case or cases are sufficiently close (similar) to be considered a solution to the current problem. The produced solution is then validated through a variety of means, such as user feedback or automatic validation. A validated solution can be added to the case base and used in future problem solving, if appropriate.
CBR systems permit experience gained from solving problems to be applied to a much larger number of problem situations than could possibly be remembered by any one individual with substantially reduced chance of providing erroneous or inconsistent solutions. Validation of problem solutions provides an additional safeguard. Finally, updating the case base permits continuous expansion of the case base against which problems are matched, reducing the likelihood that a satisfactory problem solution cannot be produced. In practical terms, CBR systems are gaining use in computer-assisted and automated help-desk and customer service systems and in computer help programs. The construction of the case base and the way in which stored cases are matched and retrieved can vary greatly from CBR system to CBR system. For example, the case base can comprise problem-solution descriptions stored as plain language text, data records having predefined fields, or semantic networks. Case matching and retrieval processing by the query engine can comprise implementation of nearest-neighbor algorithms, decision trees, or associative memories. The user interface also must be part of the CBR system development process, including construction of the user input and solution presentation mechanisms. The development of each CBR system therefore can require much time, effort, and expense in making such data representation and processing decisions and implementing them.
Many CBR systems are tailored for each particular subject matter application and are developed using conventional procedure- oriented programming languages, such as FORTRAN, Pascal, and C. Many lines of computer programming code must be created for each application. For example, even if the same type of case-matching, query engine processing is used for different CBR systems, the query engine must be adapted to work with the problem-solution description being used. Some code can be modified from other versions, or deleted and replaced with different instructions for different applications, which still can require much analysis and design effort. The development of CBR systems would be easier, less expensive, and less time consuming if the user interface could be more consistent, representation of the problem-solution descriptions standardized, development of the case base made simpler, and the query engine made interchangeable from application to application.
As CBR systems become more widely distributed, more users of CBR systems will be novice users who might be unfamiliar with the case base and with CBR search techniques generally. With current CBR search implementations, search techniques employed by novice users can easily be relatively ineffective. For example, CBR systems typically use weighted matching techniques to find the cases in the case base that are the closest match o a set of specified search criteria. Cases are defined by a set c: properties and cases are deemed more closely matched to a search query if they have more properties in common. Conventional weighting techniques can be said to penalize cases that are more completely defined (have more properties in their definition) because searches that leave many properties unspecified result in fewer completely-defined cases being deemed a match. Novice users are especially prone to leaving search properties unspecified.
Many CBR search techniques also penalize cases that are under-defined, or that have fewer properties defined than are defined in the search query. Users of the CBR system have no control over the way in which the system deals with unspecified properties. Some systems attempt to reduce such problems by assigning different weights to properties and thereby properly accommodate case properties that are not specified m a search, case properties that are unmatched to a search, or search properties that are unmatched to a case. Specifying the case base can become relatively complicated, as case base developers struggle to assign weights. Moreover, different weights might be advisable, depending on the specific search. The CBR system either becomes unresponsive to different searches or case definition becomes too complex.
In addition, it would be advantageous to permit both case base developers and CBR system users to include their knowledge about the relative importance of properties for each search query and to adjust the match scoring approach. That is, a CBR system user should not be forced to use the weight set specified by the case base developer. Unfortunately, a CBR system that also supports input of weight values for each search query has not been available.
From the discussion above, it should be apparent that there is a need for a case-based reasoning system development mechanism tool that provides a basis for more rapid, less expensive, and simpler development of case-based reasoning systems with greater user flexibility. The present invention satisfies this need.
Summary of the Invention
In accordance with the present invention, a reusable object oriented (00) framework for use with object oriented programming systems comprises a case-based reasoning (CBR) shell that permits a framework user to use a case set comprising a set of case instance descriptions and generates a case-based reasoning system that receives user requests for query solutions and produces a query solution that can be incorporated into the set of case instance descriptions. The object oriented framework includes a
Control Flow component that controls processing of the CBR system, a Data Store component that manages all persistent data associated with the system, and a Presentation component that manages interface to users of the CBR system. After the 00 operating environment is O 97/40455 PC17US97/02574
established, the CBR system user can engage in operations such as query processing, building case history definitions, and modifying operating parameters, according to the object definitions. Thus, the case history descriptions and search queries comprise a set of object oriented classes that are organized into an inheritance hierarchy. In this way, a single framework can be used to generate, update, and use many different case histories and evaluate search queries with reduced development time. The extended framework thereby quickly and efficiently provides a variety of case-based reasoning systems.
In addition, the present invention permits dynamic, user adjustment of property weights used in specifying a search query and in specifying a case set from which a solution will be retrieved. Such dynamic weighting can be applied to a case-based reasoning system implemented in an object oriented environment or in a procedural environment.
In one aspect of the invention, the CBR system developer uses the framework to provide a set of case definitions, property definitions, and case base descriptions for the CBR system under development. The framework provides the CBR system shell having the Control Flow component, Presentation component, Data Store component, and a Query Engine component. The extended framework provides a CBR system that includes the case base and receives a current problem query, matches the current query description to the closest case history description in the case base, and produces a solution to the current query. The produced solution is validated and, if appropriate, is added to the case base. In this way, a CBR system developer can more quickly integrate a case base with a query engine and user interface to provide an operable CBR system. In another aspect of the present invention, property weights assigned to cases in the case base are dynamically adjusted during search and property weights are also assigned to the search query. In this way, users specifying searches can control which properties are used, what combinations of weights are used, and whether or not missing properties should penalize the case history matching.
For the case base, cases are stored as sets of property/value pairs and each property is assigned an importance rank value relative to the other properties of the case. The rank values are normalized, so that unspecified properties in a query that ordinarily would result in a lower match score instead can be compared in relative terms. Also, only properties specified in a query are considered in calculating the normalized rank score, so that unspecified properties do not skew the scoring. In a similar fashion, search queries are specified as property/value pairs and each property is assigned a normalized importance rank relative to the other properties of the search query and a match score is computed considering only the defined properties of the query. In this way, unspecified properties m a search query do not result in lower match scoring. Other features and advantages of the present invention should be apparent from the following description of the preferred embodiment, which illustrates, byway of example, the principles of the invention.
Brief Description of the Drawings Figure 1 is a category diagram of an exemplary Zoo
Administration framework that illustrates the principles implemented by the system of the present invention.
Figures 2, 3, 4, 5, and 6 are class diagrams for the exemplary Zoo Administration framework of Figure 1. Figure 7 is an object diagram for the exemplary framework of Figures 1 through 6.
Figure 8 is a functional block diagram of a computer processing system constructed m accordance with the present invention. Figure 9 is a flow diagram that illustrates the processing steps performed by the framework mechanism of the computer processing system illustrated in Figure 8.
Figure 10 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system in executing the build case structure definition step of Figure 9.
Figure 11 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system in executing the construct properties, values, and weight set processing step of Figure 10.
Figure 12 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system in executing the build case instance definitions processing step of Figure 9. Figure 13 is a flow diagram that illustrates the processing steps performed by the extended framework mechanism of the computer processing system illustrated in Figure 8 in producing a solution to a query. Figure 14 is a category diagram representation of the framework mechanism of the computer processing system illustrated in Figure 8.
Figure 15 is a class diagram representation of the CBR Session category implemented by the computer processing system illustrated in Figure 8.
Figure 16 is a class diagram representation of the CBR Base category implemented by the computer processing system illustrated in Figure 8.
Figure 17 is a class diagram representation of classes related to a case structure definition for the CBR system as implemented by the computer processing system illustrated in Figure 8.
Figure 18 is a class diagram representation that shows the functions implemented by the CaseDefinition category shown in Figure 17.
Figure 19 is a class diagram representation of the CaseDefinition category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 20 is a class diagram representation of the PropertyDefinition category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 21 is a class diagram representation of the CaseSet category and related classes implemented by the computer processing system illustrated in Figure 8. Figure 22 is a class diagram representation of classes related to a case history instance as implemented by the computer processing system illustrated in Figure 8.
Figure 23 is a class diagram representation of the Case category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 24 is a class diagram representation of the Value category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 25 is a class diagram representation of the Caselnstance category and related classes implemented by the computer processing system illustrated in Figure 8. Figure 26 is a class diagram representation of classes related to a case query as implemented by the computer processing system illustrated in Figure 8.
Figure 27 is a class diagram representation of the CBRQuery category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 28 is a class diagram representation of the Pattern category and related classes implemented by the computer processing system illustrated in Figure 8. Figure 29 is a class diagram representation of the
DataStoreComponent category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 30 is a class diagram representation of the ControlFlowComponent category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 31 is a class diagram representation of the PresentationPart category and related classes implemented by the computer processing system illustrated in Figure 8.
Figure 32 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a CaseDefinition is created.
Figure 33 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when Property, Value, and WeightSet objects are constructed.
Figure 34 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when ActionPrompt, Tracking, and IndexDefinition objects are constructed. Figure 35 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when Pattern objects are constructed.
Figure 36 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a ParseDefinition object is updated.
Figure 37 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a CaseDefinition object is stored.
Figure 38 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a Caselnstance Definition object is created. Figure 39 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 for selection of a CaseDefinition object.
Figure 40 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a Propertylnstance object is created.
Figure 41 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when Propertylnstance and Value objects are built. Figure 42 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when ActionPrompt objects are created and Audit methods are performed.
Figure 43 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when IndexDefinition objects are refreshed and a Caselnstance object is stored.
Figure 44 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a single CBR Query is received from a user.
Figure 45 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when building a pattern for the CBR Query.
Figure 46 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a received CBR Query is evaluated.
Figure 47 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a CaseMatch Set is built. Figure 48 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a PropertyMatch Set is built.
Figure 49 is a scenario diagram representation of the processing steps executed by the host processor illustrated in Figure 8 when a Query solution is evaluated. Description of the Preferred Embodiment
Overview- -Object Oriented Technology
The present invention was developed using Object-Oriented (00) framework technology. The preferred embodiment is implemented in an object oriented programming environment. Therefore, an exemplary 00 system will be described next. Individuals skilled in the art of 00 framework technology may wish to proceed to the Detailed Description section of this specification. However, those individuals who are new to framework technology, or new to 00 technology m general, should read this overview section m order to best understand the benefits and advantages of the present invention.
Object-Oriented Technology v. Procedural Technology
Though the present invention relates to a particular 00 technology (i.e., 00 framework technology) , the reader must first understand that, in general, 00 technology is significantly different than conventional, process-based technology (often called procedural technology) . While both technologies can be used to solve the same problem, the ultimate solutions to the problem are always quite different. This difference stems from the fact that the design focus of procedural technology is wholly different than that of 00 technology. The focus of process-based design is on the overall process that solves the problem; whereas, the focus of 00 design is on how the problem can be broken down into a set of autonomous entities that can work together to provide a solution. The autonomous entities of 00 technology are called objects. Stated another way, 00 technology is significantly different from procedural technology because problems are broken down into sets of cooperating objects instead of into hierarchies of nested computer programs or procedures. That is, procedural technology defines a system in terms of data variables and process functions whereas 00 technology defines a system m terms of objects and classes.
The Term "Framework"
There has been an evolution of terms and phrases which have particular meaning to those skilled in the art of 00 design.
However, the reader should note that one of the most loose definitions in the 00 art is the definition of the word "framework." The word framework means different things to different people. Therefore, when comparing the characteristics of two supposed 00 frameworks, the reader should take care to ensure that the comparison is indeed one of "apples to apples." As will become more clear in the forthcoming paragraphs, the term framework is used in this specification to describe an 00 technology system that has been designed to have core function and extensible function. The core function is that part of the framework that is not subject to modification by the framework purchaser. The extensible function, on the other hand, is that part of the framework that has been explicitly designed to be customized and extended by the framework purchaser as part of its implementation.
00 Framework
While in general terms an 00 framework can be properly characterized as a type of 00 solution to a programming problem, there is nevertheless a fundamental difference between a framework and a basic 00 programming solution. The difference is that frameworks are designed in a way that permits and promotes customization and extension of certain aspects of the 00 solution, whereas a basic 00 solution can be said to comprise a particular collection, or library, of classes and objects. In other words, frameworks provide an 00 programming solution that can be customized and extended to address individualized requirements that change over time. Of course, the customization/extension quality of frameworks is extremely valuable to purchasers (referred to herein as framework consumers) because the cost of customizing or extending a framework is much less than the cost of replacing or reworking an existing program solution.
Therefore, when framework designers set out to solve a particular problem, they should do more than merely design individual objects and specify how those objects interrelate. They should also design the core function of the framework (i.e., that part of the framework that is not to be subject to potential customization and extension by the framework consumer) and the extensible function of the framework (i.e., that part of the framework that i_s to be subject to potential customization and extension) . In the end, the ultimate worth of a framework rests not only on the quality of the object design, but also on the design choices involving which aspects of the framework represent core function and which aspects represent extensible function. ZAF--An Illustrative Framework
While those skilled in the art appreciate that framework design is necessarily an intertwined and iterative process, example design choices for a simplistic framework are set forth in the paragraphs that follow. It should be understood, though, that this is only an example framework that is being used in this specification to illustrate and best explain frameworks such that the reader can better understand and appreciate the benefits and advantages of the present invention. Framework designers determine what objects are needed for a framework mechanism by selecting objects from what is called the problem domain. The problem domain is an abstract view of the specific problem at hand. The example problem domain chosen for the illustrative framework is that of zoo administration. The specific problem presented is that of designing a framework that assists zoo keepers in the care and feeding of zoo animals. In the example, which will be referred to as a Zoo Administration Framework (ZAF) , an 00 framework designer would look to the zoological problem domain and decide that any ZAF would of necessity involve an abstraction that represents the relationship between zoo keepers and animals (i.e., represents how zoo keepers care for animals) . The framework designer would also likely recognize that zoo animals usually live in cages, pens, tanks, and other sorts of containment units. Therefore, the framework designer also would start with the idea that the framework would have to involve abstractions or mechanisms that represent all of these fundamental entities and relationships.
How ZAF is Designed
To begin the design process, the framework designer would likely begin with what is called a category diagram. Category diagrams are used to describe frameworks at a high level and to define how the framework components relate to one another. Figure 1 is a category diagram for the example framework ZAF. The notation used in Figure 1, and that used in the other figures of this specification, is explained in detail in the Notation section at the end of this portion of the specification. Each entity, or icon, in a category diagram represents groupings of data objects that perform a particular function. For the purposes of illustration, assume that the framework designer decides that ZAF should be made up of four components that, at a high level perspective, will be referred to as mechanisms: a Zoo Administration mechanism, a Zoo Keeper mechanism, an Animal mechanism, and a Containment Unit mechanism. As shown m Figure 1, the Zoo Administration mechanism has been designed to use the Zoo Keeper mechanism to administer the zoo. The Zoo Administration mechanism is therefore said to have a "using" relationship with the Zoo Keeper mechanism. (Again, please refer to the notation section of this specification for an explanation of this relationship and the other notation used in this specification. ) As discussed above, the Zoo Administration mechanism has been designed to have responsibility for overall control of ZAF. Accordingly, the Zoo Administration mechanism is responsible for scheduling the operation of the Zoo Keeper mechanism. Note also that the framework designer has designed the Zoo Administration mechanism to be a core function of ZAF, which means that it has been designed such that it will not be subject to potential customization and extension. The upper case block letter "C" in the category box for the Zoo Administration mechanism denotes this fact. Note further that the "uses" relationship between the Zoo Administration mechanism and the Zoo Keeper mechanism also has been designed as a core function such that it is not available for ultimate customization by the framework consumer.
The Zoo Keeper mechanism has been designed to be generally responsible for the care and feeding of the zoo animals. Accordingly, it uses the Animal and Containment Unit mechanisms to perform its tasks. Unlike the design of the Zoo Administration mechanism, however, the framework designer has designed the Zoo Keeper mechanism to be an extensible function, which again means that the Zoo Keeper mechanism has been designed to be available for modification and/or extension by the framework consumer to address future care and feeding requirements. This fact is denoted by the upper case block letter "E" in the Zoo Keeper mechanism category box.
The framework designer has designed the Animal mechanism to represent the animal side of the interaction between zoo animals and zoo keepers. Since the animal population in the zoo is something that changes on a regular basis, the Animal mechanism has similarly been designed as an extensible function. The Containment Unit mechanism interacts with the Zoo Keeper mechanism by representing individual containment units such as pens, tanks, and cages. Like the Animal mechanism, the Containment Unit mechanism has been designed as an extensible function such that it can handle future customization and extension requirements. Please note here, however, that even though the Zoo Keeper, Animal, and Containment Unit mechanisms have all been designed as extensible functions, the relationships between the mechanisms have been designed to be a core function of ZAF. In other words, even though it is desirable to give ZAF's consumers flexibility relative to the Zoo Keeper, Animal, and Containment Unit mechanisms, it is not desirable to allow ZAF's consumers to change how these mechanisms relate to one another. The framework designer next designs the classes and relationships that make up the mechanisms shown on Figure 1. A class is a definition of a set of like objects. As such, a class can be thought of as an abstraction of the objects or as a definition of a type of object. From the view of a computer system, a single object represents an encapsulated set of data and the operation or a group of operations that are performed by a computer system upon that data. In fact, in a secure computer system, the only access to the information controlled by an object is via the object itself. This is why the information contained in an object is said to be encapsulated by the object.
Each class definition comprises data definitions that define the information controlled by the object and operation definitions that define the operation or operations performed by objects on the data that each object controls. In other words, a class definition defines how an object acts and reacts to other objects by defining an operation or set of operations that is/are performed on the defined data. (Please note that operations are sometimes called methods, method programs, and/or member functions.) When taken together, the defined operation(s) and data are said to be the behavior of the object. In essence, then, a class definition defines the behavior of its member object or objects.
Figure 2 is an 00 class diagram that shows the fundamental classes that the framework designer has designed for ZAF. Each class representation indicates its relationship to the mechanisms shown on Figure 1. For example, the Zoo Keepers class is denoted as being from the Zoo Keeper mechanism. The fundamental classes of ZAF include: the Zoo Administrator class, which is part of the Zoo Administration mechanism; the Zoo Keeper Registry class, which is also part of the Zoo Administration mechanism; the Animal Registry class, which is part of the Zoo Keeper mechanism; the Zoo Keepers class, which is also part of the Zoo Keeper mechanism; the Containment Unit Registry class, which is also part of the Zoo Keeper mechanism; the Animals class, which is part of the Animal mechanism; and the Containment Unit class, which is part of the Containment Unit mechanism. It should be noted that the relationships between the classes have been designed as core functions of ZAF such that they are not available for ultimate modification by ZAF's consumers.
The Zoo Administrator class is the definition of the object that is responsible for the overall control of ZAF. Again, 00 classes only define the objects that interact to provide a solution to the problem. However, it is by exploring the characteristics of the class definitions that one is able to understand how the objects of the framework mechanism have been designed to provide a living solution that can be customized and/or extended to address future requirements.
The Zoo Administration class has been designed to have a "uses" relationship with the Zoo Keeper Registry class The framework designer has designed the Zoo Administration and Zoo Registry classes to be a core function of ZAF because the designer has decided that ZAF's consumers should not be allowed to modify the behavior of objects that are members of these class definitions. The Zoo Keeper Registry, which has what is called a "contains by reference" relationship with the Zoo Keepers class, is simply a class that defines an object that is a container for all zoo keeper objects. Accordingly, the Zoo Keeper Registry includes a definition for a lιst_zoo_keepers 0 operation. As will be described later, this operation is responsible for providing a list of Zoo Keepers objects to other objects that request such a list.
Figure 3 shows a lower level view of the Zoo Administrator class. Because objects of type zoo administrator have responsibility for overall control of ZAF, the Zoo Administrator class has been designed to include operations that perform tasks oriented towards zoo administration. The class definition includes the following five operations: 5_minute_timer () , add/delete_anιmal () , add/delete_contamment_unI t ( ) , add/delete_zoo_keeper() , and start_zoo_admm0.
The start_zoo_admιn() operation is responsible for starting ZAF. That is, a user or system administrator will interact with the start_zoo_admm() operation to begin administration of a zoo via ZAF. The start_zoo_admm0 operation has been designed to initiate the 5_mιnute_tιmer() operation such that, every five minutes, the 5_mιnute_tιmer0 operation instructs the Zoo Keepers objects to go out and check on the zoo animals. The add/delete_zoo_keeper() operation is responsible for interacting with users of ZAF to define additional zoo keepers (i.e., additional Zoo Keepers classes), to add additional zoo keepers (i.e., Zoo Keepers objects), and to remove Zoo Keeper classes and/or objects. As will become clear in the forthcoming paragraphs, each of the Zoo Keepers objects is responsible for performing a particular zoo task. Therefore, it is natural that a user of ZAF might well want to add a Zoo Keepers definition and object to handle an additional zoo task or to remove a definition or object that is no longer needed. The ZAF framework designer has provided this flexibility by designing the Zoo Keeper mechanism as an extensible function.
Like the add/delete_zoo_keeper 0 operation, the add/delete_anιmal {) operation is responsible for interacting with users to define additional zoo animal classes and objects and also to remove classes and objects that are no longer needed. Again, it is quite natural for a zoo to need to add and remove animals. The add/delete_contaιnment_unιt 0 operation is responsible for the definition of new Containment Unit classes and objects and for removal of classes and/or objects that are no longer necessary. Again, the framework designer has provided such flexibility by designing the Animal and Containment Unit mechanisms as extensible functions. Referring back to Figure 2, the Zoo Keepers class definition has a "uses" relationship with the Animal Registry, Animals, Containment Unit Registry, and Containment Unit classes. Since the value of ZAF is enhanced by allowing ZAF's consumers to customize and extend the Zoo Keepers, Animals, and Containment Unit classes, the ZAF framework designer has designed these classes as extensible functions. However, changing the behavior of the Animals and Containment Unit Registry classes would disrupt the basic operation of ZAF. Therefore, the framework designer has designed these classes to be core functions of ZAF. Figure 4 is a class diagram of the Zoo Keepers class.
However, before describing the details of Figure 4, it is worthwhile to point out that the class definitions shown on Figure 4 are ranked in a very simple ordering called a class hierarchy. A class, like the Zoo Keepers class, that represents the most generalized/abstract class in a class hierarchy is referred to as the base class of the hierarchy. The ordering of classes in a class hierarchy goes from most general to least general (i.e., from general to specific) . Less general classes (e.g., the Feeder class) are said to inherit characteristics from the more general class or classes (i.e., the Zoo Keepers class in this case) . As such, class definitions Feeder, Veterinarian, and Temperature Controller are said to be subclasses of the Zoo Keepers class. Inheritance mechanisms will be explored in more detail in the discussion associated with Figure 5.
As shown on Figure 4, the Zoo Keepers class definition contains a single operation definition, the check_animals 0 operation definition. The reader should also note that the Zoo Keepers class definition is marked as being an abstract class. Abstract classes are not designed to have objects created as their members, but are instead used to define a common interface/protocol for their subclasses. A class is said to be an abstract class when at least one of its operation definitions is a pure virtual operation definition. Pure virtual operation definitions are designed for the sole purpose of defining a common interface for subclass definition of that operation. In other words, the design of the actual behavior (i.e., the data and operations) is left to the subclasses themselves. In the case of the Zoo Keepers class definition, the Feeder, Veterinarian, and Temperature Controller subclasses define specific implementations of the pure virtual check_anιmals () operation definition that is contained in the Zoo Keepers class. An operation is marked as a pure virtual operation when it is set equal to 0.
It is important to note, though, that the common interface of a pure virtual operation definition must be honored by all subclasses such that requesting objects (called client objects) can use subclass member objects (called server objects) without needing to know the particular subclass of the server object. For example, whenever the object defined by the Zoo Administrator class needs a particular action performed, it interacts with a Zoo Keepers object. Because the interface to these objects was defined in abstract, base class Zoo Keepers and preserved in the subclass definitions for the check_anιmals () operation, the Zoo Administrator object need not have special knowleαge about the subclasses of any of the server objects. This has the effect of decoupling the need for the action
(i.e., on the part of the zoo administrator object) from the way in which the action is carried out (i.e., by one of the objects of the Zoo Keepers subclasses) . Designs (such as the ZAF design) that take advantage of the characteristics of abstract classes are said to be polymorphic.
Polymorphism is extremely important to 00 framework design because it allows the way in which something is done (called the implementation) to be changed or extended without effecting the mechanisms that depend on the fact that the action is actually performed. In other words, client objects need only understand that certain objects perform certain functions, not how those functions are actually carried out. This is one way in which a properly designed 00 framework can be readily customized and extended to satisfy future requirements.
As previously discussed, the framework designer has designed the ZAF framework such that Zoo Keepers objects interact with Animals and Containment Unit objects to perform their respective tasks. Figure 5 is a class diagram for the class hierarchy of the abstract class Animals. Because the Animals class definition is responsible for representing the characteristics and behavior of zoo animals, the framework designer has designed the abstract class Animals in a way that reflects this responsibility. As shown, the example class definition for Animals includes data definitions feed_freq, location, and temp_range and operation definitions get_temp_range ( ) , feed() , needs_food ( ) , needs__vet_visit 0 , and vet_visit() .
For the purposes of this framework overview, it is not necessary to explore each definition in detail. However, the temp_range data definition and the get_temp_range() and feedO operation definitions are good examples of well thought out framework design choices.
The feedO operation definition is designed to perform the actual feeding of the animals (i.e., through specific feeding apparatus, which is not shown) . The feedO operation is a pure virtual operation. Again, this means that the design of the class is such that the actual mechanism that performs the needed function has been left to be defined by the subclasses. Requiring subclass definition is a good design choice in cases like this where objects that are created as members of the subclasses have particularized needs. In the ZAF framework, for example, each type of animal is likely to have need for a particularized feeding apparatus, which not only makes definition of a generic feedO operation difficult, but valueless. By way of comparison, the framework designer has explicitly designed the get_temp_range0 operation such that it is not a pure virtual operation definition. This means that get_temp_range() has been generically defined as a default operation. As such, it is considered a virtual operation. Default operations are used to provide generic function to subclasses. The subclasses can simply use the default operations or they can customize or extend the default operations by redefinition. Redefinition of a default operation is called overriding the default operation.
Figure 5 shows that Mammals is a subclass of the class Animals and, as such, the Mammals class inherits all of the characteristics of the Animals class. The Mammals class is also designed as an abstract class, which again means that it has not been designed to have objects created as its members, but has instead been designed to provide a common interface for its subclasses. Subclass Mammals is further subclassed into classes Carnivore and Herbivore.
Because definition of the feedO operation has been left up to the subclasses, the subclasses Carnivore and Herbivore each have their own definition of the feedO operation. Again, this is a good design choice because meat-eating carnivores are going to have different needs than their plant-eating counterparts.
Temp_range is a data definition for the range of temperatures that coincides with that of the specific animal's natural habitat and the get_temp_range0 operation definition is designed to retrieve the temp_range for a specific animal and return it to a requesting client object. Subclass Reptiles contains its own data definition for temp_range and its own definition for the get_temp_range() operation. ZAF has been designed this way to point out that data definitions can be overridden just like operation definitions. Since many reptiles live in desert conditions, where nights can be very cold and days very hot, the default temp_range definition has been overridden m the Reptiles class to include time and temperature information (not explicitly shown on Figure 5) . This is another good design choice because it allows ZAF to treat reptile containment units differently than other containment units by allowing temperature adjustments to be made based on the time of day as well as on the current temperature of the containment unit itself.
U Figure 6 is a class diagram showing a lower level view of the Containment Unit class. The containment unit class contains a virtual operation definition adjust_temp 0. The adjust_temp0 definition defines both the interface and mechanism used to actually adjust the temperature m the containment units of the zoo (i.e., via heating and cooling mechanisms that are not shown) .
How the ZAF Objects Interact
Beyond designing the objects that make up the solution to the specific programming problem, the framework designer must also design how the individual objects interrelate. In other words, the objects must interrelate in way that takes advantage of the manner in which they were designed. As discussed, the way in which the defined operations of an object operate on the data defined for the object is called the object's behavior. While objects may be characterized as autonomous entities, it is still very important that each object exhibit a consistent behavior when interrelating with other objects. Consistent behavior is important because objects depend upon the consistent behavior of other objects so that they themselves can exhibit consistent behavior. In fact, consistent behavior is so important that an object's behavior is often referred to as the contract the object has with the other objects. When an object does not exhibit a consistent behavior, it is said to have violated its contract with the other objects.
When an operation of one object needs access to the data controlled by a second object, it is considered to be a client of the second object. To access the data controlled by the second object, one of the operations of the client will call or invoke one of the operations of the second object to gam access to the data controlled by that second object. One of the operations of the called second object (i.e., a server operation in this case) is then executed to access and/or manipulate the data controlled by the called object.
Figure 7 is an object diagram showing how the example objects of ZAF interact to assist zoo personnel m operating the zoo. A detailed analysis of the interaction of all of the ZAF objects is unnecessary for the purposes of this overview. However, the reader should review the following simple control flow to obtain a rudimentary understanding of how objects in an 00 environment interact to solve problems. As mentioned, an object is created to be a member of a particular class. Therefore, the object zelda the Zoo Administrator 706 is an object that is a member (actually, the only member) of the Zoo Administrator class. As such, object Zelda is responsible for overall control of ZAF. All of the Zoo Keeper objects have registered with the Zoo Keeper Register object [object 700] . Therefore, object Zelda obtains a list of the current zoo keepers by calling the list_zoo_keepers 0 operation [step 1] of the Zoo Keeper Register object. The Zoo Keeper Register object 700 has been created as a member of the Zoo Keeper Register class. For the purposes of illustration, assume that this occurs every five minutes as part of Zelda' s 5_mιnute_timer() operation. The Zoo Keeper Register object then responds with the zoo keepers list [step 2] . The list of zoo keepers includes Tina the Temperature Checker [object 714], Vmce the Vet. [object 740], and Fred the Animal Feeder [object 752] . Each zoo keeper has been created as a member of the Zoo Keepers class. In particular, objects Tina the Temp. Checker, Vmce the vet., and Fred the Feeder are respectively members of the Temperature Controller, Veterinarian, and Feeder subclasses.
Once the list of current zoo keepers has been returned to object Zelda 706, object Zelda instructs each zoo keeper in the list to check the animals by calling the check_anιmals 0 operation of each Zoo Keeper object. Only the call to Tina the Temp. Checker is shown, indicated as step 3. It should be noted that object Zelda did not need to understand the types of zoo keepers that were in the zoo keeper list, the number of Zoo Keeper objects in the list, or the specialized characteristics of any one Zoo Keeper object. Object Zelda uses the same interface (i.e., the check_animals 0 operation) to communicate with each Zoo Keeper object. It is then up to the individual Zoo Keeper objects to perform the task for which they have been created. Each Zoo Keeper object performs its assigned task through use of its own check_anιmals 0 operation. For example, object Tina's check_animals 0 operation retrieves a list of current animals from the Animal Registry object by calling the list_animals () operation [step 4] and then a list of containment units from the Containment Unit Register object by calling the list_cont_unιts() operation [step 61. Upon examining the animal list, object Tina's check_anιmals () operation determines that there are only two animals currently registered in the zoo, Sam the Snake [object 728] and Simba the Lion [object 718] . Object Tina's check_animals 0 operation then calls the get_temp_range() operations to get temperature ranges from objects Sam and Simba [steps 8 and 10] . Once the temperature ranges have been returned, the check_animals 0 operation of object Tina determines which containment units house the respective animals (i.e., Simba and Sam) and then calls the adjust_temp 0 operation of the appropriate containment unit (i.e., Lion Cage 7 in the case of object Simba and Snake Pit 3 in the case of object Sam) to adjust the temperature of the containment units [steps 12 and 13] . The adjust_temp() operation of each containment unit then completes the control flow by proceeding to adjust the temperature in a way that is appropriate for the animals contained in each containment unit. (That is, the temperature is adjusted based on time and temperature for Snake Pit 3 and based on time alone for Lion Cage 7.) The reader should note that the relationship between the check_animalε () operation and the adjust temp{) operations is polymorphic. In other words, the check_animals 0 operation of object Tina 714 does not require specialized knowledge about how each adjust_temp() operation performs its task. The check_animals 0 operation merely had to abide by the interface and call the adjust_temp () operations. After that, it is up to the individual adjust_temp () operations to carry our their tasks in the proper manner.
At this point, it is again worthwhile to point out that the ZAF system is an extremely simplistic framework that has been presented to help novice readers understand some basic framework concepts so as to better appreciate the benefits and advantages of the present invention. These benefits and advantages will become more clear upon reference to the following Detailed Description.
The Computer System of the Preferred Embodiment
Figure 8 is a block diagram of a computer system 30 constructed in accordance with the present invention. The computer system includes a central processing unit (CPU) 32 that operates in response to operator commands, which it receives from an operator/display interface 34 to which it is connected by a system bus 36. The CPU also communicates over the system bus with a main memory 38. The main memory is illustrated containing a variety of data structures, including application programs 40, objects 42, data 44, and an operating system 46. The main memory 38 is represented as a single entity, but those skilled in the art will O 97/40455 PC17US97/02574
appreciate that the main memory can comprise a combination of random access memory (RAM) , hard disk drives, optical disk drives, and other storage devices containing logically segmented storage locations . The operating system 46 preferably supports an object oriented programming environment such as provided, for example, by the C++ programming language. The application programs 40 are invoked, or launched, by a user through the operator/display interface 34. The application programs can be written in a variety of languages, including C++. The objects 42 are programming data structures of an object oriented programming language, such as C++.
The computer system 30 also includes a direct access storage device (DASD) interface 48 that is connected to the system bus 36 and also is connected to a DASD 50. Those skilled in the art will appreciate that the DASD 50 can receive and read computer program products 52 from, for example, integrated circuit chips, and also machine-readable storage devices such as magnetic media disks, on which are recorded program instructions whose execution implements the framework of the present invention. The machine- readable storage devices also can comprise, for example, media such as optical disks. The computer system 30 also includes a network interface 54 that permits communication between the CPU 32 and other computer systems 56 over a network 58. The other computer systems 56 can comprise, for example, computer systems similar in construction to the exemplary computer system 30. In that way, the computer system 30 can receive data into the main memory 38 over the network 58 after communication between the computer systems has been established by well-known methods that will be understood by those skilled in the art without further explanation. It is important to note that, while the present invention has been (and will continue to be) described in the context of a fully functional computer system, those skilled in the art will appreciate that the mechanisms of the present invention are capable of being distributed as a program product in a variety of forms, and that the present invention applies equally regardless of tr.e particular type of signal bearing media used to actually carry out the distribution. Examples of signal bearing media include: recordable- type media such as floppy disks and CD ROMs and transmission-type media such as digital and analog communication links. System Processing
Start-Up Processing Steps
Figure 9 is a flow diagram that represents a typical sequence of processing steps executed by the computer system illustrated in Figure 8 in processing a query following case-based reasoning (CBR) system generation and start-up processing. The flow diagrams that follow are supplemented by category and object- scenario diagrams described further below.
Each time the CBR system is used, start-up processing is performed that includes initialization of data objects for classes called CBR_Session, ControlFlowComponent, DataStoreComponent, PresentationComponent, and ChangeLog. In accordance with one aspect of object oriented programming conventional practice, object and class names will be written as words run together with initial capitals. As illustrated by the "ZAF" example described above, names are also written as words connected by an underscore. The objects and classes are described in greater detail below and are instantiated, or built, according to the object oriented programming environment provided by the computer system illustrated in Figure 8. The start-up processing is represented by the flow diagram box numbered 102.
The processing represented by the flow diagram box numbered 102 is further described by the following table of pseudo¬ code, in which line numbers are provided to indicate ordering of processing steps:
Table 1. Start-Up Processing.
1 Construct/Initialize CBR_SessionComponent;
2 Construct/Initialize ControlFlowComponent;
3 Construct/Initialize DataStoreComponent; 4 Construct/Initialize PresentationComponent;
5 Construct ChangeLog;
6 Execute main control flow;
7 Display menu of user options such as:
8 Single Query, 9 Build CaseDefinition,
10 Build Caselnstance;
11 Reduce Changes ChangeLog;
12 Insert ChangeLog DataStoreComponent;
13 Insert CBR_Session DataStoreComponent; In the preferred embodiment, the CBR system is implemented in an object oriented programming environment. Therefore, the processing represented by the Figure 9 flow diagram box numbered 102 (and described in the pseudo-code of Table 1) comprises establishing the necessary processing environment. Such processing includes constructing and initializing a CBR_SessionComponent object to control processing m the CBR system and determine the environment required by the user for additional processing, as represented by line 1 of Table 1. The information received from the CBR_SessionComponent guides construction of a ControlFlowComponent object, a DataStoreComponent object, and a PresentationComponent object, as indicated by lines 2-4 of Table 1. A ChangeLog object also is constructed, as represented by line 5, to store system selections and changes by the user.
CBR Svstem Input- -Query Processing, Case Definitions, Search Patterns
After the system environment is established, the user can invoke various CBR system options, specifying query processing, building case definitions, or building case instances. Preferably, the user selects and defines such options in the mam control flow through the user interface, by selecting menu options shown on the user display screen. These exemplary options are specified in lines 6-10 of Table 1. Those skilled in the art will appreciate that associated object oriented "destruct" operations (not listed in the pseudo-code) will be performed at the conclusion of CBR system operations to delete the objects that were constructed and/or initialized. Before any destruct operations, the CBR system changes initiated by the user are recorded in the ChangeLog object, as represented by line 11 of Table 1. The recorded changes comprise processed information that might be required in a future system operation and therefore are saved in a format for retrieval using the DataStoreComponent, as indicated by line 12. The information in the CBR_Sessιon object also is saved for retrieval at the next system operation, as represented by line 13. As part of CBR processing, users may build case structure definitions, which specify how case instance descriptions will be stored. The data objects comprising each case structure are built, again according to the object oriented programming environment provided by the computer system illustrated in Figure 8. The case structure definition processing includes parsing definitions, which W 97/40455
are necessary to define how similar cases are recognized and problem descriptions will be analyzed. This processing is represented by the flow diagram box numbered 104. The flow diagram box numbered 106 indicates that the case instance (case base) definitions are received and built next. In the preferred embodiment, the case instance objects follow the structure and behaviors specified by the case structure definition. It should be noted, however, that the case instance descriptions need not comprise object oriented data. In terms of programming languages, the case instance definitions are metadata for the case instance objects.
In the next step of system processing, indicated by the flow diagram box numbered 108, the system receives a problem description (query) from a CBR system user and builds a query, which is used to query the case base. The processing of the flow diagram box numbered 108 includes evaluating the query by retrieving the closest matching case (or cases) from the case base. This is described in greater detail below. After evaluation, the CBR system receives the next CBR task, such as a next search query, at the flow diagram box numbered 120. The next task could be, for example, to build additional search queries, case definitions, or case instances.
The remaining flow diagrams provide further detail descriptions of the processing steps generally described in connection with Figure 9.
Case Structure Definition Processing
Figure 10 is a flow diagram that represents the processing steps executed by the computer system illustrated in Figure 8 in performing the case structure definition processing of the Figure 9 flow diagram box numbered 104. The case structure definition processing provides the means for a user to define a new case structure for use by the extended framework system and to modify existing case structures. A case structure definition is a definition, or specification, of the attributes, properties, and relationships between the objects of the case base. Thus, the case structure definition informs the CBR system how the data comprising the case base will be organized and stored.
The Figure 10 flow diagram box numbered 132 indicates that the first step in the case structure definition processing is to create and/or retrieve and document the case definition. In the object oriented programming environment, such processing includes constructing a CaseDefinition object. That is, the processing represented by the flow diagram box numbered 132 is to receive input from a user that indicates the case description data structure m terms of the data objects comprising that data structure. The received input can be a previous description or a selection of a previously defined description. Receiving the data structure from the user permits greater flexibility in the details of the extended (CBR) system and does not unduly restrict the framework user.
The processing represented by the Figure 10 flow diagram box numbered 132 includes constructing the CaseDefmition object and displaying a user interface screen that permits the framework user to build various elements (comprising data objects) of the CaseDefmition. A CaseSet object is then constructed, which includes a determine 0 method that permits the user to select the CaseSet to be associated with the newly defined CaseDefmition. In particular, all existing CaseSet objects are retrieved by the DataStoreComponent object and the list of case sets is displayed to the framework user for selection.
The case structure definition processing next includes constructing a ParseDefmition object for the selected CaseSet. The ParseDefmition can be retrieved by the DataStoreComponent object. In processing described further below, the user is provided with the option of changing the parsing definition again, before the parsing definition is stored by the DataStoreComponent object. If a user has entered data for an initial problem description for the CaseDefmition object, then parsing methods of the ParseDefmition class are executed to parse the Description object mto searchable components.
The option to retrieve a case definition (in contrast to creating one) as indicated in the flow diagram box means that a framework user is free to use previously defined case descriptions, thereby reducing the work involved m creating new CBR applications. The documentation of the case definition can take a variety of forms, depending on the choice of the framework provider. See, for example, the section entitled "Notation" on representing object oriented data structures, located at the end of this Specification.
Case Properties, Values, and Weights Entry and Updating
The next case definition processing step in Figure 10, represented by the flow diagram box numbered 134, is to enter and/or update the properties for the case definition from the prior processing step. Again, the framework user is free to specify the case description properties, thereby providing maximum flexibility to the framework user and avoiding undue restriction. The processing represented by the flow diagram box numbered 134 permits the framework user to define Properties class attributes associated with the CaseDefinition object. The Properties define what data is permitted for defining Caselnstance objects that are used with a selected CaseSet. The processing is repeated for each property that is associated with the CaseDefinition object. Figure 11 is a flow diagram that represents processing steps executed by the computer system in performing the case definition properties update processing step. That is. Figure 11 represents the processing executed in the Figure 10 flow diagram box numbered 134. The processing represented by the flow diagram box numbered 152 of Figure 11 includes constructing a PropertyUsage object that permits the framework user to input property information. The processing further includes building a PropertyDefinition object, represented by the flow diagram box numbered 154. This involves the user selecting (using a determine0 method of the PropertyUsage object) which property definition to include. The allowable property definitions for the selected case set are retrieved by the DataStoreComponent and are shown to the user for selection. If a new PropertyDefinition object is being built, appropriate input prompt information is displayed to the user so the information can be received. Such prompting is implemented by the user interface according to the framework user.
The properties processing permits the user to add allowable values, which are associated with the PropertyDefinition object being added to the new case definition. This is represented by the Figure 11 flow diagram box numbered 156. A value can be either a simple value or a compound value, and each case is constructed and displayed for input from the user as the user selects and/or adds to the values. Finally, the user defines the allowable weighting.
Accordingly, a WeightSet object is built and displayed, comprising chosen weight definitions, represented by the Figure 11 flow diagram box numbered 158. Weight values are later associated with properties of case instances, as described below, and are used by the query engine to select the closest match to the current problem. As with the case structure itself, the weight structure may be received from the framework user to thereby permit greater flexibility in the details of the extended (CBR) system and not unduly restrict the framework user. As new definitions for properties, values, and weights are created or changed, the processing updates the change log (that is, creates ChangeLog objects) to reflect the changes. This is represented by the Figure 11 flow diagram box numbered 160. This completes the properties definition processing.
Action Prompt, Tracking, and Index Definitions Returning to Figure 10, the next processing step of the case structure definition processing is represented by the flow diagram box numbered 136, which is to enter and/or update action prompt, tracking, and index definitions. The processing represented by the flow diagram box numbered 136 includes constructing an ActionPromptDefmition object, a TrackmgDefmition object, and an IndexDefmition object. The construction of such objects can be accomplished m any order. Each CaseDefinition can have more than one of each of such object elements.
Using the DataStoreComponent object and its methods, the framework user associates action prompt definitions to the case definition. An ActionPromptDefmition object is constructed and displayed to the user to permit the user to input information. Accordingly, a list of permissible definitions for the chosen case set is retrieved and displayed to the user for selection, or the user can decide to build a new ActionPromptDefinition object. Any updates or creations are added to the ChangeLog object. Similar processing would be followed for the creation and/or building of the tracking definitions and index definitions to be added to the case definition.
Search Pattern Construction
The next processing step is represented by the Figure 10 flow diagram box numbered 138, which indicates that the framework constructs Pattern objects that are associated with the CaseDefmition data object. The processing includes constructing a Pattern data object. The Pattern object is displayed to the framework user to permit the user to input pattern information. A Pattern object consists of one or many single Propertylnstance objects and/or CompoundPropertyValue objects. As these objects are added, each is constructed and displayed to the user for mput of the information. The appropriate objects are built and values are added, comprising either simple or compound values. The Pattern limits, or constrains, the combinations of property values that can be defined in case instances of the case definition.
Case Set Parsing Definitions
The next processing step is represented by the Figure 10 flow diagram box numbered 140, which indicates that the framework user updates Parse definitions that are associated with the case set into which the new case definition will be added. The processing includes permitting the user to select a parse definition, such as by displaying a parse definition screen for selection of the parse definition. The selected parse definition is checked for any errors or data structure incompatibilities. As noted above, in the preferred embodiment, changes to the CBR system are recorded in a change log history. The change history can be used, for example, for providing an audit trail, failure recovery, or undo of edit operations.
Completion of Case Definition; Storing the Case Definition
The next processing step is represented by the Figure 10 flow diagram box numbered 142, which indicates that the framework stores the case structure definition. The store processing includes inserting all of the defined objects in the appropriate data store and destructing each one of the objects not needed after storing. The destruction completes the CaseDefinition processing.
Case Instance Definition Processing; Case Set and Parsing Selection
Figure 12 is a flow diagram that represents the processing steps executed by the computer system of Figure 8 in performing the case instance definition processing of the Figure 9 flow diagram box numbered 106. The case instance definition processing provides the means for a user to define new problem description-solution pairs, called history cases, for inclusion in the case base and to perform maintenance on existing cases. Each problem description-solution pair, or case instance, has a data structure specified by the case structure defined in the prior processing step (Figure 9) . Similar processing would be used to update case instances by first retrieving them and then updating them via the user interface. Figure 12 shows that the first processing step performed in defining case instances is to create a new case instance definition or retrieve an existing definition, as represented by the flow diagram box numbered 172. That is, the framework must determine the data structure of the incoming data. The Caselnstance data object is first constructed according to the object-oriented programming environment of the computer system. After the Caselnstance object is constructed, the user determines the CaseSet to be used. This is accomplished when the user enters data that is used to search for a specific CaseSet from a retrieved list of CaseSet objects to contain the current Caselnstance object. A CaseSet object collects Caselnstances, which conform to the structure of the case definitions associated with the CaseSet object. This can be used to logically separate cases for search purposes.
After the case set is selected, the next step in the processing of the flow diagram box numbered 172 is for the appropriate ParseDefinition objects to be retrieved. This processing permits the user to select the type of parsing that will be used. The user may select tri-string or token parsing either individually or together, as desired, to parse the input data (problem description or query) . The tri-string parse will break down the input data in successive three-character groups. This type of parsing permits some so-called "fuzzy" matching and tolerance for incorrectly spelled words in the input data. The token parse breaks down each word in the input data into a "base" or token word, essentially stripping predetermined prefix and suffix combinations from the individual words. Common synonyms also can be handled by the token parse.
Selection of Case Definition
The next processing step, represented by the flow diagram box numbered 174, is to select the case definition that will control the structure of the new case insta- *•. The "select Case Definition" processing of the i JW diagr.. box numbered 174 includes interactions necessary ror the sel .ion of a CaseDefinition object and the assignment of property and value information to the defined case. The stored CaseDefinition objects are first retrieved to permit the user to select which CaseDefinition object should be used. Next, the objects necessary for populating the CaseDefinition objects with the proper data attributes are constructed. The attributes include objects called PropertyDefinition, ActionPrompt, IndexDefinition, TrackingDefinition, and Incident, which are created and retrieved by the DataStoreComponent. These are described further below.
Property Instance/Incident Processing
The next processing step, represented by the Figure 12 flow diagram box numbered 176, is to create a Propertylnstance data object. The "create Property instance" processing creates the Propertylnstance data objects for the previously selected Caselnstance based on either the data from an Incident object or by creating new Propertylnstance objects from user input data. In creating the property instance objects, a list of Incident objects may be first retrieved to permit selection of a stored Incident object as the source for building a Caselnstance object. As noted previously, the DataStoreComponent is the mechanism through which a user can retrieve stored data such as for selection of a stored Incident object. A "convert-to-case" method identifies all known Property Instance/Value pairs from the Incident and creates objects for such pairs for the newly selected Caselnstance. These Propertylnstance and Value objects can then be modified if necessary for the Caselnstance object. Additional Propertylnstance objects can then be selected from a list of all PropertyDefinition objects that are valid for the current CaseDefinition object. Again, selection of stored objects will be accomplished through the DataStoreComponent. The user may access additional PropertyDefinition objects if necessary, using the DataStoreComponent. Similarly, new PropertyDefinition objects can be stored into persistent storage using the DataStoreComponent. Lastly, the flow diagram box 176 processing finishes with update of the ChangeLog to reflect all changes made by the user.
Build Values for the Property Instance
The next processing step, represented by the Figure 12 flow diagram box numbered 178, is to build Value objects for the Propertylnstance objects and assign weights to the properties of those Value objects. The "build Values" processing permits building the Value objects associated with the Propertylnstance objects, constructing the Weightlnstance objects, and inferring additional PatternValue objects. First, the values allowed for the current selected CaseDefinition object are listed for selection by the user. This controls the structure and values of property instances, and indicates if users can also add new properties to the case instance and case definition. If the user decides to add a new Value object, then the user selects between the SimpleValue and CompoundValue object types. A SimpleValue is a unitary value type, while a CompoundValue is a combination of one or more SimpleValues. If value objects are added or changed, they are reflected in the ChangeLog.
The WeightDefmition objects are retrieved from storage (from the appropriate data objects, using the DataStoreComponent) for user selection. If the user creates a new WeightDefmition object, the new object is stored and the ChangeLog is updated. After the new Propertylnstance, Value, and weight objects are created or selected, the processing to infer Value Pattern objects will enhance the Caselnstance object with additional Propertylnstance objects and/or Value objects that can be determined based on the case definition structure and constraints. In this way, the infer process checks the query against further constraints that might be possible to extract from the case definition This completes the processing of the flow diagram box numbered 178.
Next, as represented by the decision box numbered 179, the CBR system checks to determine if additional property instances are needed. That is, an "infer" operation will determine if the values and weights provide sufficient constraints on the defined case instances to quickly lead to a solution set. For example, if case instance properties that are important (as indicated by ranking data) have not been specified by the user, the system will attempt to enhance the case instance definition by repeating the property instance and value/weight building steps represented by the flow diagram boxes numbered 176 and 178. Thus, if needed, such constraint processing is repeated by looping back (a negative outcome from the decision box 179) .
With the processing represented by the Figure 12 flow diagram box numbered 178, the framework user can enter and/or update the values and weights for each property associated with a case instance This involves storing the case instances mto the case base. It should be appreciated that loading the case base need not be done one by one for each case instance. Rather, a data file can be prepared and stored at an appropriate computer data base location. That is, the case instances can be loaded in their entirety. The data file, comprising multiple case instance objects or indexes, can be retrieved using the DataStoreComponent and loaded. In this way, the "build values" processing need not be repeated at every invocation of the CBR system.
Value and Weight Processing The last processing steps of the property instance processing are for entering and/or updating the weight values for each of the properties associated with the case instances. The weight values are applied via the weight structure to assign rank values to the problem descriptions in the case base and thereby permit the query engine to identify and select the case history instance that most closely matches the current problem.
Thus, after the values processing of the flow diagram box numbered 178, the next case instance definition processing is represented by the Figure 12 flow diagram box numbered 180, which is to create ActionPrompt and Audit objects and to audit the case instance that has been built. In the action prompt/audit processing, ActionPrompt objects are first constructed and then are retrieved to permit user selection of existing ActionPrompt objects or user creation of new ActionPrompt objects. If new objects are created, they are inserted into the appropriate DataStoreComponent objects of the data storage and the ChangeLog object is updated to reflect the addition. After the construction of the ActionPrompt objects, a series of Audit methods are performed to ensure valid PropertyUsage attributes for the selected CaseDefmition, PropertyValue attributes for the PropertyUsage, ActionPrompt, WeightDefinition and WeightSet, and PatternCase objects.
The next processing step, represented by the Figure 12 flow diagram box numbered 182, is to create refresh indexes and store the Caselnstance. The box 182 processing includes refreshing the IndexDefmition objects by constructing Index objects and IndexEntry objects. The IndexDefmition objects must be refreshed whenever the referenced items are changed or new items added. After the refresh, each element of the newly created Caselnstance objects are stored in the data base with an insert operation. Next, the processing of the flow diagram box 182 stores the Propertylnstance and associated Value and Weightlnstance objects.
The flow diagram box 182 processing also stores the ActionPromptInstance, Indexlnstance, and IndexEntrylnstance objects for each Caselnstance m the data base. Finally, the "build Case Instance" processing of box 182 includes destructmg each one of the O 97/40455 PC17US97/02574
objects not needed after the data storage. This concludes the case instance definition processing. After completing the case instance definition, processing continues with the Figure 9 flow diagram box numbered 108.
Evaluating the CBR Query
Figure 13 is a flow diagram that represents the processing steps executed by the computer system illustrated in Figure 8 in operating the query engine to generate a solution to a received current problem. That is, Figure 13 represents the processing carried out in the Figure 9 flow diagram box numbered 108 that specifies the step of querying the case base, including evaluating the CBR query by retrieving the case instance set that most closely matches the current problem.
The first step in matching the closest case instance set, as represented by the Figure 13 flow diagram box numbered 192, is to obtain the query information from the CBR system user and build a CBR query on the case instances. In the preferred embodiment, the user query is represented by a CBR Query object. Next, the system constructs a case set that contains the case instances (the data descriptions) against which a received query will be searched. This step is represented by the flow diagram box numbered 194. After the user provides the query and the query is transformed into a query object, the user builds a search pattern, which further defines and specifies what the query is searching for. The search pattern, for example, can specify sets of cases with which query matches will be tested. The search pattern processing is represented by the Figure 9 flow diagram box numbered 196.
The next processing step, represented by the Figure 13 flow diagram box numbered 198, is to search the case base and retrieve the case history instances with property values that match the property values of the current problem, in accordance with a parse definition defined previously. The flow diagram box numbered 200 indicates that the next processing step is to use match scoring to score each of the retrieved cases and thereby determine the closest matches to the current problem. The match score is a measure of the number of property values shared in common between a query and a case instance. In this way, the match score indicates the similarity of the query to a case instance description. Checking for a Solution After Query Scoring
At the decision box numbered 202, the system checks for a solution by calculating an evaluation score. If the score indicates a sufficiently close match, then the retrieved case or cases are designated a solution or solutions. If there is one or more solution, an affirmative outcome at the decision box 202, then the next processing step is for the CBR system to generate a solution presentation and provide it to the user, who then can continue with further actions and processing, if desired. This step is indicated by the flow diagram box numbered 204. The PresentationComponent is the mechanism through which data (such as the solution cases) is provided to the user. The solution can be provided, for example, in the form of one or more screen displays of the solution cases. The further user actions can include submitting a new query, saving the current query, or saving the query as an incident. The CBR system then updates the case base, if appropriate, as indicated by the flow diagram box numbered 206. The DataStoreComponent is the mechanism through which data is stored or retrieved from persistent storage of the system, such as DASD files. This completes the CBR system processing for the received query.
If no solution was found, a negative outcome at the decision box numbered 202, then the CBR system ranks the properties by computing a property values score to guide the user in providing additional information. The user may execute prompts to aid in this. This processing is represented by the flow diagram box numbered 208. The property values score permits the user to determine which additional information would be of the most benefit in finding a solution. The PresentationComponent is the mechanism through which additional priority values are obtained from the user. Ranking of the properties, as described further below, is carried out to determine the relative importance of properties specified in the case structure definitions so as to identify the properties that contribute the most to solution scoring and therefore move the system most rapidly to finding a solution. The processing of the ranking step (box 208) includes system prompting that asks the user to provide additional property values. After property ranking, processing returns to the flow diagram box numbered 196 to modify the search pattern, if desired. Thus, the steps represented by the boxes numbered 196, 198, and 200 can be repeated as necessary until a query solution is identified. Dynamic Weighting
Conventionally, many case based reasoning systems carry out query evaluation match scoring that will effectively penalize (or fail to penalize) attributes or categories that are unspecified in either a query or in a case instance. The system user has no control over such processing, as it is part of the evaluation scoring methodology selected by the system designer.
In performing match scoring, represented by the Figure 13 flow diagram box numbered 200, the preferred embodiment permits the user to control whether or not cases and search queries with unspecified properties will be "penalized" by providing dynamic case property weighting and scaled query weights to affect the evaluation score. Case property weighting permits the user to assign differential weights to specified properties of cases to emphasize or minimize particular properties of cases. Scaled query weights permit a user to control the extent to which properties specified in a query are used in scoring.
It should be noted that the dynamic weighting can be implemented independently of the object oriented aspects of the preferred embodiment. Thus, although the description of dynamic weighting in the preferred embodiment will assume an object oriented implementation, in keeping with the design of the preferred embodiment, the features of the dynamic weighting and the processing described further below can be implemented in a procedural programming environment. Those skilled in the art will be able to readily construct a procedural implementation of the dynamic weighting based on the following explanation.
Case instances are stored as sets of property/value pairs and each property is assigned an importance rank value relative to the other properties of the case when the case is stored. That is, value ranking is assigned at the time the case is added to the case base. In accordance with the present invention, at the time a query is evaluated and a score is computed, the rank values are normalized, so that unspecified properties in a query -hat ordinarily would result in a lower match score instead c > e compared in relative terms. Normalizing the values - _π ..s penalizing less precisely defined cases in the data base, as explained below.
Generally, case-based reasoning systems (and some document retrieval systems) use weighted matching techniques to find the cases in a history (case instance) data base that are the most similar, and therefore the closest match, to a set of specified search criteria. This technique penalizes history cases in the data base that are more completely defined than others, because for many queries a large percentage of the properties will be unspecified. For example, a query might specify a set of five different properties of a case instance (the total number of properties available to define a case instance is specified by the case structure definition) . If a case in the data base (a history case) does not have data concerning one of the properties, the evaluation score for that case can be reduced relative to other history cases that have the property defined because a simple summation of property-value multiplication products will result m a zero for the missing property. The score for the case with the unspecified property might be lower than another completely specified case, even if the completely specified case is not as close a match on the four remaining properties. Thus, it might be desirable to avoid penalizing extra case properties. In accordance with the invention, if unspecified properties should not penalize a case, then weights for that property are normalized across the weights of the other properties.
Many weighted matching techniques also penalize a history case if properties are specified in the query that are not defined for the case. The users making queries typically have no control over the manner in which unspecified properties are handled. Some systems attempt to address the problem by requiring those who define cases to provide weights to be associated with each property to allow for unmatched property values, matched property values, or unspecified properties Such weights are static and cannot be adjusted for specific searches. This approach is not satisfactory, because the weights are static, cannot be changed by the user, and make case definition complicated.
Dynamic Weighting of Properties
The present invention permits dynamic weighting so that each property of a history case is assigned an importance ranking relative to the other properties of the case when the case is stored mto the case base. The weights are then accounted for m the match scoring evaluation processing of the query in two ways. First, if the query is one in which unspecified properties should result m lower scoring of a history case, then a standard normalization of the property rankings is used as the weighting factor for each property in the case definition. Second, if unspecified properties should not penalize scoring, then only the history case properties specified in the query will be normalized in accordance with their ranking and computed as the case is scored. This permits properties to be indicated as "mandatory" for scoring by simply making the relative ranking of the property sufficiently large that the solution case set threshold is not reached without that property being present in the history case. In particular, match scoring in accordance with the invention is performed according to the following formula:
MS = qf * dnqw cf dncw; where
MS is the computed match score for a case; qf is a query weighting usage factor; dnqw is a dynamically normalized query weight for a property; dnqw is the sum of the normalized query weight set
values where case instance property values match query pattern property values; cf is a case weighting usage factor; dncw is a dynamically normalized case weight for a property; dncw is the sum of the normalized case weight values
where case instance property values match query pattern property values.
Each query includes a scaling factor that indicates the relative importance of query weights as compared to case weights as the match scores are calculated. A case usage factor (cf) of 1 and query usage factor (qf) of 0 indicates that query weights are to be ignored. A query usage factor (qf) of 1 where the case usage factor (cf) is 0 indicates that case weights should be ignored. Combinations of values between these extremes permit scaled use of O 7/40
the case and query usage weights and gives users the ability to combine the knowledge of case base developers with their user knowledge of what is important to specific queries. The case factors can be received in an interactive manner from the display and keyboard input devices illustrated in Figure 8 or can be received as larger data transfers, such as a data file from the direct access storage device or network shown. Similarly, the query factors can be received at the time the query is received.
For each query search, the sum of the query weighting usage factor and the case weighting usage factor will be 1, so that:
qf + cf = 1.
For each case being scored, the query weighting and case weighting are normalized, so that the sum of all the query weights (and case weights) , without regard to matching against case instance property values, will be 1:
Σ dnqw = 1 and
Σ dncw = 1.
If desired, the technique described above can be extended so that a different usage factor is received for each property. Such property usage factors provide users with greater control over the relative importance of properties when cases are scored. That is, the user is not forced to accept the decision of the case base developer as to the relative importance of the properties. The property usage factors are employed by multiplying the usage factor for each property by the weight factor for each property. It also should be noted that techniques for matching and scoring multiple value properties can be integrated with the multiple property usage factor described above. In such a circumstance, a property match value is first computed and then is multiplied by the weighting and usage factors to derive the match score.
Dynamic Weighting Examples
Example A
The dynamic weighting of case properties and query properties will be better understood with reference to examples of weighting calculations. In the first example that follows, summarized below in the table entitled Example A, a history-only query analysis (case factor = 1) is used with a weighting in which there is no penalty associated with either query or case properties that are unspecified. Other examples follow and are discussed in turn, covering cases where unspecified properties are penalized and not penalized, and where the query factor is zero (case factor = 1) and non-zero (case factor - 0.75) .
Example A. Penalize Neither Extra Query Nor Extra Case Properties.
Query Factor = 0 Case Factor = 1
Query Cases Prop. Value Ranking ID Prop. Value Ranking Weight
A Testl 1 A Testl 1 .1
B Test2 3 B Test2 2 .2
C no 1 C no 4 .4
D yes 4 D yes 1 .1
E Test3 1 E Test3 2 .2
A NoTestl 1 .1
B Test2 5 .5
C no 2 .2
D no 2 .2
A Testl 2 .25
B Test2 2 .25
C no 1 .125
D yes 1 .125
E Test3 2 .25
F Test4 2 *
MSI *= (.1 + .2 + .4 + .1 + .2) * (1) — 1 .0
MS2 = (0 + .5 + .2 + 0) * (1) = 0 .7
MS3 = (.25 + .25 + .125 + .125 + .25) * (1) = 1 .0
Example A illustrates dynamic adjustment of case weights so properties si .fied in the query, but not specified in a history case, will nt result in a lower evaluation score for that case. This performance is achieved by ignoring the unspecified properties when the normalized weights are calculated. Note, in particular, the processing for the history case with ID=3. For Case 3, Property F is unspecified. The match score calculated for Case 3, listed at the bottom of Example A, ignores the unspecified value from the calculation. Because only case weights are being used for ranking, no dynamic adjustments are required for the extra query property that is present when compared against Case 2.
Example B
The next example, Example B, illustrates a query in which unspecified properties are penalized:
Example B. Penalize Both Extra Query And Extra Case Properties.
Query Factor = 0 Case Factor = 1
Query Cases Prop. Value Ranking ID Prop. Value Ranking Weight
A Testl 1 1 A Testl 1 .1
B Test2 3 B Test2 2 .2
C no 1 C no 4 .4
D yes 4 D yes 1 .1
E Test3 1 E Test3 2 .2
A NoTest 1 .091
B Test2 5 .454
C no 2 .182
D no 2 .182
E * 1 .091
A Testl 2 .2
B Test2 2 .2
C no 1 .1
D yes 1 .1
E Test3 2 .2
F Test4 2 .2
MSI = (.1 + .2 + .4 + .1 + .2) * (1) = 1. 0
MS2 = (0 + .454 + .182 + 0) * (1) = 0. 636
MS3 = (.2 + .2 + .l + .l + .2 + 0) * (1) = 0. 8
Example B illustrates dynamic adjustment of case weights so that either properties specified in the query but not defined in a history case, or properties specified in a history case but not in the query, result in a lower evaluation match score. For the case of Example B, this performance is achieved by including the query specified relative ranking for Property E in the dynamic calculation of the weights. Note that, because only case wights are used in the scoring, no adjustment is made to the query weights to allow for the extra property specified in Case 3. Thus, the scoring for Case 3 is effectively penalized for the unspecified property F by treating that property as an unmatched value.
Example C
Example C below is an example of the case where no penalty is associated with extra properties in either the query or in history cases:
Example C. Penalize Neither Extra Query Nor Extra Case
Properties.
Query Factor = 0.25 Case Factor = 0.75 Query Cases
Prop. Value Ranking Weight ID Prop. Value Ranking Weight
(1,3) (2)
A A T Teessttll 1 .1 .111 1 A Testl 1 .1 BB TTeesstt22 3 .3 .333 B Test2 2 .2
C no 1 .1 .111 C no 4 .4 D yes 4 .4 .444 D yes 1 .1 E Test3 1 .1 * E Test3 2 .2
2 A NoTest 1 .1 B Test2 5 .5 C no 2 .2 D no 2 .2 3 A Testl 2 .25 B Test2 2 .25 C no 1 .125 D yes 1 .125 E Test3 2 .25 F Test4 2 *
MSI = = (.1 + .3 + .1 + .4 + .1) * ( .25) + (.1 + .2 + .4 + .1 + .2) * ( .75) 1. 0
MS2 = - (0 + .333 + .: 111 + 0 + 0) * ( .25) + (0 + .5 + .2 + 0 + 0) * ( .75) 0. ,625
MS3 = = (.1 + .3 + .1 + .4 + .1) * ( .25) + (.25 + .25 + .125 + .125 + .25) * ( .75) 1. .0
Example C illustrates dynamic adjustment of case weights so properties specified in the query but not present in a history case does not result in a lower evaluation match score. This performance is achieved ignoring an unspecified property when the normalized weights are calculated. Thus, in Case 3, the unspecified Property F is ignored in the match scoring shown at the bottom of the Example C text. Similarly, because query weights are used for scoring, such weights must be dynamically adjusted when comparing against Case 2 by not including the unspecified Property E in the normalization calculation.
Example D
Example D below is the case where a penalty is associated with extra properties in both the query and in a history case:
Example P. Penalize Both Extra Query And Extra Case Properties.
Query Factor = 0.25 Case Factor = 0.75
Query Cases
Prop. Value Ranking Weight ID Prop. Value Ranking Wedcght
(1,3) (2)
A Testl 1 .1 .111 1 A Testl 1 .1
B Test2 3 .3 .333 B Test2 2 .2 C no 1 .1 .111 C no 4 .4 D yes 4 .4 .444 D yes 1 .1 E Test3 1 .1 * E Test3 2 .2
2 A NoTest 1 .1 B Test2 5 .5 C no 2 .2 D no 2 .2
3 A Testl 2 .25
B Test2 2 .25 C no 1 .125 D yes 1 .125 E Test3 2 .25 F Test4 2 *
MSI ** = (.1 + .3 + .1 + .4 + .1) * (. .25) + (.1 + .2 + .4 + .1 + .2) * ( .75) 1. 0
MS2 = = (0 + .33: J + .111 + 0 + 0) * ( .25) +
(0 + .5 + .2 + 0 + 0) * ( .75) 0. 625
MS3 = (.1 + .3 + .1 + .4 + .1) * (.25) + (.25 + .25 + 125 + .125 .251 * (.75) = 1.0
Example D illustrates dynamic adjustment of case weights so that either properties specified in the query but not defined in a history case, or properties specified in a history case but not in the query, result in a lower evaluation match score. In Example D, this performance is achieved by including the query-specified relative ranking for Property E in the dynamic calculation of the weights for Case 2. It should be noted that, because the query weights are included in the match scoring, the query weights must be adjusted for the extra property in Case 3. This is done by including the case-specifled relative ranking for Property F m the dynamic calculation of the weights.
Dynamic Weighting With Delta Factor To Reduce Query Evaluation Time
Dynamic weighting and calculation of match scores can potentially increase the time needed to evaluate a query. Such slowed processing can be minimized if property weight values are retained and if the structure of a present case is checked agamst previously evaluated cases. If two cases are similar in structure, then the previous property weight values can be used, making it unnecessary to calculate the property weight values again for each case. Alternatively, dynamic weight processing can be made more efficient by calculating a "delta" factor using either the weighting factors or relative ranking data, rather than dynamically adjusting the property weighting factors for each match scoring. The delta factor is expressed in terms of ranking values and is defined by.
del ta factor = 1 + ), (ignored ranking values) - *C (addi tional ranking values)
J" ( ranking values) - £ {ignored zanking values) + J" ( addi tional ranking values)
The match score is calculated using the delta factor by first calculating a raw match score without dynamic adjustments (property weights can be pre-calculated at definition time) . Next, the calculated raw score is multiplied by the delta factor to adjust for dynamic property weighting. Such an approach avoids the need to recalculate the property weighting factors as each match is scored. If scaled query weighting is also being used, then a delta factor is calculated for both the query and case terms m the final match score. In the preferred embodiment, the ranking values are scalar numbers that specify a relative ranking (that is, 1, 2, 3,...) . Alternatively, the rankmg values can be raw ranking multiplier data values comprising weight factors. If weight factors are used instead of scalar ranking numbers, then the delta factor is calculated according to the equation above with the ranking terms replaced with weight factors.
Examp1e E
The dynamic weight adjustment with delta factor will be better understood with reference to the following examples. In
Example E below, there is no penalty associated with either query or case properties that are unspecified. The delta factor is calculated to have a value of 1.25, as follows:
delta factor = 1 + [ 2 / (10-2) ] = 1.25,
which is then applied to Case 3 because the Property F is ignored. Thus, dynamic weight adjustment increases the evaluation matching score that otherwise would be obtained.
Example E. Delta Factor: Penalize Neither Extra Query Nor Extra Case Properties.
Query Factor 0 Case Factor = 1
Query Cases Prop. Value Ranking ID Prop. Value Ranking Weight
A Testl 1 A Testl 1 .1
B Test2 3 B Test2 2 .2
C no 1 C no 4 .4
D yes 4 D yes 1 .1
E Test3 1 E Test3 2 .2
A NoTest 1 .1
B Test2 5 .5
C no 2 .2
D no 2 .2
A Testl 2 .2
B Test2 2 .2
C no 1 .1
D yes 1 .1
E Test3 2 .2
F Test4 2 .2
MSI = (.1 .2 + .4 + .1 + .2) * (1) = 1.0 MS2 = (0 - 5 + .2 + 0) * (1) = 0.7 MS3 = (.2 .2 + .1 + .1 + 0) * (1) = .8 ' * (1.25) = 1.0
Example F In Example F below, a penalty is associated with both query and case properties that are unspecified. The delta factor is calculated to have a value of 0.909, as follows:
delta factor = 1 + [ -1 / (10+1) ] - 0.909,
which is then applied to Case 2 because of unspecified properties. Thus, dynamic weight adjustment decreases the evaluation matching score that otherwise would be obtained for Case 2. Example F. Delta Factor: Penalize Both Extra Query And Extra
Case Properties.
Query Factor = 0 Case Factor = 1
Query Cases
Prop. Value Ranking ID Prop. Value Ranking Weight
A Testl 1 A Testl 1 .1 B Test2 3 B Test2 2 .2
C no 1 C no 4 .4 D yes 4 D yes 1 .1 E Test3 1 E Test3 2 .2
A NoTest 1 .1
B Test2 5 .5
C no 2 .2
D no 2 .2
A Testl 2 .2
B Test2 2 .2
C no 1 .1
D yes 1 .1
E Test3 2 .2
F Test4 2 .2
MSI = (.l + .2 + .4 + .l + .2) * (1) _ 1.0 MS2 = (0 + .5 + .2 + 0 + 0) * (1) = .7 ' MS3 = (.2 + .2 + .l + .l + 0) * (1) = .8
The evaluation time of some queries will be improved with dynamic property weighting, despite the dynamic calculations needed.
For example, if cases contain many properties that are not relevant to the search, then matching of these property values can be eliminated by not specifying the properties in the query and indicating that unspecified case properties should not penalize the matching scores (that is, the case weighting usage factor is set to
0) . This eliminates unnecessary calculating steps and reduces evaluation time. Another approach for eliminating unnecessary matching is to scale the total use of query weights and set the rankings and weight factors for unnecessary properties to 0. This reduces the actual property value matching to only those properties that are necessary to identify the desired candidate cases. The methods described above in conjunction with the Figure 13 flow diagram box numbered 200 improve the efficiency of the match scoring step and improve the efficiency of the CBR system constructed in accordance with the invention.
The Object Oriented Implementation of the Preferred Embodiment
The present invention provides an object oriented framework. The operation of the CBR system developed using the framework can be understood with reference to the procedural flow diagrams of Figures 9, 10, 11, 12, and 13. Persons skilled in the art, however, will appreciate that the framework objects, their relationships, and their processing also can be precisely and completely described in terms of object oriented programming representations. Therefore, the framework of the preferred embodiment will next be described in terms of category diagrams and object diagrams similar to those described above in conjunction with Figures 1 through 7 for the zoo keeper example.
Figure 14 is a category diagram for the framework implemented in the computer system of Figure 8. Those skilled in the art will appreciate that the categories illustrated in Figure 14 correspond to object oriented programming (OOP) objects that encapsulate data attributes and behaviors, and are stored in the memory 38 illustrated in the block diagram of Figure 8. Such objects can be implemented, for example, in a computer system operating environment that supports the C++ programming language. The framework includes five primary components, or mechanisms, that are indicated as being "core" mechanisms and therefore will not change with framework extensions. These core mechanisms are shown as comprising a Query Engine mechanism, a Case Structure Definition mechanism, a Parse Definition mechanism, a Case History Instance Definition mechanism, and a Control Flow Engine mechanism.
The Query Engine mechanism receives the user query and applies it to the case base. The Case Structure Definition mechanism contains the data structure that defines the way in which problem description-solution pairs are recorded. The Parse Definition mechanism contains the parsing rule set for breaking down queries into searchable components. The Case History Instance Definition mechanism contains the problem description-solution pairs that comprise the case base (the case instances) , which have a structure specified by the case structure definition. The Control Flow Engine mechanism executes control logic that implements the order of processing desired by a user. That is, the CBR system user can specify an Application Control Flow object to provide a desired order and manner of executing the CBR system, and the Control Flow Engine will see to it that the specified Application Control Flow is implemented.
The framework also includes seven extensible mechanisms. Being extensible, the objects, attributes, and behaviors comprising such mechanisms will be freely modified by the framework user. The extensible mechanisms comprise an Application Control Flow mechanism, a Match Scoring Weighting mechanism, a Property Scoring Weighting mechanism, a Value Operations mechanism, a User Interface mechanism, which also will be referred to generally as the user interface, and a Case Definitions History Instances mechanism. The Application Control Flow mechanism, as mentioned above, determines how a user can navigate through the CBR system features, in conjunction with execution by the Control Flow Engine. The Match Scoring Weighting mechanism specifies how the Query Engine mechanism will score items recorded in the case base against a received query. The Property Scoring Weighting mechanism interprets the relative importance of properties that will lead to a solution if input by the user. The Value Operations mechanism assigns received object attributes and values to the corresponding data structures. The Case Definitions History Instances mechanism contains the problem description-solution pairs; that is, the case base. This mechanism is extensible because it is populated according to the particular case base being used by the framework user. Finally, the user interface maintains input and output flow to and from the CBR system user.
CBR Session Class
Figure 15 is a class diagram that illustrates the characteristics of the class called CBR Session. Each use of the framework causes instantiation of a CBR Session object. The class cloud for CBR Session indicates that it is "from" the User Interface Mechanism, meaning that the CBR Session class is part of the user interface category. The "C" in the class cloud indicates that it is a core class whose objects and object relationships cannot be changed by the user. The class cloud also shows that the CBR Session class includes operations or methods called initializeDataStore () , initializePresentation () , initializeControlFlowO , and execute0. The method called initializeDataStore () instantiates the objects that are necessary for further CBR system processing. The initializePresentationO method performs similar functions for the presentation screens that will be displayed to the user. The initializeControlFlowO method instantiates the ControlFlowComponent objects necessary for the control flow class. Finally, the execute0 method manages processing for a single CBR Session of the system.
Figure 15 shows that the CBR Session class has a "uses" relationship with classes called DataStoreComponent, PresentationComponent, and ControlFlowComponent. That is, an object of the CBR Session class uses objects of the data store class, presentation class, and the control flow class. Finally, Figure 15 shows that the CBR Session class has an association relationship with the ChangeLog class. An association relationship indicates that objects of the ChangeLog class record or track the session- related objects that are modified during the execution of the CBR Session class. The association relationship includes an indication of cardinality, wherein a single CBR Session object will have an association with multiple ChangeLog objects.
CBR Base Class
Figure 16 shows the object class CBR Base, indicated as being from the User Interface Mechanism, with an inheritance relationship to multiple classes. Thus, the CBR Base objects serve as a super class and thereby define the structure and behavior of the inheriting subclass. The inheriting subclasses can further define their own specific methods or attributes in addition to those specified by the super class. The subclasses illustrated in Figure 16 include tho; -i of CaseSet, QueryParameter, CBRQuery, Pattern, Weightlnstance, Propertylnstance, Caselnstance, WeightSet, WeightDefinition, ActionPromptDefinition, PropertyDefinition, CaseDefinition, ActionPromptlnstance, IndexDefinition, and ParseDefinition.
Case Structure Definition Classes Figure 17 is a class diagram that illustrates the classes related to the case structure definition. The CaseDefinition class is shown having "has" relationships with multiple classes. Thus, the CaseDefinition class represents an aggregate class that contains objects from the classes TrackingDefinition, IndexDefinition, Pattern, ActionPromptDefinition, PropertyUsage, and CaseSet. Cardinality is indicated to show that a single CaseDefinition object contains many of the latter objects, with the exception of the CaseSet relationship. Many CaseDefinition objects will be contained in a single CaseSet, or case base, and therefore the cardinality indicated is for multiple CaseDefinition objects and a single CaseSet object. The other class relationships shown in Figure 17, such as the relationship of Value to Parse Definition and Property Usage classes, will be described below.
Case Definition Methods
Figure 18 illustrates the CaseDefinition class in greater detail and shows that it includes many methods. The CaseDefinition class methods include undoO, which deletes a CaseDefinition or a portion of a CaseDefinition, auditCaselnstances 0 , which generates an audit of one or more Caselnstance objects associated with the corresponding CaseDefinition object, and auditPropertyUsage0 , which generates an audit of properties for a Caselnstance object in relation to a CaseDefinition object. The CaseDefinition methods further include inferPatternValue 0 , which infers new data to add values to a pattern object based on constraint patterns associated with the definition; showPropertyDefinitions 0 , which retrieves and displays PropertyDefinition objects that currently exist either within the corresponding CaseDefinition or within all of the instantiated CaseDefinition objects; and addPropertyDefinition0 , which adds new PropertyDefinition objects associated with a current CaseDefinition.
Other CaseDef inition methods include showAllowablePropertyValues () , which retrieves and displays allowable PropertyValues for all properties currently existing in a CaseDefinition object or in all of the CaseDefinition objects of a CaseSet class. Additional methods include addAllowablePropertyValue() , which adds property values to a CaseDefinition, and showActionPromptDefinitions 0 , which retrieves and displays ActionPromptDefinitions that exist for a particular CaseDefinition class.
Additional CaseDefinition methods include addActionPromptDefinition() , which adds new ActionPromptDefinitions associated with a current CaseDefinition class, showlndexDefinitions () , which retrieves and displays IndexDefinitions, and addlndexDefinition0 , which adds new IndexDefinitions associated with a current CaseDefinition. Other methods are showAllowableValuePatterns 0 , which retrieves and displays AllowableValuePatterns that are current for a CaseDefinition, and addAllowableValuePattemO , which adds a new AllowableValuePattern associated with a current CaseDefinition.
Finally, the CaseDefinition class also includes methods called auditValuePatterns0 , which generates an audit of the property value combinations with respect to allowable patterns for a CaseDefinition, useDefinition0 , which determines the suitability (that is, correctness) of a CaseDefinition, determine 0 , which retrieves and shows or displays a list of CaseDefinitions to permit selection of a desired CaseDefinition, store 0 , which stores all CaseDefinition objects into the database of the CBR system, showTrackingDefinitions () , which retrieves and displays tracking definitions to permit user selection, and refreshlndexes 0 , which updates indexes when new case objects are added to the case base.
CaseDefinition Related Classes
Figure 19 shows the objects and methods of the various classes of which the CaseDefinition class is comprised. The PropertyUsage class includes a method called validProperty0 , which ensures that a property selected by a user to be included in a query evaluation is valid for the related CaseDefinition. The PropertyUsage class also includes a method called auditPropertyValue() , which ensures that the property value selected for audit is valid for the property in the CaseDefinition. In either case, if the property is not valid (that is, is undefined) , then the CBR system user is provided with an error warning through the user interface. Typically, the CBR system user will be alerted by a warning message on a screen display device. Figure 19 shows that the TrackingDefinition class includes a method called dolncrement 0. This method increments a count that indicates when a specified condition is satisfied. That is, a particular Caselnstance property might be the subject of a tracking definition so that every Caselnstance object having the specified property being tracked results in the TrackingDefinition object count being incremented.
Another class shown in Figure 19 is IndexDefinition, which includes a method called doIncludeO . The doIncludeO method determines if a property should be included in an Index. Another IndexDefinition method is called DoCoverO , which determines if an IndexDefinition will be useful by containing the output of the doIncludeO method if a property is indicated as to be included. The last IndexDefinition method is called refreshO, which updates a case definition index when new indexes are added to a CaseDefinition object.
Figure 19 also shows the ActionPromptDefinition class having methods called determine 0 and auditValueO . The determine () method shows the user the action prompts that have been defined. Action prompts are specified by a user to initiate system actions desired by the user. The auditValueO method compares an ActionPromptlnstance object against the set of ActionPromptDefinition objects for the CaseDefinition and confirms their validity.
Property Definition Class and Related Methods Figure 20 shows the methods of the various objects related to the PropertyDefinition class. Figure 20 shows that the PropertyDefinition class is an aggregate class made up of members comprising a class called Value, a class called ActionPromptlnstance, and a class called WeightSet. The WeightSet class, in turn is shown being an aggregate class made-up of WeightDefinition class members. The relationships are further specified by the indicated cardinality relationships.
The PropertyUsage class is shown in Figure 20 having a "has" relationship with a class called Value and the PropertyDefinition class. The Value class is indicated as being an abstract base class by the upper-case block "A" within a triangle. An abstract class is a class for which no instances may be created, the abstract class being a class of classes. The aggregate relationship illustrated in Figure 20 for the PropertyUsage class indicates that the PropertyUsage class comprises an aggregate class that is made up of Value classes and PropertyDefinition classes. The relationships shown in Figure 20 are further specified by the cardinality provisions indicated.
Figure 20 further shows that the ActionPromptlnstance class includes two methods, one called determine 0 , which retrieves and shows to the user a list of ActionPromptlnstances to permit selection by the user of a desired ActionPromptlnstance, and executeO, which verifies a user's prompt level approval and executes the associated action that was prompted according to the type and selection parameter received from the user. Figure 20 also shows that the PropertyDefinition class includes methods called auditValueO, determine 0 , showAllowableValues 0 , andbuildValueO . The auditValueO method generates an audit of the input value received against the allowable values for the associated PropertyDefinition. The determine 0 method checks a Value specified by a user against the list of allowable Values for the PropertyDefinition and provides an error indication if an invalid selection is made by the user. The showAllowableValues 0 method displays to the user the Value objects that can be assumed by the PropertyDefinition. The buildValue0 method is the means by which the user can add to, delete, or otherwise change the Values that can be assumed by the PropertyDefinition.
Figure 20 shows that the WeightDefinition class also includes an auditValueO method, which performs a function for the WeightDefinition similar to that performed by the auditValueO method for the PropertyDefinition, and determine 0 , which performs a function for WeightDefinition similar to that performed by the determine 0 method for the PropertyDefinition. Finally, the WeightSet class is shown in Figure 20 as having an auditSetValues O method, which generates an audit of an input value or values against the allowable values for the associated defined WeightDefinition in the WeightSet corresponding to the PropertyDefinition.
CaseSet Class and Related Methods
Figure 21 is a class diagram that illustrates the objects that make up the CaseSet class of the framework. Figure 21 shows that the CaseSet class is an aggregate class having members from the ChangeLog class and the ParseDefinition class. The CaseSet class partitions case definitions, instances, and queries into sets and permits retention of information common to the group. To perform these functions, the CaseSet class includes a number of "show" methods that result in the retrieval and display of named attributes for associated CaseDefinition objects. These show methods include showCaseDefs0 , which retrieves and displays the case definition objects that currently exist within the associated CaseSet, and showPropertyDefs0 , which retrieves and displays property definitions that currently exist with all of the CaseDefinitions for the associated CaseSet. Other CaseSet "show" methods are called showAllowablePropertyValues0 , showActionPromptDefinitions 0 , showlnc i den t s ( ) , showAl l owab l ePa t t ern s ( ) , showAct i onPrompt Ins tances () , showCase Ins tance s ( ) , showPropertylnstances ( ) , ShowAllowablePropertyValues ( ) , showTrackingDefs 0 , showlndexDefs 0 , and showListO . Each of these "show" methods results in the retrieval and display of the named CaseDefinition attributes. Another CaseSet method is called useSet 0 , which calculates the suitability of a particular CaseSet for a current incident or query, The CaseSet class also includes a method called resetTrackingCounters 0 , which resets or initializes counters that indicate case set processing, and determine 0 , which retrieves all CaseSet instances for the CaseDefinition being processed.
Figure 21 also shows the ChangeLog class, which includes methods called cleanup 0 , reduceChanges 0 , and add0. The ChangeLog class records changes that have been made to either transitory or persistent class data. The ChangeLog is used for audit trail, failure recovery, and "undo" of edit operations. The cleanup 0 method maintains a ChangeLog for a selected CaseSet based log retention attributes, which typically will be set by the framework designer. The reduceChanges 0 method reduces a set of ChangeLog entries that are retrieved from a trace of all the steps taken for a particular CaseSet through last previously taken step, identified for writing into the ChangeLog class. This step occurs at the end of the CBR session. The addO method creates an instantiation of the ChangeLog class. Figure 21 also shows the
ParseDefinition class, which records the data needed for parsing of case descriptions using the tri-string and token parsing methods. The ParseDefinition class includes methods called tri-stringParse 0 , tokenParseO, findWords 0 , findTokensO, and checkused() . The tri- stringParseO method parses the associated text into all permutations of three character groups. The tokenParseO method locates and identifies words as tokens in the CBR data base, that is, the tokenParseO method replaces a string of words with tokens. The findWords 0 method of the ParseDefinition class finds all words associated with a particular token, the findTokensO method locates tokens for all words resulting from a token parse, and the checkUsedO method checks to determine where a token has been applied within a case description. With these ParseDefinition methods, tokens can be used to equate synonyms or to translate words into other languages . Case History Instance and Related Classes
Figure 22 is a class diagram that illustrates the classes related to the Caselnstance class that contains objects related to the case history instance definition. The Caselnstance class is shown having "has" relationships with multiple classes. Thus, the Caselnstance class represents an aggregate class that contains objects from the classes called Trackinglnstance, ActionPromptlnstance, and IndexInstance. Figure 22 shows that a CaseSet is comprised of Case objects, whose structure and attributes are specified by Caselnstance objects and Incident objects. Figure 22 further shows that a Case is made up of many Propertylnstance objects, which in turn are an aggregate of Weightlnstance objects and Value objects. Finally, Figure 22 shows that the Value class is made up of SimpleValue objects and CompoundValue objects. Figure 23 is a class diagram that illustrates the Case class and related objects and their methods. Figure 23 shows that the Case class includes two methods, called undo() and store 0. The Case class is indicated as an abstract base class, which again means that no instantiations of this class will exist. The Case class provides the common base for Caselnstances, which are the data that are examined by queries, or for incidences, which are recorded but are not fully populated for examination by queries. The Case class is illustrated as having multiple Propertylnstance classes. The CaseSet is comprised of many Case classes. Figure 23 also shows that the classes called Caselnstance and incident inherit from the Case class and therefore their structure and behavior must conform to that specified by the Case class. The undoO method of the Case class is an undo of the last set of changes received from the framework user. The store 0 method stores all Caselnstance or Incident objects into the CBR data base. The Caselnstance contains a history case or problem description-solution. If a Caselnstance object is active, meaning that it has been instantiated, then it can be returned in response to a query. The Caselnstance, because it inherits from the Case, must conform to the structure and rules of the associated CaseDefinition. The meihods of the Caselnstance are described further below in relation to the Figure 25 description. The Incident class records a set of property values that have not yet been formalized into a history case. The information in an Incident is not available via a query. The showKnownO method of the Incident class finds and displays Caselnstances that refer to the associated incident. The determine O method retrieves and displays incidents. The buildFromQueryO method builds an incident by transforming query data, the convertToCase 0 builds a case from properties and data that are contained m the associated Incident, and the store 0 method stores all Incident objects mto the CBR data base.
The Propertylnstance class is an instance of a property that is associated with a Caselnstance object. The structure and behavior of the Propertylnstance objects conform to the PropertyDefmition of the CBR base (see Figure 16) . Figure 23 shows that the Propertylnstance class has a method called compareValue0 , which compares a property input to the collection of stored cases m the CBR data base. The showValue 0 method retrieves and displays a property value and the buildValue0 method assembles a Propertylnstance value structure and associates it with the property collection class. Finally, the Propertylnstance class includes a determine 0 method that retrieves and shows a list of Propertylnstances from which the user will make a selection. Figure 23 shows that the Propertylnstance class includes objects of a Weightlnstance class and of a Value class, the latter comprising an abstract base class.
Figure 24 illustrates the object structure of the Value class. The Value class, as noted above, is an abstract base class and provides a common base for SimpleValues and Boolean combinations of Values. The SimpleValue class is a collection of objects that simply contain data values, which also can comprise text from a problem description-solution pair or query. The CompoundValue class is a collection of objects that groups SimpleValues mto Boolean combinations of SimpleValues or other CompoundValues. The CompoundValue class, for example, can implement Boolean operations such as AND, OR, and exclusive-or (XOR) . Thus, the CompoundValue includes a collection of left terms and right terms, as indicated in Figure 24, which are joined by the particular Boolean operator.
Property, Tracking, Index, and Action Prompt Definition Methods
Figure 25 illustrates the objects that make up the case instance class of the framework and related classes. Figure 25 shows the Caselnstance class with a "has" relationship to the classes called Trackmglnstance, ActionPromptlnstance, and Indexlnstance. The Caselnstance class is shown having methods called showRelated0 , which retrieves and displays related cases, showReference 0 , which retrieves and displays referenced incident objects, compareDescπptionO , which compares a received description against descriptions in the case base, and store 0 , which stores all case instance objects associated with the class mto the data base of the CBR system. The ActionPromptlnstance class methods called determine 0 and execute 0 were defined previously in the discussion for Figure 20.
Figure 25 shows the Indexlnstance class with a "has" relationship to the IndexEntry class. The IndexEntry class contains the actual data, or attributes, comprising the index instances. The Indexlnstance class of objects includes methods called loadlnternal () , which loads index entries mto the CBR system data base, refreshO , which updates and maintains Indexlnstance objects, and compare 0 , which matches patterns agamst index entries and returns identifiers of partially matching Caselnstance objects. Finally, the Trackmglnstance class mcludes methods called increment 0 , which increments counters that are associated with a Caselnstance object to indicate comparison conditions such as when a score is greater than a threshold value or when a case is selected for use in a query. The other method of the Trackmglnstance class is called reset 0 , which initializes particular counters to zero.
Case Query Classes and Methods
Figure 26 is a class diagram that illustrates the classes related to the case query classes. Figure 26 shows a CBRQuery class being related to classes called CaseMatchSet, PropertyMatchSet, Incident, and CaseSet. Figure 26 also shows the CBRQuery class with a "has" relationship to the QueryParameter class and the Pattern class. The classes of RankedCaselnstance and PropertyRankedlnstance are shown related to the Ranklnstance class, and these ranked instance classes are shown related to the Caselnstance and Propertylnstance classes, respectively. The Propertylnstance class is, in turn, related to the PropertyMatchSet class, which, along with the CaseMatchSet, is related to the CBRQuery class.
In particular, Figure 26 shows that the CaseMatchSet and PropertyMatchSet classes inherit from the MatchSet class, and therefore their structure and behaΛ .or conform to the specifications of the MatchSet. That is, the MatchSet class is an abstract base class that serves as a template for CaseMatchSet and PropertyMatchSet objects. Similarly, the CaseRank class and RankedPropertylnstance class inherit from the Ranklnstance class, which is an abstract base class, and therefore their structure and behavior conform to the Ranklnstance class. The Ranklnstance class includes no methods but contains several attributes. The rank attribute is calculated to indicate how closely a Caselnstance matches a query pattern or to determine which unknown property values would most increase the rank score. The rank type indicates the ranking algorithm to use, and the status indicates a status for a Caselnstance. Examples of a case status include matched or examined, which indicate a case match or a case being examined, respectively The Caselnstance and Propertylnstance classes were previously described in conjunction with Figure 23.
Figure 27 illustrates the object relationships and behaviors of the CBRQuery class. The CBRQuery class groups a set of information that is needed to search history cases (case instance descriptions) from the CBR data base. The CBR class may include multiple QueryParameter objects and pattern objects. The CBRQuery class has a dual relationship with the CaseSet class. A CaseSet includes multiple CBRQuery objects while a CBRQuery object uses the CaseSet class m a client-supplier relationship. The CBRQuery class has simple association relationships with the classes called Incident, PropertyMatchSet, and CaseMatchSet.
The CBRQuery method called undo0 reverses the last received operation performed as part of building the query. The CBRQuery method called BuildPattern () assembles a search pattern for a query and the method called evaluateO searches the case histories for matches to a query pattern. The store O method stores all CBRQuery objects into the CBR data base, the determine 0 method retrieves and displays to the user the stored CBRQueries so one can be selected, and the showListO method displays a list of the stored CBRQueries. The CaseMatchSet class is an execution time collection class that hold information while a query is being processed. The buildCaseMatchSet 0 method of the CaseMatchSet builds a set of ranked Caselnstances, the showCaseMatchSet0 method shows a set of ranked Caselnstances, and the exclude 0 method permits the framework user to remove a case or property instance from the CaseMatchSet. The rankCaseMatchSetO method of the CaseMatchSet calculates an initial rank score using both the description text and the received pattern, and the re-rankSetO method selects records from a matched set based on additional information m the pattern and then calculates a rank score using both the description text and the pattern. Finally, the refreshO method rebuilds a CaseMatchSet based on changes to a Pattern that require different cases from the case base.
The PropertyMatchSet includes methods called buildPropertyMatchSet O , which builds a set of ranked property instances, and showPropertyMatchSet0 , which shows a set of ranked property instances. The exclude0 method permits a user to remove a property from further consideration, the rankPropertyMatchSet0 method calculates an initial rank score using both the description text and pattern, and the re-rankSetO method selects records from the property match set based on additional information in a pattern and calculates a new rank score using both description text and pattern. The refreshO method of the PropertyMatchSet rebuilds a PropertyMatchSet based on the changes to the pattern that require different cases from the case data base. Figure 28 illustrates that the Propertylnstance and
CompoundPropertyValue classes inherit from the Pattern class and therefore the Pattern class serves to define respective property value patterns. That is, the structure and behavior of the Propertylnstance and CompoundPropertyValue objects conform to the specifications of the Pattern class. The CompoundPropertyValue class contains property-value pairs joined by Boolean operators. The Boolean operators can comprise, for example, the AND, OR, and XOR operations.
Data Store and Control Flow Figure 29 indicates that a CaseSet object may use objects from multiple DataStoreComponent classes. Figure 29 illustrates two exemplary extensions of the DataStoreComponent, classes called D B 2 _ D a t a S t o r e I m p l e m e n t a t ι o n a n d PersistentObjectDataStorelmplementation. Figure 30 shows several possible extensions of the
ControlFlowComponent class, comprising classes called FlowMarkControlFlowlmplementation, BasicControlFlowlmplementation, and C++ControlFlowImplementatιon. Thus, the framework user is free to use different means for controlling the flow of applications that use the CBR system. Figure 30 indicates that a user can utilize control flow implementations that comprise FlowMark, Basic, or C++ programming language implementations. In this way a framework user can customize a framework extension to utilize a variety of operating system interface products supplied by vendors. Presentation Component Class Diagram
Figure 31 illustrates possible extensions of the framework in terms of the PresentationComponent class and its related classes and objects. Thus, Figure 31 shows that the CaseSet class uses the PresentationComponent class, which in turn uses the PresentationPart class. The PresentationPart class, an abstract base class, defines certain objects comprising Window, Text, Line, MenuBar, Pointer, Button, and the like. These objects are necessary to provide the presentation interface to the framework user. The PresentationPart class m turn uses the Presentationlmplementation class. The Presentationlmplementation class is illustrated in Figure 31 with two possible extensions, one comprising an OS/2 PresentationManager and the other comprising a "Microsoft" (MS) Windows class. Each of these implementations will contain the classes described for the PresentationPart class.
Scenario Diagrams
The operating steps performed by the case-based reasoning system constructed in accordance with the present invention will be better understood with reference to object scenario diagrams, which those skilled in the art will appreciate show the processing for an object oriented programming implementation having the object classes and compiled as described above.
Case Structure Definition Object Interactions
Figures 32 through 37 relate to case definition processing. That is, the processing steps represented by the Figure 10 and Figure 11 flow diagrams (most readily understood in a procedural programming context) may also be described by corresponding object-scenario diagrams that relate to the object oriented programming context, in view of the category diagrams of Figures 14 through 31. The operational steps represented by each object-scenario diagram are further described by tables of pseudo¬ code for each diagram. Line numbers for the text in the pseudo-code correspond to legends of the connecting lines in the diagrams.
More particularly, Figure 32 is an object-scenario diagram for the framework implemented in the computer system illustrated in Figure 8 and shows a first set of operations to construct a case definition and a parse definition. Figure 32 assumes that the framework has already been extended so as to instantiate a CBR Session object and a ControlFlowComponent, so that the proper data structures are active and performing the necessary behaviors for the CBR system processing to proceed.
Figure 32 shows that the case definition processing begins with construction of the CaseDefmition object, represented by "1. construct" on the connecting line from the ControlFlowComponent object cloud to the CaseDefmition object cloud. The next operation is to display a user interface screen that permits the framework user to build the various data objects of the CaseDefmition. This is represented by the legend "2 displayForlnput" on the same connecting line. The connecting line labelled "3. construct" indicates that a CaseSet object is next constructed, followed by execution of the "4. determine 0 " method that permits the user to select the CaseSet to be associated with the newly defined CaseDefmition. The legend "5. selectCaseSet" indicates that all existing CaseSet objects are retrieved by the DataStoreComponent object, and "6. showList" indicates that the list of case sets is displayed to the framework user for selection.
The case definition processing next includes constructing a ParseDefmition object for the selected CaseSet, represented by the legend "7. constructParseDefmition" on the connecting line from the ControlFlowComponent object cloud to the ParseDefmition object cloud. The user has the option of retrieving a desired ParseDefmition with the DataStoreComponent object, as represented by the legend "8. selectParseDefmition" on the connecting line from the ParseDefmition object cloud to the DataStoreComponent object cloud. The user also has the option of prescribing a tri-string parse and a token parse. A tri-string parse is a user-defined group of three text (alphanumeric) characters that will be used to score case instances in a query evaluation. A token parse is a smgle user input character that will be used to replace text in a case instance. User input of a tπ-stnng parse is represented by "9. tri-String Parse" and input of a token parse is represented by "10. tokenParse" on the connecting line from the CaseDefmition object cloud to the ParseDefinition cloud. In processing described further below, the user is provided with the option of changing the parsing definition again, before the parsing definition is stored by the DataStoreComponent object. If a user has entered data for an initial problem description for the CaseDefmition object, then parsing methods of the ParseDefmition class are executed to parse the Description object into searchable components. Parsing is described m lines 20-23 of the Table 2 pseudo-code.
The processing represented by the Figure 32 diagram is further described by the following pseudo-code, labelled Table 2. This pseudo-code table can be understood with relation to Table 1, which relates to start-up processing, as comprising processing steps that are executed following the execution of the Table 1 pseudo-code processing steps. The lines of pseudo-code in Table 2 are numbered consecutively, to indicate ordering of processing steps:
Table 2. Create the Case Definition.
1 Construct CaseDefmition object;
2 Display for input "Case Definition";
3 Construct CaseSet object;
4 Determine CaseSet; 5 Select CaseSet DataStoreComponent;
6 Show List CaseSet;
7 Construct ParseDefmition ooject; If needed:
8 Select ParseDefmition DataStoreComponent,- If needed:
9 Input Tri-string ParseDefmition; If needed:
10 Input Token ParseDefmition;
The next sequence of processing steps m the build case definition processing is illustrated in Figure 33 and relates to construction of the objects associated with a PropertyUsage. The first property usage operation performed is indicated by the legend "11. construct" on the connecting line from the CaseDefmition object cloud to the PropertyUsage object cloud, comprising construction of a PropertyUsage object in accordance with the object oriented programming environment of the preferred embodiment. Figure 33 indicates that a property usage input prompt is displayed to the user, represented by the legend "12. displayForlnput" on the same connecting line, to receive property information from the user. Next, as indicated by "13. construct", the PropertyUsage object constructs a PropertyDefmition object. The legend "14. determine" represents processing that uses a determine 0 method of the PropertyUsage object to retrieve the appropriate property definition in accordance with the property usage input. Next, the allowable property definitions for the selected case set are retrieved by the DataStoreComponent and are shown to the user for selection. This processing is represented by the legend "15. showAllowable" on the connecting line from the PropertyDefmition object cloud to the CaseSet object cloud. The user makes a selection from the allowable list and it is retrieved by the DataStoreComponent, as represented by "16. selectPropertyDef . " on the connecting line from che CaseSet object cloud to the DataStoreComponent object cloud. If a new PropertyDefmition object is being built by the user, the system displays a Property Definition prompt and receives the new information, as represented by the legend "17. displayForlnput" at the PropertyDefinition object cloud.
The user can add allowable values associated with the PropertyDefmition object being added. To do so, a Value object must first be built, processing that is represented by the legend "18. buildValue" on the connecting line from the CaseDefmition object cloud to the PropertyUsage object clouά A value can be either a simple value or a compound value, and each case is constructed and displayed for input from the user as the user selects and/or adds to the values. Any existing, allowable values are displayed (represented by "19. showAllowable") and selected by the user (represented by "20. selectPropValue") .
If a simple value is selected, then a SimpleValue object is constructed, a "simple value" prompt is displayed to the user for receiving the selection, and the selection is recorded into the change log. These operations are represented, respectively, by the legends "21. construct", "22. displayForlnput", and "23. addSimpleValue" . Similar processing in the case of a compound value is represented by "24. construct", "25. displayForlnput", and "26. addCompoundValue" . The PropertyUsage object ensures that only appropriate values are defmed by performing an audit method, represented by the legend "27. audit" on the connecting line from the PropertyUsage object cloud to the PropertyDefmition object cloud.
The user also can define the allowable weighting. Therefore, the control flow of the CBR system causes a WeightSet object to be constructed and a user prompt displayed, as represented by "28. construct" and "29. displayForlnput" on the connecting line from the PropertyUsage object cloud to the WeightSet object cloud. As noted above, weight values are associated with properties of case instances and are used by the query engine to select the closest match to the current problem. The weight definitions can be received from the user and this processing is represented by "30. construct" and "31. displayForlnput". Lastly, the new weight definitions are recorded in the change log, as represented by the legend "32. add" on the connecting line from the WeightSet object cloud to the ChangeLog object cloud.
The processing represented by the Figure 33 object- scenario diagram is further described by the following pseudo-code, labelled Table 3, which is a continuation of Table 2 and therefore includes table line numbers that are numbered consecutively from the lines of pseudo-code in Table 2, to indicate ordering of processing steps :
Table 3. Construct Properties, Values, Weight Sets.
Repeat as needed (Construct PropertyUsage) : 11 Construct PropertyUsage; 12 Display for Input "Property Usage";
13 Construct PropertyDefmition;
14 Determine PropertyDefmition;
15 Show AllowablePropertyDefinitions CaseSet;
16 Select PropertyDefmition DataStoreComponent If new
17 Display for input "Property Definition"; Repeat as needed (Build ValuePropertyUsage) :
18 Build ValuePropertyUsage;
If existing 19 Show AllowablePropertyValues
PropertyDefmition; 20 Select PropertyValue
DataStoreComponent; If needed: 21 Construct SimpleValue;
22 Display for input "Simple Value";
23 Add ChangeLog;
If needed:
24 Construct CompoundValue; 25 Display for input "Compound Value";
26 Add ChangeLog;
27 Audit Value PropertyDefmition; End Build Value PropertyDefinition; Repeat as needed (Construct WeightSet) : 28 Construct WeightSet;
29 Display for input "Weight Set";
30 Construct WeightDefmition;
31 Display for input "Weight Definition";
32 Add ChangeLog; End Construct WeightSet Repeat;
End Construct PropertyUsage Repeat;
The next sequence of operations to be performed by the CBR system is to construct action prompts, tracking definitions, and index definitions for use in query evaluation processing. These 45 PCΪ7US97/02574
operations are represented by the object-scenario diagram of Figure 34. The first step of action prompt processing is represented by the legend "33. construct" and "34. displayForlnput" on the connecting line from the CaseDefmition object cloud to the ActionPromptDefmition object cloud, indicating that an ActionPromptDefmition object is constructed and the user is prompted for the definition input. If there is an existing action prompt set, then the set is displayed to the user (represented by "35. show") and the user selects from the displayed set (represented by "36. selectActionPrompt") . The modification to the system implemented by the selection is added to the change log, as indicated by "37. add".
Next, the tracking definition is received from the user. This processing is initiated with construction of a TrackingDefinition object (represented by "38. construct"), followed by user specification of the definition (represented by "39. displayForlnput") . If an existing tracking definition is specified by the user, in a manner determined by the user interface, then the existing definitions are displayed (represented by "40. show") and the user selects one using the DataStoreComponent (represented by "41. selectTrackmgDef . ") . The modification is added to the change log, indicated by "42. add".
The user then specifies the desired index definition. The next processing is to construct an IndexDefmition object and receive user input ("43. construct" and "44. displayForlnput" on the connecting line from CaseDefinition to IndexDefmition) . If an existing index definition was desired, then the index definition set is displayed to the user ("45. show") and the user makes a selection, as indicated by the legend "46. selectlndexDef. " on the connecting line from the CaseSet object cloud to the DataStoreComponent object cloud. Modifications are recorded into the change log at the step indicated by "47. add".
The processing represented by the Figure 34 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables: Table 4 Construct Action Prompts, Tracking, and Index
Definitions .
Repeat as needed (Construct ActionPromptDefinition) : 33 Construct ActionPromptDefmition; 34 Display for Input "Action Prompt Definition";
If existing
35 Show ActionPromptDefinitions CaseSet;
36 Select ActionPromptDefmition
DataStoreComponent; 37 Add ChangeLog;
End Construct Action Prompt Instance Repeat; Repeat as needed (Construct Tracking Definition) :
38 Construct TrackingDefmition;
39 Display for mput "Tracking Definition"; If existing
40 Show TrackingDefmition CaseSet;
41 Select TrackingDefmition
DataStoreComponent;
42 Add ChangeLog, End Construct Tracking Instance Repeat;
Repeat as needed (Construct Index Definition)
43 Construct IndexDefmition;
44 Display for input "Index Definition";
If existing 45 Show IndexDefmition CaseSet;
46 Select IndexDefmition
DataStoreComponent;
47 Add ChangeLog;
End Construct Index Instance Repeat;
The next series of processing steps performed by the CBR system of the extended framework is to construct Pattern objects that are associated with the CaseDefmition data object. The pattern processing is represented by the Figure 35 object-scenario diagram. The initial step of pattern processing is to construct a
Pattern object and receive a user-selected pattern, as represented by the legends "48. construct" and "49. displayForlnput" on the connecting line from the CaseDefmition object cloud to the Pattern object cloud. If one or more existing patterns are available for selection by the user, then the system shows the allowable set of patterns to the user (indicated by "50. showAllowablePatterns") and the user makes a selection (indicated by "51. select") . Property values can be compound, and therefore the next processing is to construct a compound property value and display to the user a prompt to receive the user specification, represented respectively by "52. construct" and "53. displayForlnput". If a CompoundPropertyValue is added, then the cnange is recorded ("54. add") . A Pattern object consists of one or many single SimpleValue objects and/or CompoundValue objects that are associated with Propertylnstance objects. Thus, the next processing is to construct a Propertylnstance object specified by the user ("55. construct" and "56. displayForlnput"). Next, SimpleValue objects are similarly constructed ("57. construct" and "58. displayForlnput"), as are CompoundValue objects ("59. construct" and "60. displayForlnput") . Finally, the revised Pattern is generated by the infer method ("61. inferPatternValue") In this way, the Pattern object limits, or constrains, the combinations of property values that can be defined in case instances of the case definition. The processing represented by the Figure 35 object- scenaπo diagram can be further described by the following table of pseudo-code, which is a contmuation of the previous tables:
Table 5. Construct Patterns.
Repeat as needed (Construct Patterns) :
48 Construct Patterns;
49 Display for input "Pattern";
If existing 50 Show AllowablePattern CaseSet;
51 Select Pattern
DataStoreComponent;
If needed:
52 Construct CompoundPropertyValue; 53 Display for input "Compound Property
Value"; 54 Add ChangeLog;
If needed: 55 Construct Propertylnstance; 56 Display for input "Property Instance";
If needed:
57 Construct SimpleValue;
58 Display for input "Simple Value";
If needed: 59 Construct CompoundValue;
60 Display for input "Compound Value";
61 Infer PatternValue CaseDefmition; End Construct Patterns Repeat;
Figure 36 is an object-scenario diagram that represents processing associated with updating a parse definition, the next sequence of operations. The Figure 36 processing begins with a display for user input to receive a parse definition, as indicated by the legend "62. displayForlnput" on the connecting line from the CaseDefmition object cloud to the ParseDefmition object cloud. The user makes a selection ("63. select") and then the system checks to determine where the parse definition was used, or located, m the case definition ("64. check") . The parse definition is then subjected to an audit operation that ensures the words are allowable ("65. audit") . Finally, the modifications to the parse definition being used are recorded in the ChangeLog ("66. add") .
The processing represented by the object-scenario diagram of Figure 36 can be further described by the following table of pseudo-code, which is a continuation of the previous tables:
Table 6. Update Parse Definition.
Repeat as needed (Update Parse Definition) :
62 Display for input "Parse Definition";
63 Select ParseDefinition DataStoreComponent;
64 Check Used ParseDefinition; 65 Audit Words ParseDefmition;
66 Add ChangeLog;
End Update Parse Definition Repeat;
Figure 37 is an object-scenario diagram that illustrates the processing to store the case definition in the persistent storage of the CBR system using the DataStoreComponent. The first store operation is for the ControlFlowComponent to cause storage of the CaseDefmition, comprising all of the objects associated with the various classes of which the CaseDefinition is comprised. This operation is represented m Figure 37 by the -.egend "67. storeCaseDefmition" on the connecting line from the ControlFlowComponent object cloud to the CaseDefmition object cloud. The next series of operations comprises the insertion of the objects mto persistent storage using the DataStoreComponent. These steps are represented by the legend "68-80. insert" on the connecting line from the CaseDefmition cloud to the DataStoreComponent cloud. Individual operations associated with these steps are listed in Table 7 below. Finally, in accordance with object oriented programming principles, objects not needed after the storing is complete are destructed ("81. destruct") . The processing represented by the Figure 37 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables: Table 7 Store Case Definition.
67 Store CaseDefmition;
68 Insert WeightDefinition DataStoreComponent;
69 Insert PropertyDefmition DataStoreComponent; 70 insert Values DataStoreComponent;
71 Insert ParseDefmition DataStoreComponent;
72 insert ActionPromptDefmition DataStoreComponent;
73 Insert CaseDefmition DataStoreComponent;
74 Insert PropertyUsage DataStoreComponent; 75 Insert Values DataStoreComponent;
76 Insert WeightSet DataStoreComponent;
77 Insert ActionPrompt DataStoreComponent; 78 Insert Pattern DataStoreComponent;
79 Insert TrackingDefmition DataStoreComponent; 80 Insert IndexDefmition DataStoreComponent;
End Store CaseDefmition;
81 Destruct;
End Build Case Definition.
Case Instance Object Interactions Auser defines newproblem description-solution pairs, the history cases, and performs maintenance on existing cases by using the case instance definition processing. Each history case, called a case instance, has a data structure specified by the case definition structure. The case definition processing was described above in conjunction with Figures 32-37. The case instance processing is similar in many respects to the case definition processing, and is illustrated in Figures 38-43.
Figure 38 is an object-scenario diagram that illustrates operating steps m the case instance processing. First, a Caselnstance object is constructed and the user is permitted to designate a case instance set. These steps are represented by the legends "1. construct" and "2. displayForlnput" on the connecting line from the ControlFlowComponent object cloud to the Caselnstance object cloud. A CaseSet object is constructed and the allowable CaseSet objects are determined (indicated by "3. construct" and "4. determine" on the connecting line from ControlFlowComponent to CaseSet) . The user next selects one of the available CaseSet objects, using the DataStoreComponent ("5. select"), from among the list of available CaseSet objects ("6. showList"). After the case set is selected, the next step in the
Caselnstance processing is for the appropriate ParseDefmition objects to be retrieved. First, a ParseDefmition object must be constructed, as represented by the legend "7. construct" on the connecting line from the ControlFlowComponent object cloud to the ParseDefmition object cloud. The user then selects a ParseDefinition using the DataStoreComponent ("8. select") . The selected parse definition may be either a tri-strmg parse or a token parse, individually or together, as desired. The tri-string parse will break down the input data in successive three-character groups to permit "fuzzy" matching and tolerance for incorrectly spelled words in the input data and the token parse breaks down each word in the input data mto a token, thereby stripping predetermined prefix and suffix combinations from the input words and handling common synonyms. The tri-string and token parse selection is represented by "9. retπeveTriStrmgParseDef . " and by "10. retrieveTokenParseDef . " , respectively.
The processing of the Figure 38 case instance definition object-scenario diagram can be further described by the following table of pseudo-code, in which pseudo-code line numbers are provided to indicate ordering of processing steps:
Table 8 Create Case Instance Definition.
1 Construct Caselnstance object; 2 Display for input "Case Instance";
3 Construct CaseSet;
4 Determine CaseSet;
5 Select CaseSet DataStoreComponent;
6 Show List of CaseSet; 7 Construct ParseDefinition;
If needed:
8 Select ParseDefmition DataStoreComponent; If needed:
9 Retrieve Tri-string ParseDefmition; If needed:
10 Retrieve Token ParseDefmition;
Figure 39 is an object-scenario diagram that illustrates selection of a case definition to control the structure of the new case instance. The first processing step is to construct a CaseDefmition object and to determine the set of allowable CaseDefmition objects, as represented by the legends "11. construct" and "12. determine" on the connecting line from the ControlFlowComponent object cloud to the CaseDefmition object cloud. To permit the user to select a CaseDefmition, first the set of allowable objects from the CaseSet is shown to the user ("13. show") and then the user selects one of them using the DataStoreComponent ("14. select") .
The selected CaseDefmition is used ("15. use") to construct a PropertyUsage object ("16. construct") . The user then selects a PropertyUsage object, as represented by the legend "17. select" on the connecting line from the CaseSet object cloud to the DataStoreComponent object cloud. With the selected PropertyUsage, the next step is to construct PropertyDefmition objects specified by the PropertyUsage object. This is represented by "18. construct" on the connecting line from PropertyUsage to PropertyDefmition.
The user then selects a PropertyDefmition object ("19. select"). A property definition includes simple values, compound values, and weights, and therefore the next processing involves constructing and selecting a SimpleValue object ("20. construct" and "21. select"), constructing and selecting a CompoundValue object ("22. construct" and "23. select") , and constructing and selecting a WeightSet object ("24. construct" and "25. select") .
As part of WeightSet processing, the CBR system constructs the corresponding WeightDefmition objects and permits the user to make a selection, represented by the legend "26. construct" on the connecting line from the WeightSet object cloud to the WeightDefmition object cloud and the legend "27. select" on the connecting line from the CaseDefinition object cloud to the DataStoreComponent object cloud. Attributes of the CaseDefmition include action prompts, index definitions, and tracking definitions. Therefore, the next case definition processing includes constructing ActionPromptDefmition objects ("28. construct") and selecting an ActionPromptDefmition ("29. select") . The processing also includes constructing IndexDefmition objects ("30. construct") and selecting one ("31. select"), and also constructing TracκιngDefmition objects ("32. construct") and selecting one ("33. select") . This completes case definition processing.
The processing represented by the Figure 39 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code: Table 9. Select Case Definition
11 Construct CaseDefmition;
12 Determine CaseDefmition;
13 Show CaseDefmition CaseSet; 14 Select CaseDefmition DataStoreComponent;
15 Use Selected CaseDefmition;
16 Construct PropertyUsage object;
17 Select PropertyUsage;
18 Construct PropertyDefmition objects; 19 Select Property Definition;
20 Construct SimpleValue object;
21 Select SimpleValue;
22 Construct CompoundValue object;
23 Select CompoundValue; 24 Construct WeightSet object;
25 Select WeightSet;
26 Construct WeightDefmition objects;
27 Select WeightDefmition;
28 Construct ActionPromptDefmition objects; 29 Select ActionPromptDefmition;
30 Construct IndexDefmition objects;
31 Select IndexDefmition;
32 Construct TrackingDefmition objects;
33 Select TrackingDefmition;
Figure 40 is an object-scenario diagram that illustrates processing that creates the Propertylnstance objects for the previously selected Caselnstance based on either the data from an Incident object or by creating new Propertylnstance objects from user input data. A list of Incident objects may be retrieved before creating the property instance objects, to permit selection of a stored Incident object as the source for building a Caselnstance object. This processing is represented in Figure 40 by the legend "34. construct" and "35. determine" on the connecting line from the Caselnstance object cloud to the Incident object cloud, whereupon the Incident object is created and its allowable objects are determined. The allowable Incident objects from the CaseSet are shown to the user ("36. show"), who then makes a selection using the DataStoreComponent ("37. selectlncident") . As noted previously, the DataStoreComponent is the mechanism through which a user can retrieve stored data, such as for selection of a stored Incident object.
A "convert-to-case" method (represented by "38. convert" on the connecting line from the Caselnstance object cloud to the Incident object cloud) identifies all known Property Instance/Value pairs from the Incident. The method causes Propertylnstance objects to be created ("39. construct") and the set of specified PropertyDefinition objects valid for the current CaseDefinition are determined ("40. determine") . The permissible PropertyDefinition objects based on the CaseDefinition are shown to the user ("41. show") and then are selected by the user ("42. select") using the DataStoreComponent. If the PropertyDefinition selected by the user is new, then a PropertyDefinition object is constructed ("43. construct") and inserted into the persistent storage by the DataStoreComponent ("44. insert"). The modification (new PropertyDefinition) is recorded in the change log ("45. add") .
The processing represented by the object-scenario diagram of Figure 40 can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code:
Table 10. Create Property Instance.
If needed: 34 Construct Incident object;
35 Determine Incident;
36 Show Incidents CaseSet; 37 Select Incident;
38 Use convert-to-Caselncident method; Repeat as needed:
39 Construct Propertylnstance;
40 Determine Propertylnstance; 41 Show PropertyDefinition CaseDefinition;
42 Select PropertyDefinition;
If new PropertyDefinition
43 Construct PropertyDefinition;
44 Insert PropertyDefinition; 45 Add ChangeLog;
Figure 41 is an object-scenario diagram that illustrates building Value objects for the Propertylnstance objects and assigning weights to the properties of those Value objects. The "build Values" processing permits building the Value objects associated with the Propertylnstance objects, constructing the Weightlnstance objects, and inferring additional PatternValue objects. First, the system builds Value objects based on the Propertylnstance objects for the CaseDefinition. This processing is represented by "46. use". Next, the allowable property values allowed for the current selected CaseDefinition object are shown to the user ("47. show") . As noted above, such values can be simple values and can be compound values.
First, a SimpleValue object is constructed ("48. construct") and the user is queried for simple value input via the user interface ("49. displayForlnput") . If the SimpleValue selected by the user is new, then it is inserted into the Value object using the DataStoreComponent ("50. insert") . Any such changes to the system are recorded in persistent storage (represented by "51. add" on the connecting line from the SimpleValue object cloud to the ChangeLog object cloud) .
Next, a CompoundValue is constructed ("52. construct") and the user is queried for compound value input ("53. displayForlnput") . If the CompoundValue selected by the user is new, then it is inserted into the Value object ("54. insert") and both it and any other changes are recorded into the ChangeLog ("55. add") . This concludes the BuildValue processing.
The Propertylnstance objects include Weightlnstance and WeightDefinition objects and therefore the next portion of processing includes construction of a Weightlnstance object ("56. construct") and displaying to the user a prompt to receive weight instance input ("57. displayForlnput") . If the Weightlnstance input from the user is new, then a new WeightDefinition object is constructed to contain it ("58. construct") . The WeightDefinition object is then stored into persistent data storage using the DataStoreComponent ("59. insert") and then the change log is updated ("60. add") . After the new Propertylnstance, Value, and Weight objects are created or selected, an "infer" processing step checks against the Pattern objects associated with the case definitions to determine if additional Propertylnstance or Value objects can be automatically generated for the query, based on the constraints specified in the CaseDefinition. In this way, the user first provides as many defining values and weights assigned to those values within the user's knowledge, and then the CBR system executes the infer process to check the query against further constraints. The processing represented by the Figure 41 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code: Table 11. Build Value Property Instance objects.
Repeat as needed.
46 Use Build Value method on Propertylnstance,
47 Show Allowable PropertyValue CaseDefmition if needed:
48 Construct SimpleValue;
49 Display for input "Simple Value"; If new
50 Insert Value DataStoreComponent; 51 Add ChangeLog;
If needed:
52 Construct CompoundValue;
53 Display for input "Compound Value"; If new 54 Insert Value DataStoreComponent;
55 Add ChangeLog;
End of Repeat Build Value Propertylnstance;
56 Construct Weightlnstance;
57 Display for input "Weight Instance"; If new
58 Construct WeightDefmition object;
59 Insert WeightDefmition DataStoreComponent;
60 Add ChangeLog; If needed: 61 Infer PatternValue from CaseDefmition;
End Construct Property Instance Repeat (see Table 10) ;
The next sequence of case instance definition processing is to create ActionPrompt and Audit objects and to audit the case instance that has been built. Figure 42 is an object-scenario diagram that illustrates such processing.
In the action prompt/audit processing, ActionPrompt objects are first constructed ("62. construct") and allowable ActionPrompt objects are determined ("63 determine") . The ActionPrompt objects available from the CaseDefmition are shown to the user ("64. show"), who then makes a selection ("65. select"). The selected ActionPrompt objects are then constructed using the ActionPromptDefmition ("66. construct") and are inserted into persistent storage using the DataStoreComponent ("67. insert") . Modifications are inserted mto the ChangeLog ("68. add") . A series of Audit methods are performed to ensure valid property definition components. An audit call is made on the PropertyUsage attributes for the selected CaseDefmition ("69. auditPropertyUsage") , an audit is called on PropertyValue attributes for the PropertyUsage ("70. auditPropertyValues") , and an audit is called on ActionPrompt for the ActionPromptDefmition ("71. auditValues") . An audit also is called on the PropertyDefmition for the Caselnstance ("72. auditValues") , an audit is called on the WeightDefinition attributes ("73. auditValues"), an audit is called on the WeightSet ("74. auditValues"), and an audit is called on the PatternCase objects ("75. auditValuePatterns") .
The processing represented by the Figure 42 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous table of pseudo-code:
Table 12. Create Action Prompts and Audits.
Repeat as needed:
62 Construct ActionPromptlnstance object;
63 Determine ActionPromptlnstance;
64 Show ActionPromptDefinitions CaseDefinition;
65 Select ActionPromptDefinition DataStoreComponent;
If new
66 Construct ActionPromptDefinition;
67 Insert ActionPromptDefinition
DataStoreComponent; 68 Add ChangeLog;
End Construct Action Prompt Instance Repeat;
69 Audit PropertyUsage CaseDefinition;
70 Audit PropertyValues PropertyUsage;
71 Audit Values ActionPromptDefinition; 72 Audit Values PropertyDefinition;
73 Audit Values WeightDefinition;
74 Audit Set Values WeightSet;
75 Audit Value Patterns CaseDefinition;
Figure 43 is an object-scenario diagram that represents the next sequence of processing steps, which creates refresh indexes and stores the Caselnstance. In the refresh index/store case instance processing, the IndexDefinition objects are refreshed ("76. refresh") by constructing Index objects ("77. construct") and IndexEntry objects ("78. construct") . The ControlFlowComponent next causes the Caselnstance to be stored ("79. store") .
The IndexDefinition objects must be refreshed whenever the referenced items are changed or new items added. After the refresh, each element of the newly created Caselnstance objects must be stored in the data base with an insert operation ("80. insert") . The Propertylnstance ("81. insert") and associated Value and Weightlnstance objects must be stored ("insert" items 82 and 83 of the diagram) . Next, the ActionPromptlnstance, Indexlnstance, and IndexEntrylnstance objects for each Caselnstance also are stored in the data base, as represented by the "insert" items numbered 84, 85, and 86, respectively. Finally, the "build Case instance" processing includes destructing each one of the objects not needed after the data storage, which is collectively indicated by the legend "87. destruct". This concludes the case instance definition processing. The processing represented by the Figure 43 object- scenario diagram can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code:
Table 13. Refresh Indexes; Store Case Instance.
Repeat as needed:
76 Refresh IndexDefinition;
77 Construct Indexlnstance; 78 Construct IndexEntry;
End Refresh IndexDefinition Repeat;
79 Store Caselnstance;
80 Insert Caselnstance DataStoreComponent;
81 Insert Propertylnstance DataStoreComponent; 82 Insert Values DataStoreComponent;
83 Insert Weightlnstance DataStoreComponent;
84 Insert ActionPromptlnstance DataStoreComponent;
85 Insert Indexlnstance DataStoreComponent;
86 Insert IndexEntrylnstance DataStoreComponent; End StoreCaselnstance;
87 Destruct objects;
End Build Caselnstance.
This concludes the object-scenario diagrams for the build case definition processing. The next sequence of processing operations for the CBR system is to receive and evaluate query input from the user.
Query Processing
The object interactions for processing a query are illustrated in Figures 44-49. Such processing applies a received query against the case base and attempts to identify a solution set of case instances
Figure 44 is a top-level object-scenario diagram for the framework implemented in the computer system illustrated in
Figure 8. Figure 44 is a scenario that shows the resulting actions that are performed in the framework mechanism for processing of a single query, the simplest type of query that can be posed by the framework user. Figure 44 assumes that the framework has already been extended so as to instantiate a CBR Session object and a ControlFlowComponent, so that the proper data structures are active and performing the necessary behaviors for the CBR system processing to proceed.
Figure 44 shows that the processing of the extended framework starts with the creation of a CBRQuery object, indicated by the connecting line from the object cloud ControlFlowComponent to the object cloud CBRQuery with the arrow labelled "1. construct". Those skilled in the art will understand that this is a representation for the creation by the ControlFlowComponent object of a CBRQuery object with all data, attributes, and behaviors necessary to make the CBRQuery object complete. In the preferred embodiment, the framework is implemented in a computer system with the C++ programming language. Those skilled in the art will understand that the creation process is typically a C++ constructor that creates C++ objects.
After the CBRQuery object is created, a determine 0 method can be used to assist the user in selecting a query that was previously built and saved by the DataStoreComponent. For such processing, a list of queries from the DataStoreComponent can be provided to the user, from which the user can select one as an initial query.
As noted above, the computer system receives interactive information from the user in response to display prompts. The legend "2. displayForlnput" on the Figure 44 connecting line from the object cloud ControlFlowComponent to the object cloud CBRQuery indicates that the second processing step is to display a user prompt and prepare to receive a query. That is, in response to the display prompt, a problem will be posed by the user to the CBR system, for matching against the case base and generation of a solution, from either the query retrieved from the DataStoreComponent or a new query fashioned by the user.
In response to the received CBR query, the CBRQuery object is inserted to the ChangeLog object for data storage. This step is indicated by the connecting line from the CBRQuery object cloud to the ChangeLog object cloud with the arrow labelled "3. add". Next, the case base to be used is selected by the user. This processing is indicated by the arrows labelled "4a. constructCaseSet" and "4b. determineCaseSet" on the connecting line from the ControlFlowComponent object cloud to the CaseSet object cloud and the arrow labelled "4c. selectCaseSet" on the connecting line from the ControlFlowComponent object cloud to the DataStoreComponent object cloud. The selected case base is displayed to the user, indicated by the legend "5. showCaseSet" , and then is instantiated for use by the CBR system, indicated by the legend "6. useCaseSet" on the connecting line from the ControlFlowComponent object cloud to the CaseSet object cloud.
Once the case base has been selected, the next step is to select the parsing definition that will be used, according to the input start-up processing determined by the framework user. This step is represented by the arrow labelled "7. selectParseDefmition" on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud. Figure 30 next shows parsing in the case that both the tri-string parse and token parse have been selected. Accordingly, the next processing steps are indicated as "8. tri -StrmgParse" and "9 tokenParse" on the connecting line from the CBRQuery object cloud to the ParseDefinition object cloud. It should be understood that selection of a parsing definition is not necessarily needed, and one or both of these processing steps may be skipped. After the parse definitions have been settled, the next step is to receive the user query. This step is represented in Figure 44 by the legends "10a. construct" and "10b. displayForlnput" on the connecting line from the CBRQuery object cloud to the QueryParameter object cloud. Finally, the received data input (query) is placed into the appropriate data objects with the "11. add" label on the connecting line from the QueryParameter object cloud to the ChangeLog object cloud.
The processing represented by Figure 44 can be further described by the following table of pseudo-code, in which code line numbers are provided to indicate ordering and generally correspond to the numbered legends on the connecting lines illustrated in Figure 44:
Table 14. Pseudo-code for Single Query.
Repeat as needed to build/evaluate a query:
1 If new query //(e.g., first iteration) Construct CBRQuery; If needed: la Determine CBRQuery; lb Select CBRQuery DataStoreComponent; lc Show List CBRQuery; 2 Display for input "CBR Query";
3 Add ChangeLog; If new Query
4a Construct CaseSet; If needed:
4b Determine CaseSet; 4c Select CaseSet DataStoreComponent; 5 Show List CaseSet;
If needed: 6 Use Set CaseSet (in accordance with user selection) ; If needed: 7 Select ParseDefinition DataStoreComponent;
If needed: 8 Tπ-string Parse the ParseDefmition;
If needed: 9 Token Parse the ParseDefmition;
If needed: 10a Construct QueryParameter (s) ; 10b Display for input "Query Parameters";
11 Add ChangeLog;
The next sequence of processing steps in responding to a single query are represented by the object-scenario diagram of Figure 45. Proceeding from the last illustrated step in Figure 44, the processing illustrated in Figure 45 shows building a pattern for use by the query engine, which begins with receiving property value and property instance selections from the framework user. Such processing involves the step of displaying a pattern prompt to the user, represented by the legends "12. construct" and "13. displayForlnput" on the connecting line from the CBRQuery object cloud to the Pattern object cloud. As a result of such processing, the system displays input screens for the user.
As part of providing the input pattern, the system next constructs a CompoundPropertyValue object and receives the user selection of the appropriate property value attributes. This processing is represented in Figure 45 by the arrow from the Pattern object cloud to the CompoundPropertyValue object cloud labelled with "14. construct" and "15. displayForlnput". The received compound property value selection is added to the data base as a ChangeLog data object, as represented by the legend "15a. add" on the connecting line from the Pattern object cloud to the ChangeLog object cloud. After the property value input is received, the next processing involves receiving a selected property instance. This processing is represented by the legends "16. construct", "17. displayForlnput", and "18. buildValue" on the connecting line from the Pattern object cloud to the Propertylnstance object cloud. The build value attributes are added to the data base and the inputs are recorded into the ChangeLog object, as indicated by the "17a. add" legend on the connecting line from the Pattern object cloud to the ChangeLog object cloud. Figure 45 shows processing assuming that both simple value and compound value selections are received, but it should be understood that both selections are not necessarily needed. Accordingly, the next processing steps are shown as the arrows labelled "19. construct" and "20. displayForlnput" on the connecting line from the Propertylnstance object cloud to the SimpleValue object cloud, and also as the arrows labelled "21. construct" and "22. displayForlnput" on the connecting line from the Propertylnstance object cloud to the CompoundValue object cloud. Depending on the responses received from the user, the system next adds the simple value selection and compound value selection to the data base, as indicated by the respective legends "20. add" and "23. add" on the connecting line from the Propertylnstance object cloud to the ChangeLog object cloud.
Finally, the CBRQuery object implements selection of the CaseDefinition attributes after retrieving a menu of possibilities from the data base. This processing is represented by the legend "24a. selectCaseDef" on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud and the legends "24b. showCaseDef", "24c. useCaseDef", and "24d. inferPatternValue" on the connecting line from the CBRQuery object cloud to the CaseDefinition object cloud. This processing represents display of the case definitions to the user for selection.
The processing represented by Figure 45 can be further described by the following table of pseudo-code, which is a continuation of the previous table of pseudo-code:
Table 15. Pseudo-code for Build Pattern-type CBR Query.
If new Build Pattern
12 Construct Pattern; Repeat as needed:
13 Display for input "Pattern"; If new PropertyValue
14 Construct CompoundPropertyValue;
15 Display for input "Compound Property Value"; 15a Add ChangeLog;
If new Propertylnstance
16 Construct Propertylnstance ; 17 Display for input "Property Instance"; 17a Add ChangeLog;
18 Build PropertyValuelnstance; if needed: 19 Construct SimpleValue;
20 Display for input "Simple Value"; 20a Add ChangeLog;
If needed:
21 Construct CompoundValue; 22 Display for input "Compound Value";
23 Add ChangeLog;
24a Select CaseDefinitions DataStoreComponent for each user;
24b Show CaseDefinitions CaseSet; 24c Use Definition CaseDefmition;
24d Infer PatternValue CaseDefmition;
13a Add ChangeLog;
End BuildPattern repeat;
After the query pattern has been built, the next processing is the evaluation of the query. The evaluation processing is represented by the object-scenario diagram of Figure 46. Proceeding from the last illustrated step in Figure 31, the processing illustrated in Figure 46 shows the next step of "25. evaluateCBRQuery" on the connecting line from the ControlFlowComponent object cloud to the CBRQuery object cloud. In response, the system next selects the index definitions to be used in the evaluation for the case definitions that will be searched. This step is represented by the legend "26. selectlndexDefmition" on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud. Next, the system checks to determine if the index definition being used contains information that will be useful and will speed the search of the case definitions. This step is indicated by the arrow labelled "26a. doCoverIndexDefmition" on the connecting line from the CBRQuery object cloud to the IndexDefmition object cloud.
If the index definition is useful, and if the index definition is not already retrieved, then the appropriate index objects are loaded mto memory. That is, the IndexDefmition objects are constructed and instantiated. Loading the index entries into the CBR system memory is indicated by the legend "27. load" on the connecting line from the CBRQuery object cloud to the Indexlnstance object cloud. If the present evaluation is the first iteration of processing for the query, then a CaseMatchSet object is constructed. This is represented by the arrow labelled "28. constructCaseMatchSet" on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud. The CaseMatchSet will serve as a collection object to contain matches located in the case base.
The processing represented by Figure 46 can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code:
Table 16. Pseudo-code for Evaluate CBR Query.
25 Evaluate CBRQuery:
26 Select IndexDefmition DataStoreComponent //(for Case Definitions Used) ;
For selected Component 26a DoCover IndexDefmition;
If covers and not loaded // (per CBRSession)
27 Load Internallndexlnstance; If new query
28 Construct CaseMatchSet;
Figure 47 illustrates the processing of a CaseMatchSet after it is constructed. The step of building the CaseMatchSet is represented by the legend "29. buildCaseMatchSet" on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud.
Initially, the CaseMatchSet contains the results of selecting Caselnstance objects that match the property values defined in the Pattern object or whose description matches the description in the Pattern. This processing is represented by the legend "29a. compare" on the connecting line from the CBRQuery object cloud to the Indexlnstance object cloud and the legend "30. selectCaselnstances" on the connecting line from the CaseMatchSet object cloud to the DataStoreComponent object cloud. Next, the selected Caselnstance objects are ranked for closeness to the Pattern searched. If the Caselnstance has not changed (that is, processing is for another iteration on a previously searched case) , then the Caselnstance objects are re-ranked. This processing is represented by the legends "31. rankSet" and "32. re-RankSet" on the connecting line from the CaseMatchSet object cloud back onto itself.
Ranking involves first constructing a RankedCaselnstance object to contain the rank information for the Caselnstance of the CaseMatchSet being processed. Therefore, for each selected Caselnstance, a check is made to determine if it is a new Caselnstance for evaluation. If the Caselnstance is new, a RankedCaselnstance object is constructed. Each Caselnstance is scored according to the Rank or re-Rank method of the CaseMatchSet and the results are stored in the RankedCaselnstance. The construction processing is represented by the legend "33. constructRankedCase" and the rank processing is represented by the legend "34. setRankTypeStatus" on the connecting line from the CaseMatchSet object cloud to the RankedCaselnstance object cloud. Next, tracking definitions are checked to see if any apply to the case set. Therefore, the TrackingDefinition objects are iteratively selected, as represented by the arrows labelled "35. selectTrackingDefinition" and "36. doIncrementTrackingDefinition" on the connecting lines from the CaseMatchSet object cloud to the DataStoreComponent cloud and the TrackingDefinition cloud, respectively. If any tracking definitions apply, the corresponding tracking instances are iteratively selected, as represented by the arrows labelled "37. selectTrackinglnstance" and "38. increment" on the connecting lines from the CaseMatchSet object cloud to the DataStoreComponent andTrackinglnstance object clouds, respectively. After the tracking instance processing, the ordered
CaseMatchSet is displayed to the user to provide an opportunity to select case instances for exclusion from further processing. The display is represented by the legend "39. showSet" on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud. If at least one solution to the query is not found, that is, none has scored above a specified threshold, then the user can exclude cases from the match set and repeat the evaluation or the user can use a PropertyMatchSet object (which also is constructed on the first iteration of evaluation processing) to help determine which properties will most quickly lead to a solution and to find values for those properties. This processing is represented in Figure 47 by the arrow labelled "40. excludeSet" from the CaseMatchSet object cloud back onto itself and the arrow labelled "41. constructPropertyMatchSet" on the connecting line from the CBRQuery object cloud to the PropertyMatchSet object cloud. The PropertyMatchSet will serve as a collection object to contain properties that could be added to the pattern with associated values to further constrain the search.
The processing represented by Figure 47 can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code: Table 17. Pseudo-code for Build Set Case Match Set.
29 Build CaseMatchSet:
If new Caselnstances because of new or updated Pattern 29a Compare Indexlnstance OR 30 Select Caselnstance(s) DataStoreComponent
//(that matches some part of the Pattern and Description) ; If new Case
31 Rank Set CaseMatchSet else
32 Re-rank Set CaseMatchSet; For each case:
If new Case 33 Construct RankedCaselnstance; 34 Set Rank, Type, Status RankedCaselnstance;
35 Select TrackingDefinition DataStoreComponent
//(for the Caselnstance used) ;
36 Dolncrement TrackingDefinition;
37 Select Trackinglnstance DataStoreComponent //(for the Caselnstance used) ;
If should increment 38 IncrementTrackinglnstance;
39 Show Set CaseMatchSet; If no solution yet 40 Exclude CaseMatchSet //(those indicated by the user) ; 41 Construct PropertyMatchSet;
Figure 48 illustrates CBR system processing when a PropertyMatchSet object is built as part of query evaluation. The building of a PropertyMatchSet object is represented by the legend
"42. buildSet" on the connecting line from the CBRQuery object cloud to the PropertyMatchSet object cloud. The property instances contained in the PropertyMatchSet are selected from the case instances in the CaseMatchSet that do not have values assigned to them in the Pattern that is being evaluated. This processing step is represented by the arrow labelled "43. selectPropInstances" on the connecting line from the PropertyMatchSet object cloud to the DataStoreComponent object cloud.
After Propertylnstance objects are selected, they are ranked by the rank method according to the order in which they have the most impact on finding a Caselnstance obje:t solution to the query. If the Caselnstance is new (that is, processing is for an initial iteration), then the Caselnstance objects of the PropertyMatchSet are ranked. On subsequent iterations, they are re- ranked. Such processing is represented in Figure 34 by the legends "44. rankSet" and "45. re-RankSet" on the connecting line from the PropertyMatchSet object cloud back onto itself.
As with the CaseMatchlnstance processing, ranking involves first constructing an object to contain the rank information. Therefore, for each Caselnstance object selected with a Property, a check is made to determine if it is a new Caselnstance. If the Caselnstance is new, a RankedPropertylnstance object is constructed. Each Propertylnstance object is scored according to the Rank or re- Rank method of the PropertyMatchSet and the results are stored in the RankedPropertylnstance. The construction processing is represented by the legend "46. construct" and the rank processing is represented by the legend "47. setRankTypeStatus" on the connecting line from the PropertyMatchSet object cloud to the RankedPropertylnstance object cloud The set method indicates the rankmg and status of each Propertylnstance in the PropertyMatchSet. Each property instance also is checked for specified tracking definitions. If any tracking definitions apply, the corresponding tracking instance count is incremented. This processing is represented by the legends "48. selectTrackmgDef", "49. dolncrement" , "50. selectTrackmglnstance", and "51. increment" on the connecting lines from the PropertyMatchSet object cloud to, respectively, the object clouds DataStoreComponent, TrackingDefinition, DataStoreComponent, and Trackmglnstance.
After the PropertyMatchSet has been ranked it is displayed to the user to provide an opportunity to select property instances to be excluded from further processing. In Figure 48 the display step is represented by the legend "52. showSet" on the connecting line from the CBRQuery object cloud to the PropertyMatchSet object cloud and the resulting exclusion is represented by the legend "53. exclude" on the connecting line from the PropertyMatchSet object cloud back onto itself. The user might want to display the property instances, processing that is represented by the arrow labelled "54. display" from the PropertyMatchSet object cloud to the Propertylnstance object cloud. After display, the user can proceed with viewing the property instance values and/or can execute action prompt instances related to the Property object. Such processing is intended to facilitate the user adding information to the Pattern when iterative processing returns to the build pattern portion of the build pattern/evaluate query processing loop of the CBR system. The viewing values processing is represented by the arrow labelled "55 showValue" from the PropertyMatchSet object cloud to the Propertylnstance object cloud and the action prompt processing is represented by the arrow labelled "56. execute" from the Propertylnstance object cloud to the ActionPromptlnstance object cloud.
The processing represented by Figure 48 can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code:
Table 18. Pseudo-code for Build Property Match Set.
42 Build PropertyMatchSet: If new Caselnstance
43 Select Propertylnεtances DataStoreComponent
//(for indicated case instances); If new Caselnstance
44 Rank Set PropertyMatchSet else 45 Re-rank Set PropertyMatchSet;
For each Property:
If new Caselnstance 46 Construct RankedPropertylnstance;
47 Set Rank, Type, Status RankedPropertylnstance;
48 Select TrackingDefmition DataStoreComponent
//(for property instance used);
49 Dolncrement TrackmgDefmition; If should increment 50 Select Trackinglnstance
DataStoreComponent //(for property instances used) ;
51 Increment Trackmglnstance;
52 Show Set PropertyMatchSet; 53 Exclude PropertyMatchSet //(those indicated by user) ; 54 Display Propertylnstance //(if indicated by user) ; If displayed user can: 55 Show ValuePropertylnstance;
If prompt level is sufficient 56 Execute ActionPromptlnstance;
Figure 49 illustrates the processing when a query solution is found. The beginning of solution processing is indicated by the legend "57. evaluate" on the connecting line from the CBRQuery object cloud to the CaseMatchSet object cloud. The status of the selected RankedCaselnstance is updated to mark the associated Caselnstance object as a solution for the query. This processing is indicated by the arrow labelled "34a. setStatusRankedCaselnstance" on the connecting line from the CaseMatchSet object cloud to the RankedCaselnstance object cloud.
A dolncrement 0 method is then performed to determine if any tracking information should be updated and, if applicable, corresponding tracking instances are incremented. This processing is represented by the arrows labelled "36a. dolncrement" and "38a. increment" on the connecting lines from the CaseMatchSet object cloud to the Trackmglnstance object cloud, respectively. Next, the Caselnstance of the solution is displayed to the user, who may then decide to execute associated action prompt instances. Such processing is represented in Figure 35 by the arrows labelled "58a. displayCaselnstance" from the CBRQuery object cloud to the Caselnstance object cloud and "58b. execute" from the Caselnstance object cloud to the ActionPromptlnstance object cloud.
The evaluation processing continues with providing the user with the option of saving the query information into the case base. That is, the CBRQuery information can be saved, with associated objects, using the DataStoreComponent and corresponding ChangeLog additions. The query information becomes part of the case base so that it might conceivably be retrieved to help build a subsequent user query. The storing of the query information into the case base is represented by the legend "60. msertCBRQuery" on the connecting line from the CBRQuery object cloud to the DataStoreComponent object cloud and the legend "61. addChangeLog" on the connecting line from the DataStoreComponent object cloud to the ChangeLog object cloud. As an alternative (or m addition) to storing query information in the case base, the user can save the information as an Incident. An Incident cannot be retrieved via a query. That is, the query information saved as an Incident can be retrieved as an Incident or converted into a Caselnstance, but it cannot be retrieved as a member of the case base as a solution to a query. To save query information as an Incident, an Incident object first must be constructed, which is represented by the arrow labelled "62. constructlncident", and then must be built by converting the query information to an incident format, which is represented by the arrow labelled "63. buildlncident", both arrows on the connecting line from the Incident connecting line back onto itself. The built Incident is saved in the DataStoreComponent, represented by the legend "64. insert" on the connecting line from the Incident object cloud to the DataStoreComponent.
After the query information is stored, either in the case base or as an Incident, the ChangeLog is updated, as represented by the arrow labelled "67. addChangeLog" on the connecting line from the DataStoreComponent object cloud to the ChangeLog object cloud. If needed, the tracking instances are updated and the update is added to the ChangeLog. Such processing is represented by the legends "66. updateTrackinglnstancesComponent" and "67. addChangeLog" on the connecting lines from the CBRQuery object cloud to the DataStoreComponent object cloud and from that cloud to the ChangeLog object cloud. Finally, evaluation processing is completed by executing destruct methods that delete the instantiated objects from the object oriented programming environment of the CBR system, as will be understood by those skilled m the art.
The processing represented by Figure 49 can be further described by the following table of pseudo-code, which is a continuation of the previous tables of pseudo-code:
Table 19. Pseudo-code for End Build/Evaluate Query repeat.
If have solution for the Query
57 Evaluate:
34a Set status RankedCaselnstance; 36a dolncrement TrackingDefmition; If should increment 38a IncrementTrackingInstance;
If have solution for the Query 58a Display Caselnstance;
If user initiates and if prompt level is satisfactory 58b Execute ActionPromptlnstance;
If user wants to save Query 59 Store the CBRQuery:
60 Insert CBRQuery, QueryParameter,
Pattern, CompoundProperty Values, and Propertylnstances
DataStoreComponent;
61 Add ChangeLog;
If user wants to save Query as an Incident
62 Construct Incident; 7/40
63 Build from Querylncident;
64 Insert Incident, Propertylnstances,
SimpleValues, CompoundValues, and DataStoreComponent; 65 Add ChangeLog;
If needed: 66 Update Trackmglnstances
DataStoreComponent; 67 Add ChangeLog; Destruct objects;
End Single Query.
This destruct operation completes the processing of the CBR system, which then awaits another user request.
The embodiments and examples set forth herein were presented in order to best explain the present invention and its practical application and to thereby enable those skilled in the art to make and use the invention. However, those skilled in the art will recognize that the foregoing description and examples have been presented for the purposes of illustration and example only. The description as set forth is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible m light of the above teaching without departing from the spirit and scope of the following claims.
NOTATION
There is, as yet, no uniformly accepted notation for communicating object-oriented programming ideas. The notation used m this specification is very similar to that known m the programming industry as Booch notation, after Grady Booch. Mr. Booch is the author of Object-Oriented Analysis and Design With Applications, 2d ed. (1994) , available from The Benjamm/Cummmgs Publishing Company, Inc., Redwood City, California, USA. Use of Booch notation concepts withm this specification should not be taken to imply any connection between the inventors and/or the assignee of this patent application and Mr. Booch or Mr. Booch' s employer. The notational system used by Mr. Booch is more fully explained at Chapter 5, pp. 171-228 of the aforementioned book. The notational system used herein will be explained generally below. Other notational conventions used herein will be explained as needed. A system that is modeled by an object-oriented framework can be represented at a high level of abstraction by a diagram called a top-level class diagram. Figure 1 of the drawings is an example of a top-level class diagram containing boxes that represent abstractions of the modeled system. The boxes are arranged in a hierarchy such that boxes representing abstractions close to the physical components of the system are at the lower levels of the diagram and boxes representing more abstract, functional components are closer to the top of the diagram. In Figure 1, the boxes are labelled as "mechanisms" to denote that the abstractions comprise means for implementing modeled system components. The boxes (mechanisms) can be thought of as categories comprising groups of similar classes defined according to object-oriented programming concepts. Figure 1 represents a zoo administration model and therefore the lower hierarchy boxes include a box called Animal Mechanism, which represents animals within the zoo model, and a box called Containment Unit Mechanism, which represents animal pens and cages. At the highest level of Figure 1, the box called Zoo Administration represents a functional abstraction that encompasses a variety of administrative tasks that are performed by personnel.
The boxes in a top-level class diagram represent the system abstractions that provide the system behavior. The system abstractions include classes and objects. Details of the system classes are provided m a class diagram that is used to show the class categories and to indicate the relationships and responsibilities of the classes. A class is represented by an irregularly shaped, dashed-line icon commonly referred to as a cloud. Figure 2, for example, shows several classes represented as clouds. Each class is identified by a name that is unique to the associated class category and also indicates the relationship of each class to one of the mechanisms illustrated in Figure 1. Within a class icon, the class name is listed above attribute names, operation names followed by parentheses, and constraints that are enclosed withm brackets. Figure 3 illustrates the class Zoo Administrator in greater detail. Figure 3 indicates that the Zoo Administrator class includes multiple operations, including ones called "5_mmute_tιmer () ", "add_anιmal 0 ", and "add_contamment_unιt () " . Words in the operation names (and class attribute names) are sometimes separated by an underscore for easier reading. An example of a class attribute listing is shown by the attributes called "feed_freq" and "temp_range" in the class Animals illustrated in Figure 5.
Connecting lines between mechanisms (Figure 1) and classes (Figure 2) indicate the nature of the relationships between such respective abstractions. Thus, connections between the boxes in Figure 1 represent relationships between the various mechanisms. A straight connecting line, for example, represents a simple association relationship indicating shared information. A "using" relationship is a refinement of a simple association whereby one abstraction that is referred to as a server or supplier provides services to another abstraction that is referred to as a client. Such a relationship is indicated by an open circle at one end of a simple association line, the open circle end designating the client that "uses" the associated server. Another refinement of a simple association between two classes is a type referred to as an inheritance relationship. Inheritance is a relationship among classes m which one class shares the structure and/or behavior associated with one or more other classes. An inheritance association is also referred to as a "is a" relationship. Thus, given two classes A and B, the class A has an inheritance relationship with the class B if A is an example of a B; A is said to be a subclass of B and B is said to be a superclass or parent of A. That is, A "is a" B. An inheritance relationship is denoted with a connecting line that includes an arrowhead at one end to indicate a subclass that derives its characteristics from a parent class at the other end of the line.
Another refinement of class relationships is called an aggregation relationship, which denotes an association between a whole and its parts or attribute classes. In notation, an aggregation relationship is indicated between a whole class and an attribute class connected with an association line by a solid circle at the whole class end, with an attribute class at the other end. Another relationship specified by a class diagram is an instantiation relationship. An instantiation relationship represents an instance of a class such as a particular implementation of a class as supported by a programming language. For example, a class called "animal" can have multiple instantiations comprising lions, tigers, and bears. An instantiation of a class is represented by a dashed association line with an arrowhead pointing from an instance of a class to the general class. Finally, a class relationship referred to as a metaclass denotes a relationship in which a class itself is treated as an object that can be manipulated. That is, a metaclass is a class whose instances are themselves classes. Some computer languages, such as Small Talk, support the concept of a metaclass. Such relationships are denoted by a shaded line with an arrowhead pointing from an instance of a metaclass to the general metaclass.
Classes can be parameterized, which denotes a family of classes whose structure and behavior are defined independently of its formal class parameters A parameterized class is represented by a cloud-shaped class icon with a rectangular box placed over a portion of the cloud. The parameter list is named withm the rectangular box. An instantiated class includes a parameter box, called an adornment, in contrast to a dashed line box for a general class. The instantiation relationship between a parameterized class and its instantiated class is represented as a dashed line pointing to the parameterized class. Typically, an instantiated class requires a "usmg" relationship to another concrete class for use as an actual parameter.
Properties of classes can be represented by class adornments that are enclosed withm the class cloud icon. In particular, an abstract class is denoted by an upper case block "A" withm a triangle that is placed within a cloud. An abstract class is a class for which no instances may be created. That is, it is a class of classes Other class adornments are functions of the 00 implementation language. For example, the C++ language permits special class qualifications that will be given special adornments. A static class is represented by an upper case block "S" withm an adornment triangle, a friend class is denoted by an upper case block "F" withm an adornment triangle, and a virtual class is represented by an upper case block "V" within an adornment triangle.
In addition to defining classes, a designer of an object oriented programming system must define objects (see Chapter 5 of the Booch reference) . Objects are represented as solid line clouds withm which is placed the object name located above a list of object attributes. An object is a tangible entity that exhibits a well defined behavior. An object is intended to represent some part of a real system that is being represented by the object oriented program. An object is characterized by a state, a behavior, and an identity. An object can be thought of as an instance of a class. The behavior of an object is an indication of how the object acts and reacts in terms of its state changes and its message-passing actions.
Objects and their interrelationships are represented in object diagrams that comprise object icons having links that indicate synchronization between objects. Links are sequentially numbered to indicate the flow of operations. The existence of a link between two objects indicates an association between their corresponding classes and denotes a path of communication between them. Thus, a link between two objects indicates that one object may send messages to another. The direction of message transfer is indicated by adorning a simple connecting line with an arrowhead that points from an object that invokes an operation, referred to as the client, to the object that provides the operation, referred to as the supplier. Such a representation of a simple synchronization relationship denotes the simplest form of message-passing. Such an association can indicate, for example, the invocation of an operation. Operation parameters can be indicated adjacent the linking line. Some objects may be active, meaning that they embody their own thread of control. That is, such objects are not simply sequential. Active objects may have a variety of concurrency characteristics. If an object has multiple threads of control, then synchronization must be specified. Message synchronization can be synchronous, meaning that the client will wait until the supplier accepts the message. Synchronous synchronization is indicated with an "X" with an arrowhead. Synchronization can encompass balking message- passing, meaning that the client will abandon the message if the supplier cannot immediately service the message Balking is indicated with an arrowhead turned back on itself. Synchronization can encompass a time-out synchronization, meaning that the client will abandon the message if the supplier cannot service the message within a specified amount of time. Time-out synchronization is indicated with a clock face representation adjacent a linking arrowhead. Finally, synchronization can encompass an asynchronous message, meaning that the client sends an event to a supplier for processing, the supplier queues the message, and the client then proceeds without waiting for the supplier Those skilled in the art will appreciate that asynchronous message synchronization is analogous to interrupt handling. Asynchronous message synchronization is indicated with a half arrowhead.
It bears mention that the Booch notation includes interaction diagrams that trace the execution of objects and classes Interaction diagrams are essentially restructured object diagrams. That is, interaction diagrams do not convey any additional information from that conveyed by object diagrams, but simply present the same information in a different format The present specification makes use of object diagrams rather than interaction diagrams, but those skilled in the art will recognize that they are equivalent and also will understand how to convert from one to the other without further explanation.
In Figure 7, for example, the object called Zelda 706 obtains a list of current zoo keepers by calling an operation called List Zoo Keepers from the object called Zoo Keeper Register. The second processing step is represented in Figure 7 by the Zoo Keeper Register object responding to the operation call by passing a message to the Zelda object that comprises the zoo keeper list. The zoo keeper objects include members of the Zoo Keepers class called Tina, Vmce, and Fred. The third step indicated m the object diagram is for the object Zelda to pass a message to each of the zoo keepers instructing them to check the animals by calling the respective Check Animals operation of each zoo keeper object.

Claims

Claims
What is claimed is: I. A computer system comprising: a central processing unit; a user interface; and a main memory having an operating system that supports an object oriented programming environment containing a framework that provides an extensible case-based reasoning system that evaluates a user query by determining a set of case instance descriptions that most closely match properties of a query object corresponding to the user query and thereby produces a solution to the user query.
2. A computer system as defined in claim 1, wherem the case instance descriptions comprise an object oriented programming case set class having case instance objects that include property objects, value objects, and attributes.
3. A computer system as defined in claim 2, wherem the framework permits a user to provide a case structure definition class that specifies an inheritance data structure for the case instance objects.
4. A computer system as defined in claim 3, wherem a user may change the case structure definition class and the computer system, in response, records the change m a change log.
5. A computer system as defined m claim 4, wherein the change log is an object oriented programming class of objects.
6. A computer system as defined in claim 2, wherem the case instance objects have a data structure and behavior specified by a case structure definition class having property objects and corresponding property value attributes.
7. A computer system as defined in claim 6, wherem the property objects include simple value objects and compound value objects.
8. A computer system as defined m claim 6, wherein the case instance objects further include weight instance objects that assign weight attribute values to each of the property objects.
9. A computer system as defmed in claim 2, wherem the framework permits a user to provide an action prompt definition class of objects that specify computer system prompts that are displayed to a user and, upon a received user response, initiate a computer system action.
10. A computer system as defined in claim 2, wherein the framework permits a user to provide a tracking definition class of objects that specify a case instance attribute status condition that is to be detected and upon which a tracking count is incremented.
11. A computer system as defined in claim 2, wherem the framework permits a user to provide an index definition class of objects that specify a subset of the case instance object properties and in which the properties are included, thereby comprising an index to the case instance objects.
12. A computer system as defined in claim 2, wherem the framework permits a user to provide a parsing definition class of objects that specify a parsing scheme to be used in a parsing operation on text or property values in a query object.
13. A computer system as defined in claim 12, wherein the text parsing operation includes token parsing for language translation.
14. A computer system as defined in claim 2, wherem the query object includes a pat isrn of attributes and property objects and value objects cor: espondmg to the attributes, property objects, and value objects of the case instance class of objects, and is evaluated in a match scoring operation that compares the attributes, properties, and values of the query object with the corresponding attributes, properties, and values of a case instance object and computes a match score indicating the similarity of the query object and the case instance object.
15. A computer system as defined in claim 14, wherein the match scoring operation comprises a dynamically weighted operation in which weight multiplier values are applied to designated properties of the query object and the case instance object, wherein each weight multiplier value indicates an importance ranking of the designated property relative to the other properties of the respective query object and case instance object.
16. A computer system as defined in claim 15, wherein the weight multiplier values are received from the user and are then applied to the query and case instance properties.
17. A computer system as defined in claim 16, wherein one or more of the weight multiplier values are zero, such that a zero weight multiplier value is designated for properties that are not to be penalized in the computation of a match score if unspecified.
18. A computer system as defined in claim 14, wherein the match scoring operation comprises a dynamically weighted operation in which relative usage factors are applied to designated properties of the query object and case instance object by multiplying each designated property weight of the query object and case instance object by a corresponding respective query usage scaling factor or case instance usage scaling factor.
19. A computer system as defined in claim 18, wherein the relative usage factors are received from the user and are then applied to the property weights of the query and case instance properties.
20. A computer system as defined in claim 14, wherein the match scoring operation comprises calculating a raw match score indicative of the similarity between the properties of the query object and the case instance object and multiplying the raw match score by a delta factor that is a function of property ranking values that indicate an importance ranking of each property relative to the other properties of the respective query object and case instance object, and the delta factor is defined as
del ta factor = 1 + Y. (ignored rankιngvalυea) - Y. (addi tional ranking values) jr (ranking values) - Y, (ignored ranking values) * }_. (addi tional ranking values)
where the ignored ranking values comprise properties that are not specified in a query or case instance and the additional ranking values comprise the remaining properties, and the summation symbols indicate the sum of the corresponding ranking values.
21. A computer system as defined in claim 20, wherem the ranking values are scalar numbers that specify a relative numerical ranking of each property relative to the others in a case definition.
22. A computer system as defmed in claim 2, wherem the framework permits a user to store the query object into the case set class, whereupon the stored query object can then be retrieved from the case set as the solution to a newly defined query object.
23. A computer system as defined in claim 2, wherem the framework permits a user to specify an incident class of objects into which a query object can be stored for later retrieval and further processing.
24. An object oriented framework for use in a computer system having an operating system that supports an object oriented programming environment that defines a case set class having case instance objects that include property objects, value objects, and attributes comprising case instance descriptions and provides an extensible case-based reasoning system that evaluates a user query by determining a set of the case instance objects that most closely match a query object corresponding to the user query and thereby produces a solution to the user query.
25. An object oriented framework as defined in claim 24, wherein the framework permits a user to provide a case structure definition class that specifies an inheritance data structure for the case instance objects.
26. An object oriented framework as defined in claim 25, wherein a user may change the case structure definition class and the computer system, in response, records the change in a change log.
27. An object oriented framework as defined in claim 26, wherein the change log is an object oriented programming class of objects.
28. An object oriented framework as defined m claim 24, wherem the case instance objects have a data structure and behavior specified by a case structure definition class having property objects and corresponding property value attributes.
29. An object oriented framework as defmed in claim 28, wherem the property objects include simple value objects and compound value objects.
30. An object oriented framework as defined in claim 28, wherem the case instance objects further include weight instance objects that assign weight attribute values to each of the property objects.
31. An object oriented framework as defined in claim 24, wherein the framework permits a user to provide an action prompt definition class of objects that specify computer system prompts that are displayed to a user and, upon a received user response, initiate a computer system action.
32. An object oriented framework as defined in claim 24, wherem the framework permits a user to provide a tracking definition class of objects that specify a case instance attribute status condition that is to be detected and upon which a tracking count is incremented.
33. An object oriented framework as defined in claim 24, wherem the framework permits a user to provide an index definition class of objects that specify a subset of the case instance object properties and m which the properties are included, thereby comprising an index to the case instance objects.
34. An object oriented framework as defined in claim 24, wherein the framework permits a user to provide a parsing definition class of objects that specify a parsing scheme to be used m a parsing operation on text or property values in a query object.
35. An object oriented framework as defined in claim 34, wherein the text parsing operation includes token parsing for language translation.
36. An object oriented framework as defined m claim 24, wherem the query object mcludes a pattern of attributes and property and value objects corresponding to the attributes, property objects, and value objects of the case instance class of objects, and is evaluated m a match scoring operation that compares the attributes, properties, and values of the query object with the corresponding attributes, properties, and values of a case instance object and computes a match score indicating the similarity of the query object and the case instance object.
37. An object oriented framework system as defmed m claim 36, wherem the match scoring operation comprises a dynamically weighted operation m which weight multiplier values are applied to designated properties of the query object and the case instance object, wherein each weight multiplier value indicates an importance ranking of the designated property relative to the other properties of the respective query object and case instance object.
38. An object oriented framework as defined in claim 37, wherem the weight multiplier values are received from the user and are then applied to the query and case instance properties.
39. An object oriented framework as defined in claim 37, wherein one or more of the weight multiplier values are zero, such that a zero weight multiplier value is designated for properties that are not to be penalized in the computation of a match score if unspecified.
40. An object oriented framework as defined in claim 36, wherein the match scoring operation comprises a dynamically weighted operation in which relative usage factors are applied to designated properties of the query object and case instance object by multiplying each designated property weight of the query object and case instance object by a corresponding respective query usage scaling factor or case instance usage scaling factor.
41. An object oriented framework as defined in claim 40, wherein the relative usage factors are received from the user and are then applied to the property weights of the query and case instance properties.
42. An object oriented framework as defined in claim 36, wherein the match scoring operation comprises calculating a raw match score indicative of the similarity between the properties of the query object and the case instance object and multiplying the raw match score by a delta factor that is a function of property ranking values that indicate an importance ranking of each property relative to the other properties of the respective query object and case instance object, and the delta factor is defined as
del ta factor - 1 + ∑ (ignored ranking values) - ~T (additional ranking values)
L (ranking values) - ^ (ignored ranking values) + "^ (addi tional ranking values)
where the ignored ranking values comprise properties that are not specified in a query or case instance and the additional ranking values comprise the remaining properties, and the summation symbols indicate the sum of the corresponding ranking values.
43. An object oriented framework as defined m claim 42, wherem the ranking values are scalar numbers that specify a relative numerical ranking of each property relative to the others in a case definition.
44. An object oriented framework as defined in claim 24, wherem the framework permits a user to store the query object into the case set class, whereupon the stored query object can then be retrieved from the case set as the solution to a newly defined query object.
45. An object oriented framework as defmed in claim 24, wherein the framework permits a user to specify an incident class of objects into which a query object can be stored for later retrieval and further processing.
46. A program product for use in a computer system having an operating system that supports an object-oriented programming environment, the program product comprising: a signal bearing media; and a framework recorded on the signal bearing media, the framework providing an extensible case-based reasoning system that evaluates a user query by determining a set of case instance descriptions that most closely match properties of a query object corresponding to the user query and thereby produces a solution to the user query.
47. A program product as defined in claim 46, wherem the case instance descriptions comprise an object oriented programming case set class having case instance objects that include attributes, property objects, and value objects.
48. A program product as defmed m claim 47, wherein the framework permits a user to provide a case structure definition class that specifies an inheritance data structure for the case instance objects.
49. A program product as defined in claim 48, wherein a user may change the case structure definition class and the computer system, in response, records the change in a change log.
50. A program product as defined in claim 49, wherein the change log is an object oriented programming class of objects.
51. A program product as defined in claim 47, wherein the case instance objects have a data structure and behavior specified by a case structure definition class having property objects and corresponding property value attributes.
52. A program product as defined in claim 51, wherein the property objects include simple value objects and compound value objects.
53. A program product as defined in claim 51, wherein the case instance objects further include weight instance objects that assign weight attribute values to each of the property objects.
54. A program product as defined in claim 47, wherein the framework permits a user to provide an action prompt definition class of objects that specify computer system prompts that are displayed to a user and, upon a received user response, initiate a computer system action.
55. A program product as defined in claim 47, wherein the framework permits a user to provide a tracking definition class of objects that specify a case instance attribute status condition that is to be detected and upon which a tracking count is incremented.
56. A program product as defined in claim 47, wherein the framework permits a user to provide an index definition class of objects that specify a subset of the case instance object properties and in which the properties are included, thereby comprising an index to the case instance objects.
57. A program product as defmed m claim 47, wherein the framework permits a user to provide a parsing definition class of objects that specify a parsing scheme to be used in a parsing operation on text or property values in a query object.
58. A program product as defined in claim 57, wherem the text parsing operation of the framework includes token parsing for language translation.
59. A program product as defined in claim 47, wherem the query object mcludes a pattern of attributes and property and value objects corresponding to the attributes, property objects, and value objects of the case instance class of objects, and is evaluated in a match scoring operation that compares the attributes, properties, and values of the query object with the corresponding attributes, properties, and values of a case instance object and computes a match score indicating the similarity of the query object and the case instance object.
60. A program product as defined in claim 59, Wherein the match scoring operation comprises a dynamically weighted operation in which weight multiplier values are applied to designated properties of the query object and the case instance object, wherein each weight multiplier value indicates an importance ranking of the designated property relative to the other properties of the respective query object and case instance object.
61. A program product as defined m claim 60, wherem the weight multiplier values are received from the user and are then applied to the query and case instance properties.
62. A program product as defined in claim 60, wherein one or more of the weight multiplier values are zero, such that a zero weight multiplier value is designated for properties that are not to be penalized m the computation of a match score if unspecified.
63. A program product as defined m claim 60, wherem the match scoring operation comprises a dynamically weighted operation in which relative usage factors are applied to designated properties of the query object and case instance object by multiplying each designated property weight of the query object and case instance object by a corresponding respective query usage scaling factor or case instance usage scaling factor.
64. A program product as defined in claim 63, wherein the relative usage factors are received from the user and are then applied to the property weights of the query and case instance properties.
65. A program product as defined in claim 60, wherein the match scoring operation comprises calculating a raw match score indicative of the similarity between the properties of the query object and the case instance object and multiplying the raw match score by a delta factor that is a function of property ranking values that indicate an importance rankmg of each property relative to the other properties of the respective query object and case instance object, and the delta factor is defined as
del ta factor - 1 + }. (ignored ranking values) - *T {addi tional ranking values)
J* (ranking values) JT {ignored ranking values) + J* (addi tional ranking values)
where the ignored ranking values comprise properties that are not specified in a query or case instance and the additional ranking values comprise the remaining properties, and the summation symbols indicate the sum of the corresponding ranking values.
66. A program product as defined in claim 65, wherem the ranking values are scalar numbers that specify a relative numerical ranking of each property relative to the others in a case definition.
67. A program product as defined in claim 47, wherein the framework permits a user to store the query object into the case set class, whereupon the stored query object can then be retrieved from the case set as the solution to a newly defined query object.
68. A program product as defined in claim 47, wherein the framework permits a user to specify an incident class of objects mto which a query object can be stored for later retrieval and further processing.
69. A program product as defined m claim 46, wherem the signal bearing media comprises recordable media.
70. A program product as defined in claim 46, wherein the signal bearing media comprises transmission media.
71. A method of executing an application program m a computer system having a central processing unit that controls processing m the computer system, a user interface, and a mam memory having an operating system that supports an object oriented programming environment, the method comprising the steps of: providing an object oriented framework that provides an extensible case-based reasoning system; and evaluating a user query by determining a set of case instance descriptions that most closely match properties of a query object corresponding to the user query and thereby produces a solution to the user query.
72. A method as defined in claim 71, wherem the case instance descriptions of the provided object oriented framework comprise an object oriented programming case set class having case instance objects that include attributes, property objects, and value objects.
73. A method as defined in claim 72, wherem the provided framework permits a user to provide a case structure definition class that specifies an inheritance data structure for the case instance objects.
74. A method as defined in claim 73, wherem a user may change the case structure definition class and the computer system, in response, records the change in a change log.
75. A method as defined in claim 74, wherem the change log is an object oriented programming class of objects.
76. A method as defined in claim 72, wherein the case instance objects have a data structure and behavior specified by a case structure definition class having property objects and corresponding property value attributes.
77. A method as defined in claim 76, wherem the property objects include simple value objects and compound value objects.
78. A method as defined in claim 76, wherein the case instance objects further include weight instance objects that assign weight attribute values to each of the property objects.
79. A method as defmed in claim 72, wherem the provided framework permits a user to provide an action prompt definition class of objects that specify computer system prompts that are displayed to a user and, upon a received user response, initiate a computer system action.
80. A method as defined in claim 72, wherem the provided framework permits a user to provide a tracking definition class of objects that specify a case instance attribute status condition that is to be detected and upon which a tracking count is incremented.
81. A method as defined in claim 72, wherein the provided framework permits a user to provide an index definition class of objects that specify a subset of the case instance object properties and m which the properties are included, thereby comprising an index to the case instance objects.
82. A method as defined in claim 72, wherein the provided framework permits a user to provide a parsing definition class of objects that specify a parsing scheme to be used in a parsing operation on text or property values in a query object.
83. A method as defined in claim 82, wherein the text parsing operation of the provided framework includes token parsing for language translation.
84. A method as defined in claim 72, wherein the query object includes a pattern of attributes and property objects and value objects corresponding to the attributes, property objects, and value objects of the case instance class of objects, and is evaluated in a match scoring operation that compares the attributes, properties, and values of the query object with the corresponding attributes, properties, and values of a case instance object and computes a match score indicating the similarity of the query object and the case instance object.
85. A method as defined in claim 84, wherein the match scoring operation of the provided framework comprises a dynamically weighted operation in which weight multiplier values are applied to designated properties of the query object and the case instance object, wherein each weight multiplier value indicates an importance ranking of the designated property relative to the other properties of the respective query object and case instance object.
86. A method as defined in claim 85, wherein the weight multiplier values are received from the user and are then applied to the query and case instance properties.
87. A method as defined in claim 86, wherein one or more of the weight multiplier values are zero, such that a zero weight multiplier value is designated for properties that are not to be penalized in the computation of a match score if unspecified.
88. A method as defined in claim 84, wherem the match scoring operation of the provided framework comprises a dynamically weighted operation in which relative usage factors are applied to designated properties of the query object and case instance object by multiplying each designated property weight of the query object and case instance object by a corresponding respective query usage scaling factor or case instance usage scaling factor.
89. A method as defined in claim 88, wherem the relative usage factors are received from the user and are then applied to the property weights of the query and case instance properties.
90. A method as defined m claim 84, wherein the match scoring operation of the provided framework comprises calculating a raw match score indicative of the similarity between the properties of the query object and the case instance object and multiplying the raw match score by a delta factor that is a function of property ranking values that indicate an importance rankmg of each property relative to the other properties of the respective query object and case instance object, and the delta factor is defined as
del ta factor = l + "T (Ignored ranking values) - "T {additional ranking values)
}_ (ranking values) - ^ (ignored ranking values) * Y, (addi tional ranking values)
where the ignored ranking values comprise properties that are not specified m a query or case instance and the additional ranking values comprise the remaining properties, and the summation symbols indicate the sum of the corresponding ranking values.
91. A method as defined in claim 90, wherem the ranking values are scalar numbers that specify a relative numerical ranking of each property relative to the others in a case definition.
92. A method as defined in claim 72, wherem the provided framework permits a user to store the query object into the case set class, whereupon the stored query object can then be retrieved from the case set as the solution to a newly defined query object.
93. A method as defined in claim 72, wherem the provided framework permits a user to specify an incident class of objects mto which a query object can be stored for later retrieval and further processing.
94. A method of executing an application program m a computer system having a central processing unit that controls processing in the computer system, a user interface, and a mam memory having an operating system that supports a programming environment, the method comprising the steps of: providing a case-based reasoning system that operates in the programming environment; and evaluating a user query by determining a set of case instance descriptions that most closely match properties of a user query and thereby produces a solution to the user query; wherem: the case instances comprise data structures that include properties, values, and attributes; the user query specifies a pattern of properties, values, and attributes, and is evaluated in a match scoring operation that compares the properties, values, and attributes of the user query with the corresponding properties, values, and attributes of a case instance and computes a match score indicating the similarity of the user query and the case instance; and the match scoring operation comprises a dynamically weighted operation in which weight multiplier values are applied to designated properties of the user query and the case instance, wherem each weight multiplier value indicates an importance ranking of the designated property relative to the other properties of the respective user query and case instance.
95 A method as defmed m claim 94, wherem the weight multiplier values are received from the user and are then applied to the user query and case instance properties.
96. A method as defmed in claim 95, wherem one or more of the weight multiplier values are zero, such that a zero weight multiplier value is designated for properties that are not to be penalized in the computation of a match score if unspecified.
97. A method as defined in claim 96, wherein the match scoring operation comprises a dynamically weighted operation in which relative usage factors are applied to designated properties of the user query and case instance by multiplying each designated property weight of the user query and case instance by a corresponding respective query usage scaling factor or case instance usage scaling factor.
98. A computer system as defined in claim 97, wherein the relative usage factors are received from the user and are then applied to the property weights of the user query and case instance properties.
99. A method as defined m claim 94, wherem the match scoring operation comprises calculating a raw match score indicative of the similarity between the properties of the user query and the case instance and multiplying the raw match score by a delta factor that is a function of property ranking values that indicate an importance ranking of each property relative to the other properties of the respective user query and case instance, and the delta factor is defined as
delta factor » 1 + ∑ (ignored ranking values) - **", (addi tional ranking values)
Jt1 (ranking values) - J* (ignored ranking values) + £ (additional ranking values)
where the ignored ranking values comprise properties that are not specified in a user query or case instance and the additional ranking values comprise the remaining properties, and the summation symbols indicate the sum of the corresponding ranking values.
100. A method as defined in claim 99, wherein the rankmg values are scalar numbers that specify a relative numerical ranking of each property relative to the others in a case instance.
101. A method as defined in claim 99, wherein the step of providing a case-based reasoning system comprises providing an object oriented framework that provides an extensible case- based reasoning system and the case instance descriptions and user query are object oriented programming objects.
PCT/US1997/002574 1996-04-24 1997-02-19 Object oriented case-based reasoning framework mechanism WO1997040455A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP97907689A EP0954805A4 (en) 1996-04-24 1997-02-19 Object oriented case-based reasoning framework mechanism
JP53803897A JP2002505769A (en) 1996-04-24 1997-02-19 Object-oriented case-based reasoning framework mechanism

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/639,322 1996-04-24
US08/639,322 US6081798A (en) 1996-04-24 1996-04-24 Object oriented case-based reasoning framework mechanism

Publications (1)

Publication Number Publication Date
WO1997040455A1 true WO1997040455A1 (en) 1997-10-30

Family

ID=24563639

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1997/002574 WO1997040455A1 (en) 1996-04-24 1997-02-19 Object oriented case-based reasoning framework mechanism

Country Status (5)

Country Link
US (2) US6081798A (en)
EP (1) EP0954805A4 (en)
JP (1) JP2002505769A (en)
CA (1) CA2251980A1 (en)
WO (1) WO1997040455A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1697857A2 (en) * 2003-11-26 2006-09-06 Invention Machine Corporation Method for problem formulation and for obtaining solutions from a data base
US9031947B2 (en) 2007-03-27 2015-05-12 Invention Machine Corporation System and method for model element identification

Families Citing this family (81)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6657931B1 (en) * 1959-02-02 2003-12-02 Sony Corporation Optical disc drive for performing read/write operations on optical disks
US5778378A (en) * 1996-04-30 1998-07-07 International Business Machines Corporation Object oriented information retrieval framework mechanism
US5867153A (en) 1996-10-30 1999-02-02 Transaction Technology, Inc. Method and system for automatically harmonizing access to a software application program via different access devices
US7249344B1 (en) * 1996-10-31 2007-07-24 Citicorp Development Center, Inc. Delivery of financial services to remote devices
US6301584B1 (en) * 1997-08-21 2001-10-09 Home Information Services, Inc. System and method for retrieving entities and integrating data
US6389380B1 (en) * 1997-09-16 2002-05-14 Evolving Logic Associates System and method for performing compound computational experiments
US6192368B1 (en) * 1998-02-11 2001-02-20 International Business Machines Corporation Apparatus and method for automatically propagating a change made to at least one of a plurality of objects to at least one data structure containing data relating to the plurality of objects
US6546545B1 (en) * 1998-03-05 2003-04-08 American Management Systems, Inc. Versioning in a rules based decision management system
US6308314B1 (en) * 1998-03-11 2001-10-23 International Business Machines Corporation Mechanism and method for flexible coupling of processes in an object oriented framework
US6282531B1 (en) * 1998-06-12 2001-08-28 Cognimed, Llc System for managing applied knowledge and workflow in multiple dimensions and contexts
KR100311231B1 (en) * 1998-08-11 2001-11-30 오길록 Apparatus and method for framework modeling with object-oriented analytic information
US6263491B1 (en) * 1998-10-02 2001-07-17 Microsoft Corporation Heavyweight and lightweight instrumentation
US7039919B1 (en) * 1998-10-02 2006-05-02 Microsoft Corporation Tools and techniques for instrumenting interfaces of units of a software program
US6988271B2 (en) * 1998-10-02 2006-01-17 Microsoft Corporation Heavyweight and lightweight instrumentation
US7137101B1 (en) * 1998-12-03 2006-11-14 International Business Machines Corporation Apparatus and method for performing general integrity checks using integrity rule checking points in an enterprise application
US7302429B1 (en) * 1999-04-11 2007-11-27 William Paul Wanker Customizable electronic commerce comparison system and method
US8126779B2 (en) * 1999-04-11 2012-02-28 William Paul Wanker Machine implemented methods of ranking merchants
US6427168B1 (en) * 1999-07-26 2002-07-30 Microsoft Corporation Architecture for system monitoring using high-performance providers
US10055772B1 (en) 2000-01-14 2018-08-21 Versata Development Group, Inc. Method and apparatus for product comparison
US7206756B1 (en) 2000-01-14 2007-04-17 Trilogy Development Group, Inc. System and method for facilitating commercial transactions over a data network
US7069235B1 (en) 2000-03-03 2006-06-27 Pcorder.Com, Inc. System and method for multi-source transaction processing
US8412547B1 (en) 2000-04-24 2013-04-02 Trilogy Development Group, Inc. Commerce server architecture and method for using same
US7908200B2 (en) 2000-05-16 2011-03-15 Versata Development Group, Inc. Method and apparatus for efficiently generating electronic requests for quote
US20020091736A1 (en) * 2000-06-23 2002-07-11 Decis E-Direct, Inc. Component models
US20040220772A1 (en) * 2000-12-20 2004-11-04 Cobble Tara L. Method and system for authoring case bases related to work machines
DE10107352B4 (en) * 2001-02-13 2007-11-22 T-Mobile Deutschland Gmbh Method and device for handling complaints on mobile phones
US20020116359A1 (en) * 2001-02-21 2002-08-22 Tung Joseph S. Method for searching and cataloging on a computer system
US20030050859A1 (en) * 2001-03-23 2003-03-13 Restaurant Services, Inc. System, method and computer program product for a catalog feature in a supply chain management framework
US7197506B2 (en) * 2001-04-06 2007-03-27 Renar Company, Llc Collection management system
IES20010724A2 (en) * 2001-07-30 2003-02-05 Univ Dublin Data processing system and method
US6985922B1 (en) * 2001-12-21 2006-01-10 S.J. Bashen, Inc. Method, apparatus and system for processing compliance actions over a wide area network
US20040034613A1 (en) * 2002-07-23 2004-02-19 Xerox Corporation System and method for dynamically generating a style sheet
US7225401B2 (en) * 2002-07-23 2007-05-29 Xerox Corporation Case-based system and method for generating a custom document
US7487445B2 (en) * 2002-07-23 2009-02-03 Xerox Corporation Constraint-optimization system and method for document component layout generation
US7010746B2 (en) 2002-07-23 2006-03-07 Xerox Corporation System and method for constraint-based document generation
WO2004025411A2 (en) * 2002-09-13 2004-03-25 Natural Selection, Inc. Intelligently interactive profiling system and method
US7437703B2 (en) * 2002-10-25 2008-10-14 Sap Ag Enterprise multi-agent software system with services able to call multiple engines and scheduling capability
US7689995B1 (en) * 2003-01-08 2010-03-30 Avtrex, Inc. Resolving scheduling conflicts in a recording device
US20040153445A1 (en) * 2003-02-04 2004-08-05 Horvitz Eric J. Systems and methods for constructing and using models of memorability in computing and communications applications
US8676853B2 (en) * 2003-02-27 2014-03-18 Hewlett-Packard Development Company, L.P. System and method for software reuse
US8630986B2 (en) * 2003-07-22 2014-01-14 Sap Ag Extending the functionality of enterprise services
US7707148B1 (en) 2003-10-07 2010-04-27 Natural Selection, Inc. Method and device for clustering categorical data and identifying anomalies, outliers, and exemplars
CA2449470A1 (en) * 2003-11-14 2005-05-14 Casebank Technologies Inc. Case-based reasoning system and method having fault isolation manual trigger cases
US6933209B2 (en) * 2003-12-24 2005-08-23 Super Talent Electronics Inc. Stacking memory chips using flat lead-frame with breakaway insertion pins and pin-to-pin bridges
US7788109B2 (en) * 2004-04-03 2010-08-31 Altusys Corp. Method and apparatus for context-sensitive event correlation with external control in situation-based management
US8694475B2 (en) * 2004-04-03 2014-04-08 Altusys Corp. Method and apparatus for situation-based management
US20050222895A1 (en) * 2004-04-03 2005-10-06 Altusys Corp Method and Apparatus for Creating and Using Situation Transition Graphs in Situation-Based Management
US20050222810A1 (en) * 2004-04-03 2005-10-06 Altusys Corp Method and Apparatus for Coordination of a Situation Manager and Event Correlation in Situation-Based Management
US20060112056A1 (en) * 2004-09-27 2006-05-25 Accenture Global Services Gmbh Problem solving graphical toolbar
US20060230010A1 (en) * 2005-03-29 2006-10-12 General Electric Company System and method for implementing decision systems
US9715675B2 (en) * 2006-08-10 2017-07-25 Oracle International Corporation Event-driven customizable automated workflows for incident remediation
US20080040360A1 (en) * 2006-08-14 2008-02-14 Microsoft Corporation Design pattern for choice types in object oriented languages
US9299039B1 (en) * 2006-08-23 2016-03-29 A9.Com, Inc. Managing task lists utilizing integrated information requests
US8027888B2 (en) * 2006-08-31 2011-09-27 Experian Interactive Innovation Center, Llc Online credit card prescreen systems and methods
US8799148B2 (en) * 2006-08-31 2014-08-05 Rohan K. K. Chandran Systems and methods of ranking a plurality of credit card offers
US11887175B2 (en) 2006-08-31 2024-01-30 Cpl Assets, Llc Automatically determining a personalized set of programs or products including an interactive graphical user interface
US20090138329A1 (en) * 2007-11-26 2009-05-28 William Paul Wanker Application of query weights input to an electronic commerce information system to target advertising
US7945571B2 (en) * 2007-11-26 2011-05-17 Legit Services Corporation Application of weights to online search request
US8521666B2 (en) 2007-12-11 2013-08-27 Resolvity, Inc. Case acquisition for incremental Case-Based Reasoning system
US8150896B2 (en) * 2007-12-21 2012-04-03 Make Technologies, Inc. Auditing tool for a legacy software modernization system
US8744903B2 (en) * 2008-04-29 2014-06-03 Sap Ag Event resolution
US8055619B2 (en) 2008-06-05 2011-11-08 Novell, Inc. Mechanisms to support object-oriented version control operations
US8639675B2 (en) 2008-08-28 2014-01-28 Make Technologies, Inc. Linking of parent-child data records in a legacy software modernization system
US8949265B2 (en) 2009-03-05 2015-02-03 Ebay Inc. System and method to provide query linguistic service
US20100294821A1 (en) * 2009-05-20 2010-11-25 Laci Szabo Welding/cutting torch system holster
US8291319B2 (en) * 2009-08-28 2012-10-16 International Business Machines Corporation Intelligent self-enabled solution discovery
US9747358B2 (en) * 2009-09-22 2017-08-29 Sap Se Pattern analysis for a multi-dimensional analytical system
US8214069B2 (en) * 2009-10-23 2012-07-03 Certusoft, Inc. Automated hierarchical configuration of custom products with complex geometries: method and apparatus
US8219228B2 (en) * 2009-10-23 2012-07-10 Certusoft, Inc. Parametric configurator for product design: system and method
US8938466B2 (en) * 2010-01-15 2015-01-20 Lexisnexis, A Division Of Reed Elsevier Inc. Systems and methods for ranking documents
US20110185353A1 (en) * 2010-01-27 2011-07-28 Jack Matthew Mitigating Problems Arising From Incompatible Software
US20120330699A1 (en) * 2011-06-17 2012-12-27 Sap Ag Case-based retrieval framework
US9646054B2 (en) * 2011-09-21 2017-05-09 Hewlett Packard Enterprise Development Lp Matching of cases based on attributes including an attribute relating to flow of activities
US8935191B2 (en) 2012-05-02 2015-01-13 Sap Ag Reuse of on-demand enterprise system customization knowledge utilizing collective experience
WO2014014470A1 (en) * 2012-07-20 2014-01-23 Hewlett-Packard Development Company, L.P. Problem analysis and priority determination based on fuzzy expert systems
US9910740B1 (en) * 2014-06-30 2018-03-06 EMC IP Holding Company LLC Concurrent recovery operation management
US10437835B2 (en) * 2014-12-18 2019-10-08 International Business Machines Corporation Scoring attributes in a deep question answering system based on syntactic or semantic guidelines
US10607291B2 (en) * 2017-12-08 2020-03-31 Nasdaq Technology Ab Systems and methods for electronic continuous trading of variant inventories
CN109166004A (en) * 2018-08-03 2019-01-08 贵州大学 The product customization method of case-based reasioning
US11615325B2 (en) * 2019-01-23 2023-03-28 Kpmg Llp Case-based reasoning systems and methods
CN113487350A (en) * 2021-06-30 2021-10-08 北京市商汤科技开发有限公司 Business product determination method and related device

Family Cites Families (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4531186A (en) * 1983-01-21 1985-07-23 International Business Machines Corporation User friendly data base access
US5247693A (en) * 1985-10-08 1993-09-21 The Foxboro Company Computer language structure for process control applications and method of translating same into program code to operate the computer
US4943932A (en) * 1986-11-25 1990-07-24 Cimflex Teknowledge Corporation Architecture for composing computational modules uniformly across diverse developmental frameworks
US5226161A (en) * 1987-08-21 1993-07-06 Wang Laboratories, Inc. Integration of data between typed data structures by mutual direct invocation between data managers corresponding to data types
US5261080A (en) * 1987-08-21 1993-11-09 Wang Laboratories, Inc. Matchmaker for assisting and executing the providing and conversion of data between objects in a data processing system storing data in typed objects having different data formats
US5274572A (en) * 1987-12-02 1993-12-28 Schlumberger Technology Corporation Method and apparatus for knowledge-based signal monitoring and analysis
US5119469A (en) * 1989-05-17 1992-06-02 United States Of America Neural network with weight adjustment based on prior history of input signals
US5222195A (en) * 1989-05-17 1993-06-22 United States Of America Dynamically stable associative learning neural system with one fixed weight
US5020019A (en) * 1989-05-29 1991-05-28 Ricoh Company, Ltd. Document retrieval system
US5297283A (en) * 1989-06-29 1994-03-22 Digital Equipment Corporation Object transferring system and method in an object based computer operating system
US5057996A (en) * 1989-06-29 1991-10-15 Digital Equipment Corporation Waitable object creation system and method in an object based computer operating system
US5418942A (en) * 1989-07-06 1995-05-23 Krawchuk; Kenneth V. System and method for storing and managing information
JPH0675265B2 (en) * 1989-09-20 1994-09-21 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Information retrieval method and system
US5181162A (en) * 1989-12-06 1993-01-19 Eastman Kodak Company Document management and production system
US5404514A (en) * 1989-12-26 1995-04-04 Kageneck; Karl-Erbo G. Method of indexing and retrieval of electronically-stored documents
EP0439873B1 (en) * 1990-01-29 1995-09-06 International Business Machines Corporation Data processing system
US5101364A (en) * 1990-02-09 1992-03-31 Massachusetts Institute Of Technology Method and facility for dynamic video composition and viewing
US5289563A (en) * 1990-03-08 1994-02-22 Mitsubishi Denki Kabushiki Kaisha Fuzzy backward reasoning device
US5555201A (en) * 1990-04-06 1996-09-10 Lsi Logic Corporation Method and system for creating and validating low level description of electronic design from higher level, behavior-oriented description, including interactive system for hierarchical display of control and dataflow information
US5297279A (en) * 1990-05-30 1994-03-22 Texas Instruments Incorporated System and method for database management supporting object-oriented programming
US5195172A (en) * 1990-07-02 1993-03-16 Quantum Development Corporation System and method for representing and solving numeric and symbolic problems
AU639802B2 (en) * 1990-08-14 1993-08-05 Oracle International Corporation Methods and apparatus for providing dynamic invocation of applications in a distributed heterogeneous environment
EP0553285B1 (en) * 1990-10-16 2000-03-01 Consilium, Inc. Object-oriented architecture for factory floor management
JP2874032B2 (en) * 1990-11-27 1999-03-24 富士通株式会社 Software work tools
US5276775A (en) * 1990-12-07 1994-01-04 Texas Instruments Inc. System and method for building knowledge-based applications
US5119475A (en) * 1991-03-13 1992-06-02 Schlumberger Technology Corporation Object-oriented framework for menu definition
CA2246949C (en) * 1991-03-28 2000-04-18 Ibm Canada Limited-Ibm Canada Limitee Method and means for encoding storing and retrieving hierarchical data processing information for a computer system
US5249270A (en) * 1991-03-29 1993-09-28 Echelon Corporation Development system protocol
US5287447A (en) * 1991-06-28 1994-02-15 International Business Machines Corporation Method and system for providing container object attributes to a non-container object
US5251131A (en) * 1991-07-31 1993-10-05 Thinking Machines Corporation Classification of data records by comparison of records to a training database using probability weights
US5257384A (en) * 1991-09-09 1993-10-26 Compaq Computer Corporation Asynchronous protocol for computer system manager
US5265065A (en) * 1991-10-08 1993-11-23 West Publishing Company Method and apparatus for information retrieval from a database by replacing domain specific stemmed phases in a natural language to create a search query
US5317677A (en) * 1992-04-16 1994-05-31 Hughes Aircraft Company Matching technique for context sensitive rule application
GB9220404D0 (en) * 1992-08-20 1992-11-11 Nat Security Agency Method of identifying,retrieving and sorting documents
US5412756A (en) * 1992-12-22 1995-05-02 Mitsubishi Denki Kabushiki Kaisha Artificial intelligence software shell for plant operation simulation
US5315703A (en) * 1992-12-23 1994-05-24 Taligent, Inc. Object-oriented notification framework system
US5390325A (en) * 1992-12-23 1995-02-14 Taligent, Inc. Automated testing system
US5446842A (en) * 1993-02-26 1995-08-29 Taligent, Inc. Object-oriented collaboration system
US5369766A (en) * 1993-03-25 1994-11-29 Taligent, Inc. Object-oriented loader system with support for different load formats
US5396626A (en) * 1993-08-04 1995-03-07 Taligent, Inc. Object-oriented locator system
US5379430A (en) * 1993-08-04 1995-01-03 Taligent, Inc. Object-oriented system locator system
EP0639814B1 (en) * 1993-08-20 2000-06-14 Canon Kabushiki Kaisha Adaptive non-literal textual search apparatus and method
US5388264A (en) * 1993-09-13 1995-02-07 Taligent, Inc. Object oriented framework system for routing, editing, and synchronizing MIDI multimedia information using graphically represented connection object
US5555370A (en) * 1993-12-28 1996-09-10 International Business Machines Corporation Method and system for creating complex objects for use in application development
US5546577A (en) * 1994-11-04 1996-08-13 International Business Machines Corporation Utilizing instrumented components to obtain data in a desktop management interface system
US5659742A (en) * 1995-09-15 1997-08-19 Infonautics Corporation Method for storing multi-media information in an information retrieval system

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
1994 INT'L. CONF. TOOLS WITH ARTIFICIAL INTELLIGENCE, November 1994, AAMODT A., "A Knowledge Representation System System for Integration of General and Case-Specific Knowledge", pages 836-839. *
AUTOMATED SOFTWARE ENGINEERING, March 1995, Vol. 2, KATALAGARIANOS P., "On the Reuse of Software: A Case-Based Approach Employing a Repository", pages 55-86. *
BURKE J.P., ART* Enterprise Builds Professional Objects HP Professional, December 1994, Vol. 8, No. 12, page 20. *
KOLODNER J., "Case-Based Reasoning", MORGAN KAUFMANN PUBLISHERS, INC., 1993, pages 346-368. *
PROCEEDINGS OF THE IFIP TC8/WG8.1 WORKING CONFERENCE, October 1991, BECKER K. et al., "Reusable Object-Oriented Specifications for Decision Support Systems". *
See also references of EP0954805A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1697857A2 (en) * 2003-11-26 2006-09-06 Invention Machine Corporation Method for problem formulation and for obtaining solutions from a data base
EP1697857A4 (en) * 2003-11-26 2010-12-15 Invention Machine Corp Method for problem formulation and for obtaining solutions from a data base
US9031947B2 (en) 2007-03-27 2015-05-12 Invention Machine Corporation System and method for model element identification

Also Published As

Publication number Publication date
US5978785A (en) 1999-11-02
EP0954805A1 (en) 1999-11-10
JP2002505769A (en) 2002-02-19
EP0954805A4 (en) 2005-11-16
US6081798A (en) 2000-06-27
CA2251980A1 (en) 1997-10-30

Similar Documents

Publication Publication Date Title
US6081798A (en) Object oriented case-based reasoning framework mechanism
US5778378A (en) Object oriented information retrieval framework mechanism
US6792418B1 (en) File or database manager systems based on a fractal hierarchical index structure
US6052670A (en) Object oriented framework mechanism for an electronic catalog
US8126925B2 (en) Dynamic generation and automated distribution of user interface from database model
US5761496A (en) Similar information retrieval system and its method
US6076091A (en) Method and system for providing a flexible and extensible database interactive on-line electronic catalog
US6298476B1 (en) Object oriented software build framework mechanism
US6457002B1 (en) System and method for maintaining a knowledge base and evidence set
US5500802A (en) System and method for creating configurators using templates
US8214351B2 (en) Selecting rules engines for processing abstract rules based on functionality and cost
US8055632B2 (en) Design of self-adapting meta descriptors based upon real use scenarios and experiences
US20020019815A1 (en) Object oriented rule-based expert system framework mechanism
Calegari et al. Integrating fuzzy logic in ontologies
de Silva Garza et al. Design by interactive exploration using memory-based techniques
Constantopoulos et al. Component classification in the software information base
US6768989B2 (en) Collection recognizer
US7496570B2 (en) Interactive filtering model to enhance a software component meta management system
Brezany et al. Ontology-based construction of grid data mining workflows
Eiter et al. Using methods of declarative logic programming for intelligent information agents
Bordogna et al. Extending a graph-based data model to manage fuzzy and uncertain information
Chen et al. Analyzing User Behavior History for constructing user profile
Van Daele et al. PageRank, ProPPR, and stochastic logic programs
Basu et al. DEXT: An integrated knowledge-engineering environment for control-engineering applications
Hocaoğlu An Optimization Model for Variable Ordering in Qualitative Constraint Propagation

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CA JP

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE

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: 1997907689

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2251980

Country of ref document: CA

Ref country code: CA

Ref document number: 2251980

Kind code of ref document: A

Format of ref document f/p: F

WWP Wipo information: published in national office

Ref document number: 1997907689

Country of ref document: EP

WWW Wipo information: withdrawn in national office

Ref document number: 1997907689

Country of ref document: EP