首页 / 专利库 / 软件 / 建模语言 / System for software application development and modeling

System for software application development and modeling

阅读:938发布:2020-12-17

专利汇可以提供System for software application development and modeling专利检索,专利查询,专利分析的服务。并且A system for integrated computer software application development and modeling is herein described. The integrated system includes an expert system that can be supplied as a software plug-in to assist a software developer in designing and constructing software applications using uniform modeling language (UML) object modeling. In one embodiment the plug-in works with Rational Software Corporation's Rational Rose modeling product and can be used to develop software applications for use with M3 and the Weblogic family of transaction and application server products from BEA Systems, Inc, and with other third-party software systems.,下面是System for software application development and modeling专利的具体信息内容。

What is claimed is:1. A system for software application development and modeling, capable of being integrated with a software application design modeling tool, comprising: an expert system for developing software application designs; and, an interface to a software application design modeling tool for modeling said software application designs. 2. The system of claim 1 wherein said expert system further includes means for specifying application design requirements. 3. The system of claim 2 wherein said expert system further includes means for analyzing said application design. 4. The system of claim 3 wherein said expert system further includes means for modifying said software application design. 5. The system of claim 4 wherein said expert system further includes means for software application code generation and implementation. 6. The system of claim 5 wherein said expert system further includes means for testing said software application implementation. 7. The system of claim 4 wherein said means for modifying said software application design includes means for applying applying a data entity pattern. 8. The system of claim 1 wherein said expert system is provided as a plugin to the system for software application development and modeling. 9. The system of claim 1 further comprising: a database interface to allow retrieval of application design data from a relational database; and, an interface repository for storing interface definition language files. 10. The system of claim 1 further comprising: means for reverse engineering an interface definition language file to extract application design information. 11. A system for software application development and modeling, to be used with Rational Rose modeler, comprising: an integrated software development graphical environment; a Rational Rose plugin tool, accessible via said integrated software development graphical environment, for developing software application designs; and, a Rational Rose modeler, include within said integrated software development graphical environment, for modeling said software applications. 12. The system of claim 11 wherein said integrated software development environment further includes means for specifying application design requirements. 13. The system of claim 12 wherein said integrated software development environment further includes means for analyzing said application design using UML. 14. The system of claim 13 wherein said integrated software development environment further includes means for modifying said software application design. 15. The system of claim 14 wherein said integrated software development environment further includes means for software application code generation and implementation. 16. The system of claim 15 wherein said integrated software development environment further includes means for testing said software application implementation. 17. The system of claim 14 wherein said means for modifying said software application design includes means for applying applying a data entity pattern. 18. The system of claim 11 wherein said integrated software development environment is provided as a plugin to the system for software application development and modeling. 19. The system of claim 11 further comprising: a database interface to allow retrieval of application design data from a relational database; an interface repository for storing interface definition language files. 20. The system of claim 11 further comprising: means for reverse engineering an interface definition language file to extract application design information. 21. An system for integrated software development and testing, comprising: an expert system for developing software application designs; a modeler for modeling said software applications; a model repository for one of storing and retrieving application design models to be used with said modeler; and, a software generator for generating software code in accordance with said application designs and said application design models. 22. The system of claim 21 wherein said expert system further includes means for specifying application design requirements. 23. The system of claim 22 wherein said expert system further includes means for analyzing said application design. 24. The system of claim 23 wherein said expert system further includes means for modifying said software application design. 25. The system of claim 24 wherein said expert system further includes means for software application code generation and implementation. 26. The system of claim 25 wherein said expert system further includes means for testing said software application implementation. 27. The system of claim 24 wherein said means for modifying said software application design includes means for applying applying a data entity pattern. 28. The system of claim 21 wherein said expert system is provided as a plugin to the system for software application development and modeling. 29. The system of claim 21 further comprising: a database interface to allow retrieval of application design data from a relational database; and, an interface repository for storing interface definition language files. 30. The system of claim 21 further comprising: means for reverse engineering an interface definition language file to extract application design information. 31. A system for software modeling that allows a software developer to utilize the modeling features of Rational Rose with a Rose plugin for software application design, comprising: an expert system for developing software application designs; a Rational Rose modeler for modeling said software applications; a model repository for one of storing and retrieving application design models to be used with said Rational Rose modeler; and, a software generator for generating software code in accordance with said application designs and said application design models. 32. The system of claim 31 wherein said expert system further includes means for specifying application design requirements. 33. The system of claim 32 wherein said expert system further includes means for analyzing said application design. 34. The system of claim 33 wherein said expert system further includes means for modifying said software application design. 35. The system of claim 34 wherein said expert system further includes means for software application code generation and implementation. 36. The system of claim 35 wherein said expert system further includes means for testing said software application implementation. 37. The system of claim 34 wherein said means for modifying said software application design includes means for applying applying a data entity pattern. 38. The system of claim 31 wherein said expert system is provided as a plugin to the system for software application development and modeling. 39. The system of claim 31 further comprising: a database interface to allow retrieval of application design data from a relational database; and, an interface repository for storing interface definition language files. 40. The system of claim 31 further comprising: means for reverse engineering an interface definition language file to extract application design information.

说明书全文

CLAIM OF PRIORITY

&null;0001&null; This application claims priority from provisional application &null;SYSTEM FOR SOFTWARE APPLICATION DEVELOPMENT AND MODELING,&null; application No. 60/238,561, filed Oct. 4, 2000, and &null;SYSTEM AND METHOD FOR COMPUTER CODE GENERATION&null;, application No. 60/238,559, filed Oct. 4, 2000, and is related to &null;SYSTEM AND METHOD FOR COMPUTER CODE GENERATION&null;, application No. ______, Inventors Todd Little, Loren Konkus, Gilles Lavalou and Timo Metsaportti, filed Oct. 4, 2001, all of which are incorporated herein by reference.

COPYRIGHT NOTICE

&null;0002&null; A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.

FIELD OF THE INVENTION

&null;0003&null; The invention relates generally to computer software development systems and specifically to a system for developing and modeling software applications.

BACKGROUND

&null;0004&null; The increasingly important field of software development brings with it the ever more common question&null;who can we get to actually do the software coding&null; Software developers or coders are in high demand, and their skills demand premium salaries. As such the software generation or development process is a major factor to consider for any company that relies on or uses software for it's day-to-day business needs. This issue is even more relevant to those companies who support the software development process&null;companies such as BEA Systems, Inc, IBM Corporation, and Microsoft Corporation who develop software development products, suites and tools. In order to maximize the benefits of their products to their end customers, these companies must develop tools that allow a software developer to minimize the amount of time necessary to finish a particular software project, while at the same time maximizing the options available to the developer to create a quality product. Some tools are also particularly geared to helping junior or beginning developers, who may not be as experienced, to successfully compete against more established and skilled software architects.

&null;0005&null; Given the importance of software development to the global industry, and the demands that it should be relatively painless, easy to work with, and that it make optimal use of time and resources, it seems natural to want to develop a software generation tool or system, that automatically generates software code in accordance with some preset or preordained wishes of a developer. This allows the software architect or developer to concentrate on the &null;big picture&null;, and to envisage the functioning of the software application as a whole, without undue regard to the intricacies of code development.

&null;0006&null; To this end, many tools allow the software architect to develop a model or plan of the desired software application and to use this plan as a blueprint for subsequent software development. Similar to the way in which an architect designs blueprints for a building, software architects or designers also design blueprints for their complex software applications. And just as a building architect likes to be able to test those blueprints for structural soundness, using for example a modeling or analysis system to test each aspect of the design, software architects also like to test their software blueprints for reliability, scalability, optimal use of resources, and good software design. As the complexity of a particular project increases, so too does the need for a reliable, accurate model. The software industry has developed several modeling techniques to address this need, one of which is the Unified Modeling Language (UML), a nonproprietary language defined in the Object Management Group Unified Modeling Language Specification, hereby incorporated by reference. UML provides software architects with a standardized language for specifying, constructing, visualizing and documenting the artifacts of a complex software system. The UML specification is a successor to three earlier object-oriented methods, Booch, Object Modeling Technique (OMT), and Object Oriented Software Engineering (OOSE), and includes additional expressiveness to handle more complex modeling problems, not readily handled by prior techniques.

&null;0007&null; Some of the features inherent in UML are: Formal definition of a common object analysis and design (OA&D) metamodel to represent the semantic of OA&D models, including static, behavioral, usage and architectural models, Interface Definition Language (IDL) Specifications for mechanisms for model interchange between OA&D tools, which includes a set of I DL interfaces that support dynamic construction and traversal of a user model; and, easily readable notation for representing OA&D models, most commonly a graphic syntax for consistently expressing UML semantics. As such the UML is more correctly considered a visual modeling language rather than a visual programming language. Because of its open standard and widespread industry use it serves to lower the cost of training and retooling when changing between projects ororganizations, and provides opportunity for new integration between tools, processes and domains.

&null;0008&null; UML is more correctly considered a visual modeling language rather than a visual programming language. Because of its open standard and widespread industry use it serves to lower the cost of training and retooling when changing between projects or organizations, and provides opportunity for new integration between tools, processes and domains.

&null;0009&null; UML has served as the basis for many popular software development and modeling tools. One of these tools is &null;Rational Rose,&null; an object-oriented tool produced by Rational Software Corporation (hereinafter simply referred to as Rational), which was originally designed for developing embedded technical and business applications based on the Booch methodology. Rational Rose supports UML, and is Rational's primary offering in support of component-based development (CBD) at the enterprise level. Rational Rose provides the features and extensions necessary to support enterprise-level CBD and object-oriented analysis, modeling, design, and construction (OOAMDC) functionality. To allow the tool to operate with other tools in an enterprise development environment Rational Rose provides significantly enhanced support for integration with Rational's and other manufacturers development tools, such as Visual Basic and Visual Studio, both from Microsoft Corporation.

&null;0010&null; Recently, the demand has arisen to incorporate the functionality of such modeling tools into the application server development field. One such application server is &null;M3&null; from BEA Systems, Inc., also known in several variants as &null;Weblogic Server&null; or simply &null;Weblogic.&null; M3 (and Weblogic Server) are enterprise level application servers or transaction servers that allow IT organizations to develop, deploy, and manage component based applications while building upon and leveraging existing environments and applications. No other system successfully tackles the demand for an integrated application development and modeling system for application servers.

&null;0011&null; As used herein, the term M3 is used to refer to a specific embodiment of the invention. It will be evident to one skilled in the art that the invention may be equally used with other application, transaction and enterprise servers beyond M3

&null;0012&null; Some tools have attempted to combine the design aspects of a UML-based design system, with code generation functionality, to better assist the software developer in code design and generation. An example of this type of tool is the Builder range of products from BEA Systems, Inc, San Jose, Calif., that can be used to build software applications, primarily in C or C&null;&null;, and primarily for the Tuxedo server product, although other types of application can be built, and in other languages.

&null;0013&null; A problem with most of these types of product are that they tend to be proprietary in nature, or are geared specifically toward code generation for a particular species of code type or server. If the developer or architect must work across platforms on a particular project they often need to learn the specific code generation techniques for those platforms. This in turn consumes development time, and adds to both the learning and maintenance time required to manage the various platform tools. The overall situation ends up being not much more useful than the situation in which no tools were used.

&null;0014&null; An important aspect of developing new software development tools and software design products is to envisage how the design process and software code generation process can be successfully incorporated so as to maximize the ability of the developer to quickly and easily build complex applications.

SUMMARY

&null;0015&null; As used herein, the term &null;M3&null; is used to refer to a specific embodiment of the invention. It will be evident to one skilled in the art that the invention may be equally used with other application, transaction and enterprise servers beyond M3.

&null;0016&null; Roughly described, the invention provides an environment that incorporates a Rational Rose compatible UML design tool within a software application design and development product, to comprise an integrated software application, development, and modeling system. One embodiment of the invention can incorporate a software code Generator Framework to automatically generate code related to the design. This software code Generator Framework is described in further detail in co-pending application &null;SYSTEM AND METHOD FOR COMPUTER CODE GENERATION&null;, application No. ______, Inventors Todd Little, Loren Konkus, Gilles Lavalou and Timo Metsaportti, filed Oct. 4, 2001, incorporated herein. It provides a common set of standards and application programming interfaces (APIs) to generate code and configuration files from any data source. A primary goal in developing the Generator Framework is to unify the code generation techniques implemented in the Builder family of products, by introducing sufficient abstraction levels. Built-in (or generic) rules are introduced in the generator framework. A data navigation layer isolates the generator frame work from the data sources used. Filters can be added to the framework to transform data. Notifiers are used by the generator framework to notify external components about the generation process.

&null;0017&null; The Generator Framework is intended to be used in development products such as those produced by BEA Systems, Inc. which includes their Builder family of products. BEA Builder is designed to enable companies to leverage the development skills of their existing programming staff, while substantially reducing the time and costs associated with implementing new applications, such applications being then used primarily for the BEA Tuxedo platform. BEA Builder is a suite of products which address the key aspects of client-side and server-side application development. These include:

&null;0018&null; BEA Active Expert&null;A tool that allows the use of popular Windows development tools to create BEA TUXEDO client applications.

&null;0019&null; BEA C&null;&null; Expert&null;A tool that assists the programmer in writing BEA TUXEDO servers and clients using C&null;&null;.

&null;0020&null; BEA Contract Repository&null;A central repository for the storage of interface information for server-side BEA TUXEDO application components.

&null;0021&null; BEA Configuration Expert&null;A tool to quickly and simply generate BEA TUXEDO configuration files without having to know the specific configuration file formats.

&null;0022&null; As described herein, the invention provides a new suite component or product, referred to herein as BEA Rose Expert. BEA Rose Expert (otherwise referred to as the &null;Expert System&null;) is a plug-in to the Rational Rose development tool that allows the application designer to leverage the Rose object design environment to build BEA TUXEDO servers and clients using C&null;&null;. It will be evident to one skilled in the art that other variants of the Expert System described herein can be developed to work with object design environments, and that such systems and tools are within the scope of the invention.

BRIEF DESCRIPTION OF THE FIGURES

&null;0023&null; FIG. 1 shows an integrated software development system in accordance with an embodiment of the invention.

&null;0024&null; FIGS. 2-3 show screen shots of an integrated software development system in accordance with an embodiment of the invention.

&null;0025&null; FIG. 4 shows options for use with the Expert System in accordance with an embodiment of the invention.

&null;0026&null; FIG. 5 shows a typical multi-cycle software development process.

&null;0027&null; FIG. 6 shows a software development process used by the Expert System in accordance with an embodiment of the invention.

&null;0028&null; FIG. 7 shows a flowchart of the software development process used by the Expert System in accordance with an embodiment of the invention.

&null;0029&null; FIGS. 8-13 show screen shots of an integrated software development system in accordance with an embodiment of the invention.

&null;0030&null; FIG. 14 shows a flowchart of the code generation process used by the Expert System in accordance with an embodiment of the invention.

&null;0031&null; FIGS. 15-23 show screen shots of an integrated software development system in accordance with an embodiment of the invention.

&null;0032&null; FIGS. 24-28 illustrate the use of various design patterns as used by the Expert System in accordance with an embodiment of the invention.

DETAILED DESCRIPTION

&null;0033&null; In accordance with the invention, a modeling development system which uses UML object modeling is described. An example of such a system is referred to herein as the &null;M3 Builder Rose Expert System&null; product from BEA Systems, Inc., San Jose, Calif. The M3 application server product, part of the Weblogic family of products from BEA Systems, is just one example of an application server or transaction server that can be used with the invention. It will be evident to those skilled in the art that the invention may be equally used with other application, transaction and enterprise servers and in other environments that require software development and modeling tools.

&null;0034&null; The M3 Rose Expert System (hereinafter referred to simply as the Expert System) software product comprises a Rational Rose add-in or plugin that aids in the development of M3 Servers or applications in both Java and C&null;&null; that can then execute on all supported M3 platforms. This support includes:

&null;0035&null; The modification of an application Rose model to conform to certain M3 friendly design patterns.

&null;0036&null; The generation of Java and C&null;&null; implementations for an M3 server described by a Rose model.

&null;0037&null; The in-place modification of generated Java and C&null;&null; implementations to reflect Rose model changes.

&null;0038&null; The generation of project support files, including interface definition language (IDL) files, and any necessary make files.

&null;0039&null; The generation of an application test client to verify the integrity of the generated code.

&null;0040&null; The Expert System is designed to work with Rational Rose, a software design environment available from Rational Software Corporation, although other types of component-based development systems, particularly other flavors of object-oriented or UML design tools, can be used without departing from the spirit of the invention.

&null;0041&null; Definitions of Terms, Acronyms, and Abbreviations

&null;0042&null; Design Pattern&null;A Design Pattern names and identifies a common object oriented design structure. The Expert System includes Design Patterns that improve an application's integration and performance in an M3 environment.

&null;0043&null; IDL&null;Interface Definition Language, as defined by the Common Object Request Broker Architecture and Specification.

&null;0044&null; Interface Repository&null;The interface repository (IFR) contains the definitions of the interfaces that determine the CORBA client/server contracts. The interface repository has an associated Repository Server (which is an M3 server) which implements the CORBA repository interface.

&null;0045&null; M3&null;An application or transaction server, and its equivalents.

&null;0046&null; M3 Server&null;An executable program or application that implements distributed CORBA objects for use by client programs.

&null;0047&null; M3 Application&null;A set or plurality of one or more M3 servers that are started and administered as an entity and provide related services to clients. A configuration file (e.g. TUXCONFIG) is typically used by a boot program to start all of the elements related to the application describes an M3 application.

&null;0048&null; Rational Rose&null;A visual modeling tool from Rational Software Corporation which supports the modeling and iterative development of object oriented applications. Rose supports an Extensibility Interface that permits the integration of development tools into the Rose environment.

&null;0049&null; UML&null;The Unified Modeling Language is a diagrammatic notation for modeling object-oriented systems.

&null;0050&null; Relational Table Class&null;A class construct that represents a table in a relational database. It contains column definition and get/set methods.

&null;0051&null; Relational View Class&null;A class construct that represents a virtual table (usually called view) in a relational database. This construct is frequently used to build customized access. It contains column definitions which is based on one or more existing relational tables.

&null;0052&null; Composite View Class&null;A class that represents a combination of relational table and relational view classes as an atomic operation.

&null;0053&null; Data Entity Group&null;A Rose category (logical package) that contains a set of classes representing the functionally related entities such as relational table, relational view, and composite view classes.

&null;0054&null; M3 Builder Data Entity Group&null;M3 representation of a data entity group that contains a set of data entity packages.

&null;0055&null; Data Entity Package&null;A Rose category that contains classes generated by Data Entity Generation feature to enable persistent handling of an M3 object into a relational database.

&null;0056&null; Object-Relational Mapping&null;The mapping of an object oriented database schema into a relational database schema.

&null;0057&null; Relational-Object Mapping&null;The mapping of a relational database schema to an object oriented database schema. The Data Entity Generation facility of The Expert System is focused on this mapping.

&null;0058&null; General Expert System Description

&null;0059&null; The Expert System software product allows M3 server developers to easily use Rational Rose to model their application and to generate M3 servers from their Rose models. Using the Expert System, developers can:

&null;0060&null; Create a design model for an M3 application.

&null;0061&null; Generate data entity objects which map to databases.

&null;0062&null; Validate that the model they have created can be used to create M3 servers.

&null;0063&null; Generate C&null;&null; or Java classes that implement the model they have created.

&null;0064&null; Generate the supporting project configuration, definition, and build files that are necessary to build and deploy the application.

&null;0065&null; Generate test client implementations to verify their implementation.

&null;0066&null; Features of the Expert System product are not tied to a particular modeling tool like Rational Rose. Specifically, its features and concepts are portable to other tools including, for example, Select Enterprise. Code generation can be leveraged into other modeling tools, and can be used to support other server platforms.

&null;0067&null; Supports development both in a Windows-only environment and in a Windows workstation/UNIX server environment including Rational Rose on Windows 95 and NT.

&null;0068&null; Supports integration with the M3 Builder ActiveX Client, via generation of M3 IDL source, which can then be used by the ActiveX Client.

&null;0069&null; Supports integration with the M3 Builder Configuration Expert, and can leverage UML deployment diagrams to provide the Configuration Expert with additional UBBCONFIG information.

&null;0070&null; Hides the usage of M3 IDL from customers that are not interested in using IDL. It generates IDL from model classes and provides an automated interface to the M3 IDL compiler. It also provides an IFR browser so that customers can see the contents of the IFR. The Expert System generates IDL and automatically calls the appropriate M3 IDL compiler. An IFR Browser is available in the ActiveX Client Application Builder, which can be packaged with the Expert System inside M3 Builder.

&null;0071&null; Provides a testing framework that generates default object implementations and test clients to exercise servers.

&null;0072&null; Provides a dynamic sample code generation facility similar to the Builder C&null;&null; in areas where normal code generation is not appropriate. The programmer may cut & paste the sample code into their IDE. Such sample code is available in C&null;&null;, Java, and VB.

&null;0073&null; Support for regeneration of files where application logic has been implemented without losing the application logic.

&null;0074&null; The Expert System add-in co-exists with other add-ins from other vendors.

&null;0075&null; Ability to generate files/components (IDL, make files, ICF, servers) from the Rose model to create M3 C&null;&null; servers.

&null;0076&null; Supports the separation of an application's logical object model into different &null;views&null;. The programmer is able to describe an &null;ideal&null; object model that represents the pure business objects and relates well to application use cases. The Expert System automates enhancing the ideal object model into an &null;implementation&null; object model (called &null;model refinement&null;) that describes all the actual classes in the implementation of the application.

&null;0077&null; Supports &null;ideal&null; logical object modeling in an implementation language neutral form.

&null;0078&null; The Expert System features supports and reinforces use of a high-level object oriented (OO) development process such as the Unified Process. The system does not preclude the use of any OO development process like Unified Process

&null;0079&null; Supports modeling of all M3 IDL data types.

&null;0080&null; Supports importing of standard CORBA IDL into a Rose model. This facility is needed to support porting of existing CORBA systems and exposing of non-M3 CORBA components in a model.

&null;0081&null; Supports a powerful, flexible design pattern facility. This facility presents a library of good M3 design patterns and general industry design patterns that apply to M3. This facility also allows creation of new patterns.

&null;0082&null; Support for very large models and complex application topologies. Designers may decompose their models using Rose control units and packages to help manage complexity and concurrency. Designers are free to create multiple IDL files which reference each other, and include selected CORBA Interfaces and data types within specific IDL files. In addition, designers are free to describe any number of M3 Servers and M3 Server Groups and associate implementation code with one or more Servers.

&null;0083&null; Support for multi-user development of M3 Application models.

&null;0084&null; Supports implementations using C&null;&null; and Java, including the ability to define the implementation language for an M3 application.

&null;0085&null; In a Windows NT-only development environment, The Expert System supports integration with MS Visual C&null;&null; for C&null;&null; implementations and Symantec Visual Cafe for Java implementations. Integration can take the form of generating project files and navigating from model classes to implementation code.

&null;0086&null; The Expert System provides design patterns and code generation to map native C&null;&null; and Java language exceptions to CORBA exceptions.

&null;0087&null; Due to large number of existing of RDBMS installations, the Data Entity Generation feature may include support for the relational-to-object mapping.

&null;0088&null; Data Entity Generation provides the infrastructure to ease the object-to-relational mapping task.

&null;0089&null; Data Entity Generation supports &null;ideal&null; logical object modeling in an implementation language neutral form.

&null;0090&null; The system may assume that data entity classes in the Rose model map to a single RDBMS table.

&null;0091&null; Support for easy mapping between M3 and RDBMS data types. Joins may be supported through the use of Relation View class.

&null;0092&null; Provides for pattern design of data entities to work with existing data modeling products or methodologies in the Rose marketplace.

&null;0093&null; Ability to generate DBTools API code initially, with ANSI Embedded SQL as the second target.

&null;0094&null; Performance is the same as hand coded data entities. High performance of generated code.

&null;0095&null; The data entity object interface is consistent across different RDBMS. Allows access to RDBMS specific features via extensions to the common data entity object interface.

&null;0096&null; Expose XA functionality of the underlying RDBMS.

&null;0097&null; Product Functions

&null;0098&null; FIG. 1 shows an overview of a software development system in accordance with the invention. The software development system or product includes functions and features necessary to support the design, verification, and generation of M3 server applications. As shown in FIG. 1, the complete development system 102 includes the Expert System 104 itself, and a version of the Rational Rose designer 106. The Expert System can be provided as a plugin into a Builder Generator Framework, as described more fully in co-pending application &null;SYSTEM AND METHOD FOR COMPUTER CODE GENERATION&null;, application No. ______, Inventors Todd Little, Loren Konkus, Gilles Lavalou and Timo Metsaportti, filed Oct. 4, 2001, incorporated herein. The Rational Rose designer can be used to reverse engineer input database (RDBMS) files 108 and input IDL files 110, for subsequent use in generating servers or applications. A UML model 112 is used to define the server model under design. When the design is completed to the satisfaction of the software designer or developer, the developer can generate the necessary output IDL files 114, which are then stored in an interface repository 116 for later use. A test client 118 or client application, and a server 120 or server application can also be generated. Together these generated client and server applications are used to comprise an integrated design or development environment (IDE) 102.

&null;0099&null; The functionality of the Expert System is presented in this document from several different perspectives:

&null;0100&null; User Interface: In one embodiment, the Expert System is a Rose add-in or plugin. This means that the Expert System presents its functionality to users in the form of menus, dialogs, message boxes, and design entity properties.

&null;0101&null; Application Modeling Process: There is a logical workflow surrounding the design and fabrication of M3 applications using Rose and the Expert System.

&null;0102&null; Model Import Support: Many customers will be using existing databases and legacy applications in their new M3 applications.

&null;0103&null; Data Entity Generation: This facility is designed to help M3 software designers to easily access information available in existing relational databases.

&null;0104&null; Design Pattern Support: The system encourages application developers to follow certain design patterns that leverage the characteristics of the M3 environment and foster the development of high performance transaction servers by including support for them in the Expert System.

&null;0105&null; Design Model Verification: By checking a Rose design model for consistency and completeness before generating implementation code, the system can help to discover errors earlier in the development process where they are easier to repair.

&null;0106&null; Source Code Generation: The Expert System applies certain mapping algorithms in the transformation of Rose logical and component views to generated Java and C&null;&null; server source code.

&null;0107&null; The typical audience or user for the invention is a methodical software engineer embarked on a journey to design, model, and implement a large application. This new application will extend and interact with existing applications and databases. Because of the complexity of the application, the user has elected to use a software design tool to aid them in this process. Rational Rose is a typical selection, having the benefit of a good reputation among developers, strong third party support, and the availability of M3 server development tools supporting their language of choice.

&null;0108&null; Suitably girded, the software engineer begins by enumerating the application environment through use cases and abstract classes. Through research, the environment is captured in Rose and a logical model is divined which, if implemented, will fulfill the application's requirements. As the journey progresses, the model becomes more concrete until it contains sufficient detail that it can be realized as source code.

&null;0109&null; The invention aids in this journey by providing tools that assist in the refinement and implementation of an application model. The Expert System includes import features that are used to fold existing application and database knowledge into the design model. Design Patterns and the Model Verification tools assist the software developer by performing much of the rote work necessary to complete a model for use within M3. Source code generation creates the implementation from the model and helps to keep the model and source code synchronized. The integration of the Rose model and the Configuration Expert aids the engineer in the deployment and configuration of an application. Together, these tools reduce the time necessary to turn a Rose application model into a prototype M3 Server and ultimately into a production quality implementation.

&null;0110&null; User Interface

&null;0111&null; The Expert System can be provided as a &null;plug-in&null; into the standard Rational Rose product. As such, the graphical user interface (GUI) for the Expert System is an extension of the Rational Rose user interface. During installation, a &null;BEA Rose Expert&null; option is added to the Rational Rose Add-In Manager, as shown in FIG. 2 (140). With &null;BEA Rose Expert&null; selected in the Add-In Manager, the &null;BEA M3 Builder&null; menu option is added to the Rational Rose &null;Tools&null; menu, and the &null;M3 Builder&null; and &null;M3 Builder Data Entity&null; property tab is added to the Rational Rose property specification.

&null;0112&null; The resultant menu tree is shown in FIG. 3 (142), the important features or options of which are further listed in FIG. 4. In using the application, selecting the &null;BEA M3 Builder&null; entry from the &null;Tools&null; menu 160 will lead the user to a sub-menu offering all of the functions provided by the Expert System.

&null;0113&null; The New Project option 162 guides the user through setting project options and creating M3 Frameworks and/or Data Entity Frameworks in the logical view. M3 Framework is a logical package in the logical view, which contains all of the classes in the M3 Framework. Data Entity Framework is a logical package in the logical view, which contains a set of base classes from which all data entity classes must subclass from. If the &null;Enable Data Entity Generation&null; option is selected, a Data Entity Framework logical package in the logical view is created also. The terms &null;logical package&null; and &null;logical view&null; as they apply to the use of a Rational Rose product are well known to one skilled in the art.

&null;0114&null; A New Model Element option 164 guides the user through creating a new model element. The element types include Constant, Enum, Exception, IDL, Interface, M3 Server, M3 Server Group, Module, Relational Table, Relational View, Struct, Typedef, and Union.

&null;0115&null; An Import Model Element option 166 imports schema and data from the RDBMS database to the Rational Rose Model.

&null;0116&null; An Apply Design Pattern option 168 applies design patterns to the user's application model. These Design Patterns modify the application model to improve its integration and performance in an M3 environment.

&null;0117&null; A Prepare for Implementation option 170 finishes the current remaining design work. Any changes to the design after this step require Prepare for Implementation to be executed again.

&null;0118&null; A Validate Model option 172 checks the model for consistency and validity. Validation can not be performed when the model is being constructed. The programmer should run validation frequently, for example, every time they enter a new class or any significant amount of data. All of the validation information is written to the Rational Rose log window.

&null;0119&null; A Rose Expert generate option 174 allows the Expert System to generate M3 compatible code for the application model.

&null;0120&null; An Edit Implementation feature 176 uses the a notepad program or other text editor to open the files associated with the components selected in the component diagram.

&null;0121&null; The developer or user can specify default values for Project Options 178. The values specified therein determine how the Expert System performs the creation of a new project, the model validation, and code generation.

&null;0122&null; A Quick Admin feature 180 includes the following functions: Load Configuration, Build Application, Start Servers, Run Sample Client, Stop Servers and Configuration Expert. Load Configuration loads the configuration file to the system. Build Application invokes the project build file to build the application. Start Servers boots up the application servers. Run Sample Client invokes the sample client program. Stop Servers shuts down the application servers. Configuration Expert brings up the Configuration Expert application and M3 Builder Tabs in Rational Rose Specification Dialogs.

&null;0123&null; The Rational Rose interface includes specification dialogs for the packages, classes, components, etc., that are used to define the attributes for these various items. In addition to the dialogs accessible directly from the Tools menu, the Expert System also adds a &null;M3 Builder&null; tab to four of these Rational Rose Specification dialogs (Class, Component, Processor, and Component Package.) In Rational Rose, classes are created in the Logical View. Once created, the details of the class can be defined in the Class Specification dialog. In Rational Rose, components are created in the Component View. Once created, the details of a component can be defined in the Component Specification dialog. In Rational Rose, component packages are created in the Component View. Once created, the details of a component package can be defined in the Component Package Specification dialog.

&null;0124&null; Application Modeling Process

&null;0125&null; A Model is an abstraction of the essentials of a complex problem, arrived at by filtering out the nonessential details, thus making the problem easier to understand. Visual Modeling is a way of thinking about problems using models organized around real-world ideas. Modeling promotes better understanding of requirements, cleaner designs and more maintainable solutions. Models help a developer to organize, visualize, understand express and create complex things or solutions to complex problems. Successful modeling requires a notation, a process and a tool.

&null;0126&null; For the visual modeling of M3 applications, one embodiment of the invention uses the Unified Modeling Language (UML) as the notation, an iterative-incremental development life-cycle based process, and Rational Rose Modeler as the tool. Since the Expert System product is designed as an add-in to the Rational Rose Modeler, the rational Rose modeling space forms the basis of the visual modeling of M3 servers. This section briefly discusses some of the conceptual aspects behind the rational Rose Modeler product in relation to the Rose Expert add-in (the Expert System), with special emphasis on the Rational Rose Modeler browser views that are used to design applications.

&null;0127&null; The Unified Modeling Language (UML) is a visual modeling language supported by rational Rose for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems. In relation to the Rose Modeler, UML includes the following categories of information and associated types of diagrams:

&null;0128&null; Use cases&null;Described by the Use Case diagrams in the Use Case View. The Use Case View of the Rose Browser provides an area to develop use cases, using packages, actors, use cases and use case diagrams. Use Cases are then ranked and scheduled. Scenarios for complex use cases may be developed.

&null;0129&null; Static Model&null;Described by Class diagrams in the Use Case view and Logical View. The Logical view and the Use Case View in the Rose Browser provide an area to develop a logical view or representation of the system. The Logical view shows static structures, which consists of classes and the associations among them.

&null;0130&null; Dynamic Model&null;Describes the system behavior and illustrates events from actors to systems. Sequence diagrams and Collaboration diagrams are created for use cases to identify system events and system operations. These diagrams are created in the Use Case view and in the Logical View, but generally in the Logical View, since their creation is dependent on the prior development of the use cases. System behavior is a description of what a system does, without explaining how it does it. Behavior of classes are shown using State Diagrams, which are also a part of the Dynamic model. In the Rose Modeler the developer can create state diagrams for classes in the Logical View to depict their behavior and dynamic relationships. State diagrams apply to classes only.

&null;0131&null; Implementation&null;Described in the Component View of the Rose Browser. It comprises component packages and task modules (or components). Components are used to depict the grouping of classes in the entities that physically implement their instances. Component diagrams describe the relationships among the various components.

&null;0132&null; The UML is a modeling language, not a method, and as such has no notion of process. Rational Software has merged their processes (Booch, OMT, OOSE) to create a result called the Rational Objectory Process. It will be useful to first look at a generic object-oriented (OO) development process and its phases, and then OOSE. OOSE is a use-case driven method, which has an interesting notion of the &null;Ideal Object Model&null;.

&null;0133&null; FIG. 5 provides an overview of an iterative approach to object-oriented development. The essence of an iterative approach is that the developer develops an application by successive approximations. First they develop a core application&null;an initial prototype. Then they refine the prototype, improving and extending it. Depending on the complexity of the application, the development process may go through many cycles or iterations (illustrated by design cycles 186, 188, 190).

&null;0134&null; FIG. 6 illustrates an overview of a design process in accordance with an embodiment of the invention. The design process includes the following phases:

&null;0135&null; Requirements specification 194&null;The first phase is unique because it begins with a requirements phase that precedes the analysis phase. There are many ways to do requirements analysis: Business Process Reengineering studies, scenarios, use cases, or CRC cards. This phase ends with a requirement specification&null;a document that provides an overall description of the application to be developed.

&null;0136&null; Analysis 196&null;In this phase, a variety of UML diagrams can be used. Some diagrams, for example, class diagrams and sequence diagrams, are used over and over throughout the development effort and keep getting expanded and refined. Others, for example, state diagrams, are only used when the developer encounters particular problems needs to define a specific object or interaction in more detail.

&null;0137&null; Design 198&null;In this phase the focus shifts from the logical relationships between objects, to the physical layout of the system. The diagrams used in analysis are extended and information enhanced. Infrastructure objects are added to the business objects that were developed during analysis. In addition, user interaction screens are developed, and any other interfaces required by the system. In object oriented systems, serious &null;buy versus build&null; decisions are made during this phase

&null;0138&null; Implementation 202&null;The next phase in the development cycle begins with the generation or production of code. During the design phase all of the objects in the system have been specified, and probably all of the attributes and most of the operations have been identified. In using the Expert System provide by the invention, the classes and names that have been created during the analysis and design phase become code elements during this phase.

&null;0139&null; Test 204&null;The final phase in the cycle involves testing the code that has been produced to see if it functions properly. Depending on the nature of the first prototype, testing may be a formal affair or it may involve fielding a prototype application and determining how users react to it.

&null;0140&null; During the design process, those options used in the design phase 198 can be fed back into the analysis phase 196 in a reuse or recycle step 206, while library classes, components and business objects can be reused (208) in the creation of UML diagrams. Designing complex software systems in Rational Rose requires the preparation of many different versions of the various types of UML diagrams. However, using the invention the developer does not have to develop all the possible diagrams in a single shot. Instead, they can begin by creating a limited version of the planned system for the first iteration. Then they can refine and enhance the system in future iterations until they arrive at the planned system.

&null;0141&null; FIG. 7 shows a flowchart of a summary of the design process described above. As shown therein, in step 210, the developer creates a requirements specification with use cases. In step 212 an analysis is performed with class diagrams. In step 214, the design is generated and evaluated, and in step 216, the system is prepared for implementation. In step 218, code is generated and tested. In step 220 options used in the design phase are fed back into the analysis phase for reuse.

&null;0142&null; Use of the Invention to Model a Typical M3 Application

&null;0143&null; This section describes the first iteration of the process from the viewpoint of the server application developer, and defines the steps needed to develop a prototype of a M3 application. The example that follows uses an adaptation of a University-related basic sample application that is provided with the M3 software system, and is useful in illustrating the modeling steps.

&null;0144&null; Requirements Specification with Use Cases

&null;0145&null; The developer produces the Main Use case diagram and other Use case diagrams as needed. This step is done in the Use Case View Folder of Rational Rose. A use case diagram provides a functional specification of a system and its major processes, and describes the problem that needs to be solved. FIG. 8 shows a use case diagram 221 for our illustrative M3 University basic sample application. The goal is to create a M3 University course registration system that lets a student get a synopsis of all courses that are available to be taken, and the details of a specified list of courses. We document each use case with the use case specification tool. Use cases that have a high rank are tackled in the first development iteration.

&null;0146&null; Perform Analysis with Class Diagrams

&null;0147&null; At this point, the developer can convert the use case diagrams into an ideal object model of the system. To do this, we examine the use cases to discover the classes it suggests. During the first pass, these classes would be specific to the problem domain. Based on these classes and their relationship to one another, we create class diagrams. The relationships between classes are shown as association lines. In Rational Rose, we can create class diagrams for each use case. Creating these class diagrams involves a series of steps and is done in the Logical View Folder of Rational Rose. Each major step can be captured as a separate logical package. These sets of logical packages (comprising collections of classes and/or logical packages) would constitute the ideal object model of the application.

&null;0148&null; At this point in the process, the application designer has completed the external system interactions in terms of Use Cases and a big picture of the application in terms of the various Use Case diagrams and Class diagrams. This ideal object model is then stored as one or more separate Rose Control Units (.cat files).

&null;0149&null; This phase illustrates an important process of inventing new classes, which are not visible directly in the problem domain. These classes are generally called Controller classes and encapsulate control flow logic. In this case, the Registrar class is a new class that we have introduced in this manner. We will use the stereotype of M3 Interface to highlight these classes in our model. Rose classes of the M3 Interface stereotype and the other stereotypes supported by The Expert System can be created using the Create Model Element menu of The Expert System. FIG. 9 shows the class diagram 224 for a GetCourseDetails use case.

&null;0150&null; Design

&null;0151&null; In the design phase, we work mainly in the Logical View of Rational Rose to extend and add information to the diagrams produced in the analysis phase. The notation does not change as we move from analysis to design and iteratively back and forth to some extent. The main steps in this phase are:

&null;0152&null; 1. Create class diagrams for the packages created in the Logical view

&null;0153&null; 2. Create classes and define their stereotypes, attributes and operations

&null;0154&null; 3. Apply Design Patterns codified for M3 applications

&null;0155&null; 4. Create component packages, components and component diagrams in the Component View of the Rose Browser. Component packages contain components, which are either IDL modules or M3 servers. Setting the GenerateIDLModule property to true in the IDL tab produces an IDL module. M3 Servers are specified by setting the component stereotype to M3 Server. Components contain interface classes. This is done by assigning interface classes in the component specification dialog.

&null;0156&null; 5. Complete the design process using The Expert System menu command &null;Prepare For Implementation&null;.

&null;0157&null; Prepare For Implementation

&null;0158&null; This step is available as a sub-menu of the M3 Builder menu under Tools in the Rose toolbar. It finishes the design work remaining after the prior steps outlined above have been done. Any changes to the design done after this step would require this step to be executed again. The first step in the design process can be performed by a New Project wizard, which creates the M3Framework logical package that contains the base classes of the TP framework and the Data entity framework, some parts of which are shown in FIG. 10 (228). The following operations are performed as a part of Prepare For Implementation:

&null;0159&null; 1. As shown in FIG. 11, a logical package with the name C&null;&null; Binding 232 (or Java Binding, depending upon the implementation language) is created at the same level (in the browser tree view) as that of a CORBA interface. The language specific package contains a class for every interface class (at that level) in the ideal object model and for those classes which have been externalized by the way of a relevant design pattern being applied on it. The name of this generated class is the same as that of the interface class with a suffix of _i. Interface classes that belong to the M3 Frameworks package are not included. This class represents a language specific implementation class for a CORBA interface class. M3 server modules realize these implementation classes. The operations of this class are obtained by applying the mappings from CORBA idl to the implementation language. This class can be edited by the user to include information that is not exposed to the external world through the corresponding interface class. These edits are maintained across multiple invocations of the prepare for implementation feature. If the user adds new operations to or changes an operation in the interface class, this feature updates the implementation class.

&null;0160&null; 2. In the Component View of the Rose Browser, it creates a component package called Interfaces with a single component whose name is the project name This component has a language of CORBA. This IDL module contains interface classes that have not been defined by the user but not assigned to any other IDL module. This module has files assigned to it to enable navigation to the generated IDL file. It also allows navigation to the generated client stub source files.

&null;0161&null; 3. In the Component View of the Rose Browser, it creates a component package called <Project name>ServerPkg. It has a stereotype of M3 ServerGroup. It contains a single component with name <Project name>Server. This component has a stereotype of M3 Server and a language which denotes the chosen implementation language (C&null;&null; or Java). This module contains interface implementation classes that have not been assigned by the user to any other M3 Server module. This feature enables quick modeling of prototype solutions.

&null;0162&null; 4. As shown in FIG. 12, it creates another component package named ConfigAndBuild 234. This package contains a component which represents the project level source, configuration, and make files. It contains another component representing a simple ubbconfig file that is also generated during the code generation phase.

&null;0163&null; 5. It creates a component diagram called M3 ServerGroups in the component view that is used to show the relationships between the various server groups in the application.

&null;0164&null; 6. For each CORBA IDL module, it adds files corresponding to the generated IDL file and the client stub file, which are produced by compiling the IDL file using an IDL compiler. This allows easy navigation to the IDL file and the client stubs.

&null;0165&null; 7. For each M3 server module, as shown in FIG. 13, it adds files 236 which hold the servant class implementation files and the make file used to build the M3 server. This allows easy navigation to the implementation files that have to be written for the server.

&null;0166&null; Although the simple example given above describes a University application, it will be evident to one skilled in the art that the features and processes described can be applied to other applications while remaining within the spirt and scope of the invention.

&null;0167&null; Data Entity Generation

&null;0168&null; Many enterprise-level software developers would like to take advantage of object technology to achieve high level of reusability, thus reducing overall development cost. However, to ensure a level of persistence, they may rather use a popular relational database system (RDBMS) which is mature, robust and proven at the enterprise level. Unfortunately, the task of mapping an object technology to relational databases is nontrivial and time-consuming.

&null;0169&null; The Data Entity Generation feature of the Expert System defined by the invention is designed to help software developers (and particularly M3 customers) to easily create an object layer for access to popular RDBMSs. As such, it provides a relational-to-object mapping (existing relational tables are mapped to objects). Using this facility to create objects to encapsulate RDBMS access provides M3 customers with several benefits:

&null;0170&null; It promotes reuse of code, thus improving productivity.

&null;0171&null; It reduces the number of programmers who need to be proficient with RDBMS access languages such as embedded SQL or proprietary procedural APIs.

&null;0172&null; It reduces the amount and complexity of RDBMS-related coding in an M3 application.

&null;0173&null; For each relational entity such as a table or a view, the generator creates two C&null;&null; classes: The base class, which maps directly to the relational table, comprises of attribute (column) definitions and get/set methods; and the row level access class which provides atomic operations such as create, read, update, and delete at row level.

&null;0174&null; The Data Entity Generation can create source code that uses the Rogue Wave DBTools.h&null;&null; API to perform RDBMS operations. This makes the generated code easier to enhance and allows support of a wide variety of popular databases such as Oracle, Sybase, Informix, DB2, and SQL Server from a single source base.

&null;0175&null; There are several ways the programmer can extend the generated code: Add custom code to the &null;protected areas&null; in the generated &null;base&null; classes. These addition will be preserved when the classes are re-generated; and Generate subclasses from the generated base classes and provide additional processing logic or override generated methods. Using these various ways to extend the generated code, the programmer can leverage it to effectively cover all types of RDBMS access used in an M3 application.

&null;0176&null; The Rose98 Enterprise edition provides a database access add-in to address object-relational mapping and how to create persistent model elements from an existing schema. This add-in uses stereotype to categorize class constructs. The Expert System Data Entity Generation follows this add-in mapping technique and class constructs very closely, and wherever possible, it will reuse the pre-defined stereotypes to represent similar class construct. However, to avoid dependency on these pre-defined stereotypes, the Data Entity Generation introduces a property named &null;ClassType&null; in the &null;M3 Builder Data Entity&null; tab. The code generation is based on this property value so it is imperative that the property be populated with the appropriate class type. The Data Entity Generation feature can be used in modeling an M3 application.

&null;0177&null; For ease of illustration, the University sample application is used to demonstrate the detailed modeling steps involved. FIG. 14 is a flowchart showing the steps required to model the application. The steps of FIG. 14 can be considered sub-steps of the generate and evaluate design step 214 of FIG. 7. As shown in FIG. 14, the steps are as follows:

&null;0178&null; Create Data Entity Framework (step 302)

&null;0179&null; To create the data entity framework, the programmer invokes the Expert System &null;M3 Builder&null;>New Project . . . &null; menu option. This will, by default, create the Data Entity Framework category in the Rose model. This framework contains a set of base classes from which all data entity classes must subclass from. The existence of this category is used in the Data Entity Generation model validation.

&null;0180&null; Create Data Entity Group(s) (step 304)

&null;0181&null; As shown in FIG. 15, the data entity groups 238 are created by invoking the Expert System &null;M3 Builder&null;>Import Schema . . . &null; menu option. Data entity groups represent the logical data model for the application. Each data entity group contains a set of relational table and relational view classes which represent RDBMS tables and views and any customized access definition. In the Expert System environment, a data entity group is represented as a Rose category (or package in Logical View) with the &null;ClassType&null; property and stereotype set to &null;DataEntityGroup&null;. Because the University sample is rather simple, we will only create one data entity group named &null;UniversityDEG&null; to hold all data entities. For a more complex system, it is recommended that the programmer modularizes the data entities into subsystems and create data entity groups to represent these sub-systems.

&null;0182&null; Create Customized Access Classes (step 306)

&null;0183&null; To accommodate customized data access, the programmer can create custom access classes 240, illustrated in FIG. 16. In step 306, the programmer creates the relational table classes and a class diagram to show the relationship between them. A utility may be provided to import these entities from the RDBMS into the model. Customized access definition can be defined as well. These are created by defining relational view or composite view classes in the data entity group.

&null;0184&null; Create Composite View Class (step 308)

&null;0185&null; Composite view class deals with multiple table operation. The &null;AddCourseAndStudent&null; class will add one entry in the Course and one in the Student table. We use dependency to represent the relationship between a composite view class and the relational table classes involved.

&null;0186&null; As mentioned, both the stereotype and &null;ClassType&null; property value 236 are set to &null;CompositeView&null;. And we also see that the Entities property is set to &null;COURSE;STUDENT&null; to indicate that this class will interact with these two entities. The &null;Updatable&null; property 238 is set to &null;True&null; to indicate that database update is allowed for this class.

&null;0187&null; Relational View Class (step 310)

&null;0188&null; To build customized access other than composite view class, the programmer creates relational view classes 242, as shown in FIG. 17. Each relational view class represents a standard construct for creating a virtual table based on one or more existing relational table classes.

&null;0189&null; For the University application, we create three relational view classes: CourseSynopsis, CourseDetail, and RegisteredCourses. The CourseSynopsis and CourseDetails are special views of the Course table. The RegisteredCourses is a joined query class.

&null;0190&null; Again, the &null;ClassType&null; property value should be the same as the stereotype, which is &null;RelationalView&null;.

&null;0191&null; For a relational view class which composes of columns from more than one table (multi-table view which traditionally represents a joined query), the &null;Updatable&null; property value is set to &null;False&null;.

&null;0192&null; For an RDBMS, a multi-table view is not updatable. However, for future releases of ORDBMSes, it is very likely that the programmer can update a multi-table view.

&null;0193&null; Apply Data Entity Pattern (step 312)

&null;0194&null; After creating the data entity group(s), the programmer invokes the &null;M3 Builder&null;>Apply Design Pattern . . . &null; to generate/update the M3 representation and implementation of the persistent model defined as shown in FIG. 18(244). The programmer can apply the Data Entity pattern to either a data entity group or a relational entity. The following will happen:

&null;0195&null; A logical package is created for each data entity group if one does not already exist. Each package is the M3 representation for the defined data entity group and has the same name as the original data entity group prefixed with &null;M3&null;. For the University example shown in FIG. 19, a logical package named &null;M3UniversityDEG&null; 246 is created.

&null;0196&null; For every relational table, relational view, or composite view class, a data entity package is created in the M3 Builder data entity group representation as shown in FIG. 20. For example, the CourseDEP 248 is created to represent the Course table. Inside this data entity package, a class diagram, a relational entity and an access class are created. The class diagram represents the actual pattern being applied to the relational entity. The relational entity named CourseRT contains the actual column representation and get/set methods (which are not shown). The access class named CourseDEA holds the interface to the relational base class.

&null;0197&null; The class diagram show the relationship of the generated classes and the classes coming from the framework. In general, this is the pattern that we use to handle the RDBMS-Object mapping for The Expert System.

&null;0198&null; This step involves creating/updating the equivalent M3 Builder data entity group(s) in the Logical View. Each generated M3 Builder data entity group contains a set of data entity packages which map to the relational table and relational view classes. The M3 Builder data entity group has the &null;ClassType&null; property and stereotype set to &null;M3DataEntityGroup&null;. The package name is the same as the data entity group prefixed with &null;M3&null;. For each relational table class, a data entity package is created inside the corresponding M3 Builder data entity group. This data entity package has &null;ClassType&null; value and stereotype of &null;M3DataEntityPackage&null;. This data entity package contains the following:

&null;0199&null; A class diagram which depicts the relationship of the relational table class, its access class, and some of the Data Entity Framework classes.

&null;0200&null; The relational table class which is a direct mapping of the relational table, get/set and support methods. This class has &null;ClassType&null; property and stereotype of &null;RelationalTable&null;.

&null;0201&null; The access class which provide row-level basic operations such as create, read, update, and delete. This class has &null;ClassType&null; property and stereotype of &null;DataEntityAccess&null;.

&null;0202&null; For each relational view class, a data entity package similar to those for the relational table classes is created. The only difference is that instead of having the relational table class, we now have the relational view class. This class has the &null;ClassType&null; property and stereotype of &null;RelationalView&null;. This is another Rose Oracle8 add-in stereotype.

&null;0203&null; For each composite view class, a data entity package similar to those for the relational table classes. The only difference is that instead of having the relational table class, we now have the composite view class. This class has the &null;ClassType&null; property and stereotype of &null;CompositeView&null;.

&null;0204&null; Prepare for Implementation (Step 313)

&null;0205&null; The next step is to prepare the model for implementation. This is done by invoking &null;M3 Builder&null;>Prepare for Implementation . . . &null;. This step involves creating the M3 data entity groups in the component view. All implementation details such as physical source files, make files, libraries are populated in all corresponding model components.

&null;0206&null; Once the M3 data model has been created, the programmer invokes the &null;M3 Builder&null;>Prepare for Implementation . . . &null; 250 (shown in FIG. 21) to create the physical representation of the data model in the Component View. However, this step will be automatically activated by the code generation process.

&null;0207&null; A component package is created for each data entity group if one does not already exist. This component package represents the M3 implementation for the defined data entity group and has the same name as the M3 logical representation. For the University example, a component package named &null;M3UniversityDEG&null; 254 is created, as shown in FIG. 22.

&null;0208&null; The &null;UniversityDEG&null; is the implementation component represent the generated classes in the form of a library. The programmer can set the &null;LibraryType&null; property to either &null;Static&null; or &null;Dynamic&null; to indicate whether the library should be static or shared, respectively.

&null;0209&null; Code Generation (step 314)

&null;0210&null; The very last step in the process is code generation. This is done by invoking &null;M3 Builder&null;>Generate . . . &null;. The code generation involves 2 separate processes: prepare for implementation and code generation. The first step is to prepare the model for implementation. This step involves creating the M3 data entity groups in the component view. All implementation details such as physical source files, make files, libraries are populated in all corresponding model components. The source files for each data entity group is generated in a separated subdirectory.

&null;0211&null; Once the modeling is done, the programmer would generate 256 (shown in FIG. 23) the data access code for the application. This process involves creation of directories if they do not already exist, and generation of data access C&null;&null; source, make files.

&null;0212&null; By default, data access code for each selected component package (which map to a logical package with stereotype &null;Data Entity Group&null;) is generated in a separate directory.

&null;0213&null; Extensibility

&null;0214&null; As mentioned previously, the programmer can extend the generated code in several different ways to provide very powerful and robust data access handling:

&null;0215&null; apply changes to the template to achieve global effect, in other words, the changes are made to all generated data access classes.

&null;0216&null; apply the modification into the protected code areas of a particular class for changes that are local to a particular class.

&null;0217&null; subclass from the generated classes and introduce the customized behavior in the subclass. This allows the generated class be refused in its original form.

&null;0218&null; Design Pattern Support

&null;0219&null; A Design Pattern names and identifies a common object oriented design structure. A popular definition of a pattern is that it is &null;a solution to a problem in a context&null;, in which &null;context&null; refers to a recurring set of situations in which the pattern applies; &null;problem&null; refers to a set of forces&null;goals and constraints&null;that occur in this context; and, &null;solution&null; refers to a canonical design form or design rule that someone can apply to resolve these forces.

&null;0220&null; The Expert System provided by the invention includes the capability to apply Design Patterns to a user's application model. These Design Patterns modify the application model to:

&null;0221&null; Improve its integration

&null;0222&null; Improve its performance in an M3 environment

&null;0223&null; Assist the designer in developing their model

&null;0224&null; Design Patterns as used in the Expert System are divided into 3 broad categories. The first category is referred to as Core Patterns. These patterns utilize fundamental features of M3 that are required to build M3 applications. Their intent is to ensure that the user's M3 application adheres to the required modeling conventions necessary to ensure that code is generated correctly. In general, the results of applying Core Patterns require little additional work on the part of the designer.

&null;0225&null; The second category of Design Patterns is called Helper Patterns. These patterns try to assist the designer in modeling their application. They are called Helper Patterns because they tend to produce only a start of a design and require additional effort on the part of the designer to ensure that the design is robust and scalable. In general, these patterns take some information from the model and produce new elements from that information.

&null;0226&null; The third category of Design Patterns is called User Patterns. The Expert System has the support necessary to add in new design patterns. These patterns, like all other patterns, can manipulate the Rose model, provide a user interface to collect information, and can participate in code generation. A developer may make use of this capability to develop patterns unique to particular industries or customers.

&null;0227&null; Patterns may be applied to a Rose model by selecting a model element (typically a Class) and invoking the Pattern by using the menus in the Expert System. System developers and end-users or customers may add support for design patterns. System developers and customers may also add new design patterns to the Expert System. Design patterns are evolving as experience with them matures. As improvements are made to design patterns or new design patterns are discovered, it is desirable to have the Expert System support them. In addition, customers may have particular design patterns that are unique to their company or industry.

&null;0228&null; A user provided design pattern takes the form of a Java class that implements the DesignPattern interface. In addition to being able to manipulate the model through the application of a design pattern, users are able to modify or add their own templates and rules necessary to generate any code associated with the design pattern.

&null;0229&null; Core Patterns&null;The Factory Pattern

&null;0230&null; There are several common patterns that may be used to create new instances of objects. M3 encourages the use of Factories in its architecture and implementation. Factories are object instances that create other objects. The basis of Design Patterns and their use is further described in &null;Design Patterns: Elements of Reusable Object-Oriented Software&null; by Gamma et al., hereby incorporated by reference.

&null;0231&null; Factories are the primary means by which distributed objects are created in an M3 application. How the objects are created and how they are distributed across servers is largely determined by the factory that creates the instances and sets their associated object key. This pattern helps the designer in using the facilities provided by M3 to create object factories. The design created may need some editing and the developer may have to add code to the factory method implementation to initialize instances.

&null;0232&null; Factories produce instances that adhere to a specified interface. The operations that produce these instances are called factory operations. A factory can have one or more factory operations that produce instances for one or more interfaces. As each factory requires an object reference, it may be desirable to reduce the number of factories by having fewer factories that can create multiple kinds of instances. Factories can either produce new instances or find existing instances. Lookup operations that retrieve or find existing instances are typically associated with factories and can be added by simply adding those operations to the factory class.

&null;0233&null; The Expert System menu includes the ability to apply the Factory pattern to a specific class in the Logical View. This pattern has the following effect:

&null;0234&null; 1. Creates a new Class. If being applied to a single class <class_name>the new class will have the name <class name>Factory. If being applied to more than one class, the new factory will simply be called NewFactory.

&null;0235&null; 2. Populates the factory class with a factory operation named create_object( ) that returns an instance of <class name>if the pattern is being applied to a single class. If it is being applied to multiple classes, a factory operation for each class will be added to the factory class with the name create_<class_name>returning an instance adhering to the <class_name>interface.

&null;0236&null; 3. Marks the factory class with properties to ensure that it is included in the generated IDL, and Java or C&null;&null; implementations.

&null;0237&null; 4. Marks the source class(es) so that it is also included in the generated IDL.

&null;0238&null; 5. Creates an association from the factory class to the source class(es) with the name Instantiates, as shown 274, 276 in FIGS. 24 and 25.

&null;0239&null; 6. If the source class is included in a Server, mark the new factory class to be included in that server.

&null;0240&null; 7. Causes factory registration code to be generated in any servers that include the factory class.

&null;0241&null; After the application of this pattern, designers are free to further modify the constructor operation specification to include any necessary selection and initialization parameters. Applying the Factory pattern has the side effect of making both the source class and the factory class external. If a designer should wish to use this pattern in conjunction with a Distribution Adapter (DA) pattern, they should apply the DA pattern first and then the Factory pattern to the synthesized DA class.

&null;0242&null; For servers including the factory class, the initialization code generated takes care of registering the servant and the factory. The create_object method implementation will be stubbed out with code to create a default IOR. For factory based routing, a class with a stereotype of M3 Routing defines the routing specification. The routing specification class has a single attribute that defines the field name, field type, and ranges, using the attribute name, attribute type, and initial value respectively. An interface that participates in factory based routing has a property on the M3 Builder tab named FactoryRouting that specifies the name of the routing specification class. The code generated for a factory participating in factory based routing will create the NV list and leave a place for the user to add the routing criteria. For all factories, the necessary code to construct the IOR will be present, although the user may want to edit the way the object ID is constructed.

&null;0243&null; The Distribution Adapter Pattern

&null;0244&null; The Distribution Adapter pattern may be applied to a local class in the application to create an Adapter class that will be exposed to M3 clients. The design pattern &null;Adapter&null; is described in several contemporary pattern books and is a term known to one skilled in art.

&null;0245&null; An Adapter converts the interface of a class into another interface that clients expect. Application of the Adapter pattern does not necessarily imply the behavior of the new client interface. The resulting Adapter interface may have exactly the same behavior as the original, or it may be different. The Adapter pattern can be used in many situations:

&null;0246&null; When you are reusing an existing class and its interface doesn't match what you need.

&null;0247&null; When you need to interact with a non-object implementation using objects (the Wrapper pattern).

&null;0248&null; When you want to create a reusable class that cooperates with other classes that have incompatible interfaces.

&null;0249&null; When you have a complex class and you want to present a simpler interface to clients.

&null;0250&null; When you need to separate the client interface of an object from its implementation so each can evolve independently.

&null;0251&null; The Distribution Adapter pattern is a specialization of the Adapter pattern targeted towards the last situation. It specifies the creation of a specialized external interface for an implementation object that is specifically designed to be published and called by distributed clients. The client interface may have exactly the same interface as the implementation object, or it may be simplified or enhanced to optimize its network performance.

&null;0252&null; In an M3 application, it is necessary to determine which objects are distributed and visible to clients versus which objects are local language objects. The Distribution Adapter pattern allows the designer a means to formalize this distinction. Distributed objects need to have a well-defined interface, be made known to the M3 framework, and be appropriate for distribution. This design pattern addresses the first two of those attributes, but leaves the third up to the designer. The designer must still apply good distributed object design principles and ensure that the object they are distributing is of appropriate weight, function, and visibility.

&null;0253&null; In a distributed object system, not all objects must be made accessible from network clients. Local language objects are objects like instances of C&null;&null; classes that are meant to be used only within the context of a single program address space. The overhead to use them is extremely low. Distributed objects on the other hand carry an inherent overhead in using them due to crossing address space boundaries. In order to perform acceptably, a designer may choose which objects need to be accessible across process address space boundaries and ensure that the cost of invoking operations on these remote objects doesn't consume an inordinate amount of resources. Often a single distributed object will act on the behalf of many local language objects and their interfaces may in fact be quite different. It is up to the designer to carefully choose those objects that must be distributed and design their interfaces for acceptable application performance.

&null;0254&null; The Expert System menu includes the ability to apply the Distribution Adapter pattern to a specific class in the Logical View. This pattern has the following effect:

&null;0255&null; 1. Creates a new Class for the selected class named DA<class name>.

&null;0256&null; 2. Populates the new Class with copies of all of the operations in the source class to serve as a starting point for the Distribution Adapter interface.

&null;0257&null; 3. Marks the new Class with properties to ensure that it is included in the generated IDL, Java, or C&null;&null; implementations.

&null;0258&null; 4. Creates a Distributes association 280 from the new class to the source class as shown in FIG. 26.

&null;0259&null; 5. If the source class is included in a Server, mark the new DA class to be included in that server.

&null;0260&null; After the application of this pattern, designers are free to further modify the implementation and DA class designs. No attempt will be made to reconcile these designs with each other. Should a designer wish to reconcile the designs, the DA class should be deleted and the DA pattern applied to the source object again. The servant initialization code for the distribution adapter is included in any servers that include the distribution adapter. Skeletons and stubs are produced for the distribution adapter class and methods.

&null;0261&null; The Distributed Interface Pattern

&null;0262&null; This pattern is nearly identical to the Distribution Adapter design pattern except that no new classes are created. The classes this pattern is applied to have the appropriate properties set to ensure that the class is included in IDL generation and has a servant class created for it.

&null;0263&null; The user may already have a good three-tier design defined and may need to just add the necessary details to make it a good M3 design. This pattern allows the designer to mark a class as being distributed. No additional classes need to be created as the model already has the appropriate classes defined, but without the required M3 properties. This pattern sets those properties.

&null;0264&null; It is important that the class this pattern is applied to be appropriate for distribution or client access. Applying this pattern to an entity class would move the business logic from the server to the client reducing the design for this portion of the application to a two-tier model.

&null;0265&null; The Session pattern may be applied to a Rose class to create a Session class that will be exposed to M3 clients. A session class allows a client to establish a session with an application that will be used for some series of interactions.

&null;0266&null; The Session design pattern allows a client application to create an instance of an object that serves as a session with the server. In one embodiment, information is placed in the object ID that identifies the session to both the client and the server. In the M3 University Production example, the registrar nearly acts as an instance of a session. The ID of the student could have been placed in the object ID of the IOR instead of passing it along in each call to the registrar. This would eliminate problems such as using a student ID with a registrar that can't handle that student.

&null;0267&null; There are times when it may be desirable for a client to maintain a session to a server. Although the client and server must still deal with all the issues associated with server failure and session re-establishment, the benefits of maintaining the session may outweigh the effort of dealing with those issues. An example may be where the server has to do a great deal of database access in order to get the proper objects ready for the client and that the client must make multiple interactions with those objects.

&null;0268&null; This pattern allows the client to establish a session with a server that maintains state over more than one interaction. As a result, the server must now explicitly manage the state and readiness of the object. In addition, the server may fail between interactions and recovery for this must be included in the client application.

&null;0269&null; The Expert System menu includes the ability to apply the Session pattern to a class in the Logical View. This pattern has the following effect:

&null;0270&null; 1. Marks the class with properties to ensure that it is included in the generated IDL, and Java or C&null;&null; implementations.

&null;0271&null; 2. Sets the appropriate properties to ensure that the activation policy is set to process.

&null;0272&null; After the application of this pattern, designers are free to further modify the implementation and Session class designs. Typically, one would want to then apply the Factory pattern to the session class to create a factory.

&null;0273&null; The servant initialization code for the session class is included in any servers that include the session class. Skeletons are produced for the session class and its methods. Code and comments will be generated in the servant implementation and any factory methods for this class that indicate this interface maintains a session with the client and that the server needs to explicitly control the state of instances.

&null;0274&null; Helper Patterns&null;The Process Entity Pattern

&null;0275&null; These patterns help the designer get started on the design of one or more classes. The designer may then alter the generated classes to fit the needs of the specific application.

&null;0276&null; The Process Entity pattern may be applied to a Rose Entity class to help create a Process class that will be exposed to M3 clients.

&null;0277&null; The design pattern &null;Process Entity&null; is described in the M3 documentation. This pattern is well suited to 3 tier computing environments.

&null;0278&null; The Process EntityPattern tries to assist the designer in designing the process objects. The assumption is that the entity objects will already exist, either through other modeling work, or by way of import from a persistent storage facility. As the starting point is one or more entity objects, there is little in the way of semantic knowledge available to the Process Entity Pattern to guide the designer in the creation of the process objects. This means that the pattern can either provide an empty class to the user, which in that case the new class button provided by Rose is sufficient, or the pattern can gather whatever information is available in the entity objects and populate the process object as a starting point. The designer may alter the class created by applying this pattern.

&null;0279&null; The Process Entity design pattern tries to help the designer focus the design on objects that perform high value operations on behalf of the user. Instead of having the client application directly manipulate entity objects, the process entity model suggests that the process objects operate on the entity objects. This saves the time and resources necessary to move the entity object's state to the client. It also hides or encapsulates the business logic from the client by placing that in the process object's implementation. The operations provided by the process objects should closely map to the business processes the application is providing. The Process Entity design pattern doesn't manipulate the model, but instead acts as a validator and tries to ensure that the process class doesn't violate the spirit of the process entity pattern. Specifically, during validation, the pattern will check to see if any attributes have been defined for the class and if so, flag them with an error.

&null;0280&null; The Expert System menu includes the ability to apply the Process Entity pattern to one or more process classes in the Logical View. This pattern has the following effect:

&null;0281&null; It marks the classes as process classes, meaning they will participate in model validation.

&null;0282&null; After the application of this pattern, designers are expected to further modify the Process class design.

&null;0283&null; In one embodiment, no code is generated as a result of applying this pattern. During model validation, the class will be checked to ensure that it doesn't have any attributes or other properties that are inconsistent with the process entity pattern.

&null;0284&null; The Proposal Manager Pattern

&null;0285&null; The Proposal Manager Pattern may be applied to a Rose class to create a new class that provides methods to access an object's state and propose updates to that state. This new class will be exposed to M3 clients.

&null;0286&null; This design pattern provides a means to access entity objects from a client in a controlled fashion. A common use for this pattern is to allow a complex stateful object to be obtained by the client from the proposal manager, allow the client to manipulate the state of the object, and then propose the changes in state back to the proposal manager.

&null;0287&null; There is a class of applications that need to allow a client to access and manipulate the state of a complex object. A loan application would be a good example. The loan application is obtained from the proposal manager, manipulated by the user within the client, and then the updates are proposed back to the proposal manager. The proposal manager is responsible for ensuring that the update is valid.

&null;0288&null; State management needs to be controlled by the proposal manager. It is conceivable that more than one client may want to access and potentially propose updates to the same object. Explicit locking, especially held over a long period of time, tends to have a severe impact on application performance and scalability. It can also be error prone or adversely affected by faults in the network or application. As a result, it is likely that the proposal manager will not maintain a lock on the objects being managed, but instead evaluate the proposed changes against the current state of the object and determine whether to accept the proposal or not. How this is done is application specific and left up to the implementation of the proposal manager class.

&null;0289&null; The Expert System menu includes the ability to apply the Proposal Manager pattern to a class in the Logical View. This pattern has the following effect as further shown in FIG. 27.

&null;0290&null; 1. Creates a new class from the selected class named PM<class name>that will be the proposal manager used to access and update the source class.

&null;0291&null; 2. Creates an association named Updates 292 from the proposal manager class to the source class.

&null;0292&null; 3. Creates a new class Struct<class_name>as a CORBA structure that will hold the source class's state.

&null;0293&null; 4. Creates an association named Serialized 294 from the source class to the data structure class.

&null;0294&null; 5. Populates the proposal manager class with the read and propose operations.

&null;0295&null; 6. Marks the proposal manager class and structure class with properties to ensure that they are included in the generated IDL, and Java or C&null;&null; implementations.

&null;0296&null; After the application of this pattern, designers are free to further modify the proposal manager class by adding, removing, or modifying operations.

&null;0297&null; The servant initialization code for the proposal manager is included in any servers that include the proposal manager. Skeletons are produced for the proposal manager class and skeletal implementations are generated for the read and propose methods.

&null;0298&null; The Entity Manager Pattern

&null;0299&null; The Entity Manager Pattern may be applied to a Rose class to create a new class that provides methods to access the object's state by passing the state in structures. This new class will be exposed to M3 clients.

&null;0300&null; This design pattern provides a means to access entity objects from a client in a controlled fashion. The most typical use for this pattern is in the development of table maintenance or other administrative programs. As the entities are exposed directly to the client, any client application that uses these manager classes will need to be carefully controlled.

&null;0301&null; In the Entity Manager Design Pattern, an entity object has its state made available to a client by means of operations that allow retrieving and updating the object's attributes via structures.

&null;0302&null; Many applications store their persistent state in relational databases. Although the provider of the database most likely will have tools to manipulate entries in the database, they may not be distributed or have the same sort of access control that the rest of the application is using. Using the Entity Manager Design Pattern allows access to the underlying entity objects, but still using the M3 infrastructure.

&null;0303&null; This pattern assumes that all the state associated with an entity class is represented by the attributes for that class. This will be true for classes created by importing database schema information, but not necessarily true in the general case. The designer may ensure this pattern is applied appropriately.

&null;0304&null; The Expert System menu includes the ability to apply the Entity Manager pattern to an entity class in the Logical View as shown in FIG. 28. This pattern has the following effect:

&null;0305&null; 1. Creates a new CORBA structure for the selected class named Struct<class name>that will be the structure used to pass the entity class's state between the client and server.

&null;0306&null; 2. Populates the data structure class with all the attributes from the entity class.

&null;0307&null; 3. Creates an association named Serialized 304 from the entity class to the data structure class.

&null;0308&null; 4. Creates another new class for the selected class named EM<class name>that will act as the entity manager for the entity class.

&null;0309&null; 5. Populates the entity manager class with the read and update operations that pass the data structure class as parameters.

&null;0310&null; 6. Creates an association named Manages 302 from the entity manager class to the entity class.

&null;0311&null; 7. Marks the entity manager class and structure class with properties to ensure that they are included in the generated IDL, and Java or C&null;&null; implementations.

&null;0312&null; After the application of this pattern, designers are free to further modify the data structure class by adding, removing, or modifying members and to modify the entity manager class by adding, removing, or modifying operations. The servant initialization code for the entity manager is included in any servers that include the entity manager. Skeletons are produced for the entity manager class and implementations are generated for the read and update methods. If the entity classes were created using the Data Entity Pattern, this pattern will be able to completely generate the implementations of read and update methods.

&null;0313&null; The Data Entity Pattern

&null;0314&null; The Data Entity Pattern may be applied to one of the RDBMS classes (such as a relational table, relational view, or composite view class) to create a Data Entity class. The Data Entity class will perform all data access operations and represent a &null;business entity&null; within the application.

&null;0315&null; The Data Entity pattern is a specialization of the Adapter pattern that provides a common set of interfaces for RDBMS data access.

&null;0316&null; The persistent state of entity objects is often maintained in a relational database. This pattern helps the designer create entity objects that perform a relational to object mapping. This pattern works with the Data Entity Generation facility of the Expert System to provide language objects that map to relational tables and views. This pattern while not specific to M3, is helpful to the typical designer that has state information in existing relational tables that will make up some or all of the state of the application's entity objects. In general, the classes created by this pattern may not be made distributable or directly accessible to client applications.

&null;0317&null; The Expert System menu includes the ability to apply the Data Entity pattern to a specific RDBMS class in the Logical View. This pattern has the following effect:

&null;0318&null; 1. Creates a new package in the corresponding M3 data entity group.

&null;0319&null; 2. Populates the new package with a class diagram to depict the pattern implementation for the data entity class.

&null;0320&null; 3. Creates a class to represent the relational entity.

&null;0321&null; 4. Creates an access class to represent the interface for the entity.

&null;0322&null; In one embodiment, after the application of this pattern, no attempt is made to reconcile these designs with each other. Changes may be made to the source model and the pattern can be reapplied to the modified entity.

&null;0323&null; Design Model Verification

&null;0324&null; Design model verification is the process by which a Rose application model is scanned for correctness and completeness prior to the generation of implementation code. A software designer can invoke model verification through the Expert System add-in menu. Model verification is also invoked internally by the Expert System prior to the generation of source code. While scanning the Rose model, model verification can uncover several kinds of errors and inconsistencies:

&null;0325&null; Incomplete model

&null;0326&null; Missing or incorrect stereotypes and properties

&null;0327&null; Missing defaults and application settings

&null;0328&null; Design Pattern inconsistencies

&null;0329&null; After scanning the Rose model, model verification makes a determination as to whether or not to the model is complete, consistent, and may be implemented. In addition, model verification can also uncover certain design constructs that may result in poor performance in an M3 environment. These performance concerns are also noted and reported to a software designer, although they will not be used to determine if the model is complete and consistent.

&null;0330&null; Model Verification Reporting

&null;0331&null; Fatal errors encountered during the model verification process are reported immediately and the verification process is terminated. The offending portion of the Rose model is highlighted and a message is displayed to the software designer providing details of the error encountered. Non fatal model verification results are reported in the Rose Log Window. Results are categorized into one of several severity levels:

&null;0332&null; Informational messages, which contain information concerning the execution of the verification

&null;0333&null; Warning messages, which include verification results which may highlight an inconsistency or omission, but do not necessarily preclude the generation of an implementation for a model

&null;0334&null; Error messages, which highlight problems with the model that preclude the generation of source code

&null;0335&null; Performance messages, which highlight design constructs that may result in less than optimal performance in an M3 environment.

&null;0336&null; In one embodiment, The Expert System may present its model verification results using a specialized user interface dialog window instead of the Rose Log Window. This user interface dialog permits software designers to select an error or warning and go to the model construct that caused the verification result.

&null;0337&null; Source Code Generation

&null;0338&null; In one embodiment, the Expert System places the source files and project files for an M3 server in a Windows directory. The selection of the directory can be affected by defaults, The Expert System add-in menu dialogs, and by Rose component property settings. The Expert System &null;Application Settings&null; dialog can be used to specify a root directory for the Application development tree. By default, the application-wide source files will be placed in this directory, and the files that are specific to a server will be placed in server-specific subdirectories that are created as children of the root directory.

&null;0339&null; The Expert System users can override these defaults to place specific source file in any desired directory by providing values to the &null;Directory&null; property of the corresponding Component elements. Directory specifications may either be absolute or relative to the application root directory.

&null;0340&null; C&null;&null;

&null;0341&null; The C&null;&null; server code that The Expert System generates is intended to be utilized by an integrated development environment (IDE) such as Developer Studio&null;. There are no constraints placed on the generated code that it depend on any Microsoft&null; specific include or library files. The following actions will occur as part of code generation.

&null;0342&null; Generate IDL

&null;0343&null; Generate client and server implementation files

&null;0344&null; Build commands will be generated for Developer Studio&null; Visual C&null;&null; and other IDE's.

&null;0345&null; Server configuration will be in the form of an ICF file.

&null;0346&null; Client Implementation

&null;0347&null; In one embodiment, a simple client console application is generated with the project. This client will contain code that will create a bootstrap and find one of the server's factories and instantiate it.

&null;0348&null; Server Implementation

&null;0349&null; This code module implements three services: initialize, release and create_servant. Initialize will create a factory reference and register it with the factory finder. Release will unregister the factory. Create_servant will create and return an implementation.

&null;0350&null; Server Factory Implementation

&null;0351&null; This code module defines a factory class for each class identified as a factory in the Rose model. Each factory will support at least one function called create_object from the COS life cycle extension simple factory, in additional to any other factory functions defined in the model.

&null;0352&null; Servant Implementation

&null;0353&null; This code module contains the implementation for each interface exported to the implementation repository. A C&null;&null; class is created for each interface and a method defined for each operation in the interface. If pseudo code has been defined in Rose for a particular function, it will be included in the method stub as a comment. Each class is defined in a separate file, which has the same name as the class.

&null;0354&null; Configuration (ICF file)

&null;0355&null; This file contains a list of C&null;&null; classes included in the project and the activation and transaction policies for the factories and servers.

&null;0356&null; Project File

&null;0357&null; If the target environment is Windows based, then this is a project file (DSP) that can be used to load the generated code into the IDE. If it is not, then the project file generated is in the form of a makefile, which can be built on the target platform.

&null;0358&null; Java

&null;0359&null; The Java server code that The Expert System generates is intended to operate within the Java server environment that is being created as part of the IcedJava project. The artifacts necessary to support Java server development closely align with the artifacts that are necessary to support C&null;&null; server development.

&null;0360&null; Configuration (XML file)

&null;0361&null; This file contains a list of java files that will be inserted into a Java archive for this project. It also contains activation and transaction policies for the factories and servers.

&null;0362&null; Model Mappings

&null;0363&null; The following sections describe the mapping between ROSE model constructions and the contents of the generated source files.

&null;0364&null; IDL Generation

&null;0365&null; The Interface Definition Language (IDL) file describes the external CORBA interface into an M3 application. Application designers have complete flexibility to partition their CORBA interface definitions into separate IDL files in separate directories.

&null;0366&null; Modules

&null;0367&null; Applications often group externally visible interfaces into Modules. These modules generally correspond to a natural partitioning of the application. The partitioning of interfaces into modules helps to segment a large, complicated application into smaller, more easily understood collections of behavior. Application designers create Modules using Logical View Packages. A Package becomes a CORBA Module by setting the &null;CORBAModule&null; stereotype. CORBA elements under the package are then included within the scope of that module. Modules may be nested within other modules.

&null;0368&null; Interfaces

&null;0369&null; To specify that a Class should be included as an interface definition within the generated IDL, set the class stereotype to &null;Interface&null;. Although CORBA permits one to define an Interface outside of the scope of a module, in The Expert System Interfaces must have a CORBA Module stereotype package somewhere in their parentage. All of the attributes, relationships, and operations that are associated with this Class specification will be included in the generated IDL as interface attributes and operations.

&null;0370&null; Data Type Definitions

&null;0371&null; To specify that a Class should be included as a type definition within the generated IDL, the class stereotype is set to CORBATypedef.

&null;0372&null; Constants

&null;0373&null; To specify that a Class should be included as a constant definition within the generated IDL, set the class stereo type to CORBAConstant, the class property Implementation Type to the type of the constant, and the class property ConstValue to the value of the constant.

&null;0374&null; Structures

&null;0375&null; To specify that a Class should be included as a structure definition within the generated IDL, set the class stereotype to CORBAStruct. Both Attributes and Roles will be included in the structure. Each has an &null;Order&null; property that may be used to establish a relative positioning of the elements within a structure.

&null;0376&null; Unions

&null;0377&null; To specify that a Class should be included as a union definition within the generated IDL, set the class stereotype to CORBAUnion. The attributes and relationships of the class define the union elements, as is the case for CORBAStruct classes.

&null;0378&null; Enumerations

&null;0379&null; To specify that a Class should be included as an enumerated value within the generated IDL, set the class stereotype to CORBAEnum. The Attributes of the class define the possible enum values. The Order property may be used to explicitly set a relative positioning of possible enum values.

&null;0380&null; C&null;&null; Code Generation

&null;0381&null; The C&null;&null; code generation model mapping is adopted from the Rational Rose 98 IDL generation facility.

&null;0382&null; Java Code Generation

&null;0383&null; The Java code generation model mapping is adopted from the Rational Rose 98 IDL generation facility.

&null;0384&null; M3 Server Projects

&null;0385&null; Servers are executable processes that provide implementations for a set of interfaces for an M3 application. These Servers generally correspond to a natural partitioning of an application, often from the perspective of optimizing transaction throughput, distribution load balancing and other network configuration considerations. An application Rose model may specify one or more M3 servers are to be built as part of an M3 application. Like the grouping of interfaces into CORBA Modules, the grouping of interface implementations into Servers is specified in Rose by using Components. Designers specify the creation of an M3 server by setting the component's stereotype to &null;M3 Server&null;. Interfaces are then selected for inclusion within a server by dragging classes from one of the Logical Views in the Browser window to the desired Server Component.

&null;0386&null; The partitioning of interface implementations within a Server and the grouping of interfaces into CORBA Modules may or may not align on the same boundaries. The same Rose Component objects may be used to specify both constructions.

&null;0387&null; The foregoing description has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈