Method of and system for designing an N-tier software architecture for use in generating software components6854107Abstract A system and method for designing a software architecture for utilizing software components in building extensible N-tier software applications is described, the method comprising specifying a set of software component rules for creating software components; specifying a set of tier rules for creating tiers; and specifying a set of assembly rules further comprising association rules by which each tier may be associated with at least one software component and linkage rules by which each tier may be linked to at least one other tier. The tier rules may further comprise a set of association rules by which each tier created with the set of tier rules may be associated with at least one software component created using the software component rules; a set of tier framework rules to provide an architected context for software components within a tier; and a set of package rules to provide for logical grouping of interfaces within a framework defined by the tier framework rules to provide a set of specific behaviors for the tier. Claims What is claimed is: Description BACKGROUND OF THE INVENTION
TERM DEFINITION
Architecture A set of design principles and rules used to create a design.
COM Component Object Modeling.
Component An object that encapsulates, or hides, the details of how its
functionality is implemented and has a well-defined
interface reusable at a binary level.
CORBA Common Object Request Broker Architecture
DCOM Distributed Component Object Model
DLL Dynamic Link Library
eventhandler message handling object
Framework An architected context for business objects that modify the
business objects' attributes or add new behavior.
GUID Globally unique identifier, e.g. a number having a
predetermined number of bits that uniquely identifies a
software component
JAVA a programming language
Model A heterogeneous collection of components whose relation-
ships are enforced via a predetermined set of rules; a
collection or instantiation of software components where
the collection or instantiation may be organized into a
hierarchy
Object A programming structure encapsulating both data and
functionality that are defined and allocated as a single unit
and for which the only public access is through the
programming structure's interfaces. A COM object must
support, at a minimum, the IUnknown interface, which
maintains the object's existence while it is being used and
provides access to the object's other interfaces.
Package A logical grouping of interfaces within a framework that
provide a specific behavior such as messaging or
connecting.
Sink Connection sink for messaging.
Source Connection source for messaging
Tier A logical grouping of components that perform a
well-defined, predetermined function.
It is understood that these descriptive constructs are not limitations of the present invention, the scope of which is as set forth in the claims, but are rather meant to help one of ordinary skill in the software programming arts more readily understand the present invention. More information on these functions and naming conventions, and on COM objects in general, can be found in the Microsoft Developer's Network (MSDN) Library (January 1999), published by Microsoft Press and incorporated herein by reference. A given N-tier architecture may be designed using the principles, rules, and methods of the present invention to satisfy the needs and characteristics of a given industry. The particular N-tier architecture designed in accordance with the present invention is then used to generate software components 20 for an application. As used herein, "application" is understood to include compiled, interpreted, and on-the-fly applications, such as, by way of example and not limitation, CORBA, just-in-time, JAVA, and the like, as these terms are understood by those of ordinary skill in the software programming arts. A "wizard" or other code development tool may also be designed, based on a particular N-tier architecture, which allows the code developer to generate software components 20 within the specifications of the particular N-tier architecture. For example, the wizard may permit the code designer to generate a software component 20 by selecting the tier 30 for the software component 20 and ensuring that the software component 20 is in compliance with the interface standards designated for software components 20 of that particular tier 30. Referring still to FIG. 1, in an N-tier architecture designed using the present invention, the present invention defines a methodology for specifying rules and methods that enable applications to be constructed. A typical application built using architectures created with the present invention have functionality broken down at the system level into logical chunks or tiers 30 that perform a well-defined function, such as a business function, according to rules as set forth herein. In a currently preferred embodiment, each tier 30 logically groups together software components 20 that have a similar type of behavior. As discussed herein below, framework 40 is an architected context for software components 20 in a tier 30; that is, framework 40 specifies a basic design structure, including base software components 20, and a set of standard interfaces for any software component 20 categorized as belonging to that tier 30. Framework 40 comprises one or more packages 42 which provide a method for collecting software components 20 and represent interfaces. A package 42 is a collection of interfaces that provide a specific behavior, such as messaging or connecting. Frameworks 40 may have more than one package 42. Each tier 30 is thus a logical grouping of packages 42 comprising discrete software components 20 which adhere to the rules of the present invention. In a currently preferred embodiment, all software components 20 created for or used by an application are put into an inventory (or catalog) 700 of components, so that each software component 20 may be reusable by other application efforts. Further, software components 20 are thus available for use by any other software component 20 that can use its interface, including off-the-shelf components. Off-the-shelf components, e.g. purchased components, may be incorporated into the N-tier architecture of the present invention such as by adding a predetermined interface to that off-the-shelf component as required by the N-tier architecture of the present invention. The present invention encompasses rules and methods to allow software components 20 developed in accordance with a specified N-tier architecture to be used in a variety of ways. For example, rules may exist to allow a group of N-tier architecture software components 20 to be assembled and compiled to provide a stand-alone, executable program. Alternatively, rules may exist to allow software components 20 to be combined into tiers 30 and invoked at run-time, to form new unique applications on-the-fly. The present invention further encompasses rules to allow new software components 20 to be created or purchased and then added to inventory 700 for future reuse. Inventory 700 may then be reused for subsequent applications. As more software components 20 are developed, inventory 700 grows, thus further reducing the time and resources needed to develop new applications. The present invention also encompasses rules to allow a given N-tier architecture to be extended, for example by adding a new tier 30 to result in a new, N+1-tier architecture. Many software components 20 developed for the predecessor N-tier architecture will be immediately reusable in the incremental, N+1-tier architecture, and others will be reusable with relatively minor modifications. In one embodiment, the present invention provides rules to define and create a particular N-tier architecture with a specified, initial number and type of tiers 30 and with a specified interface architecture for each tier 30, where each initial tier 30 satisfies one of a major portion of system functionality, such as business logic (processing), data, and the like. An N-tier architecture defined and implemented using the present invention may be thus adapted for use in numerous industries and contexts, for example ship-building arts or medical arts as well as geological industry type business objects. Each tier 30 defined and implemented using the present invention specifies the types of interfaces that software components 20 associated with that tier 30 must have. These interfaces are thus standardized interfaces for that N-tier architecture that allow software components 20 of a type of tier 30 to be accessed by other software components 20 in other tiers 30. A software component designer using the present invention defines the rules for building software components 20 with the knowledge or ability to access other software components 20, based on the interface specified by tier 30 for these types of software components 20. In an embodiment, an N-tier architecture defined and implemented using the present invention may specify which other types of software components 20 (i.e. which tiers) that a given tier 30 must be able to access. In an alternative embodiment, this is left up to the software component designer. Each tier 30 will tend to have a unique set of interfaces, depending on the nature of the types of software components 20 grouped under that tier 30. More common interfaces may include a specific, common first interface to allow a software component's 20 dependencies to be collected by that software component 20 and accessed by other components and a specific, common second interface to allow a software component 20 to be identified at run time by another component. In an embodiment, the N-tier architecture of the present invention may utilize an asynchronous architecture paradigm permitting software components 20 to engage in asynchronous communication via asynchronous messaging. In a currently preferred embodiment, software component 20 interfaces are implemented using Microsoft's COM specification. See, e.g., Essential COM by Don Box, published by Addison Wesley Longman, Inc, 1998 with an ISBN number of 0-201-63446-5. Only a software component's 20 external interfaces are seen by the outside world. Common interaction standards, such as ActiveX, may be used to facilitate communication between software components 20 and reduce the need for connective software between software components 20. Services provided by software components 20 may networked together to support one or more desired processes. These services can be reused and shared by other software components 20. However, it will be apparent to those of ordinary skill in the programming arts that software components 20 may be constructed using numerous other environmental paradigms, by way of example and not limitation including those required by LINUX, SUN (R) SOLARIS (R), Unix, or the like, or any combination thereof. As currently contemplated, some tiers 30 may exist that are not true tiers 30, i.e. they do not exist to provide additional behavior to software components 20. These tiers 30, such as a Wizard, Testing, or Template tier 30 shown in FIG. 1 generally as tier 600, may be present to provide additional functionality. By way of example and not limitation, a Wizard tier 30 may exist to provide a set of interactive help utilities that assists developers in quickly creating standard present invention components. A Testing tier 30 may be present to contain software components 20 that exercise software components 20 or packages 42 from functional tiers 30, record test results in a log, and notify developers of the test completion status. Software components 20 in a Template tier 30 may provide C++ implementation of persistence, collections, and iterators for standard present invention software components. Referring now to FIG. 2, a pictographic representation of a software factory, software components 20, whether purchased or created, may be placed into inventory 700 for future use using library or cataloging processes, all of which are familiar to those of ordinary skill in the software programming arts. Software component 20 interfaces are standardized, with software component 20 functionality limited to the characteristics and behavior unique to the software components 20 they represent. The paradigm for the present invention is a software application assembly line as if in a software application factory. As shown at 11, application requirements are first determined. The existing inventory 700 is then reviewed 12 for software components 20 that fit the new application requirements. System requirements that do not exist as stock software components 20 are created or purchased 13 and possibly added to inventory 700. A new application may then be created 14 from the preexisting stock software components 20 and/or the new software components 20. The application may be created by combining software components 20 at run-time to form new unique applications on-the-fly, making software reuse a practical reality. Referring now to FIG. 3, framework 40 is an architected context for software components 20 in a tier 30; that is, framework 40 specifies a basic design structure, including base software components 20, of a tier 30. In addition, framework 40 specifies a set of standard interfaces for any software component 20 categorized as belonging to that tier 30. Framework 40 functions as a template or design pattern for tier 30, ensuring that basic design for tier 30 is uniform across projects. In the present invention, frameworks 40 encompass major design decisions for their corresponding tiers 30, including what dependencies a framework 40 has to other frameworks 40, how properties and interfaces are grouped, what interfaces are used, and where software component 20 behavior belongs. For example, in a Visual tier 30 framework 40, a Model-View-Controller (MVC) may be used to specify the division of labor for visual software components 20. In the MVC, data are handled by the model, reaction to input is handled by the controller, and the view component handles drawing activities. By dividing the functionality up this way, different business models may use the same controller or many different views of the same business model. Referring now to FIG. 4, the present invention's methodology allows creation of rules that allow tiers 30 in a software application system to be extensible and subject to change as long as the system is in production. Therefore, the system is not restricted to a pre-determined number of tiers; rather tiers 30 may be added, modified, or removed as the architecture and its applications evolve. A system designer specifies 200 a set of software component rules 210, each software component rule 210 comprising a given programmatic interface, for at least one set of software components 20. It is anticipated that several sets of software components rules 210 may exist, but the currently preferred embodiment has a single set of software component rules 210. Software component rules 210 specified may further comprise rules on extending software components 20, such as addition, modification, and deletion rules. Specifying 200 software component rules 210 also comprises specifying rules on specifying behavior exhibited by each software component. These rules 210 for specifying software component 20 behavior further comprise rules on how each software component 20 encapsulates details of how functionality is implemented for that software component 20 and rules on creating a well-defined interface reusable at a binary level for each software component 20 whereby each software component 20 may be made available for use by any other software component 20 that can use the well-defined interface of the first software component 20. Software component rules 200 allow for use of off-the-shelf software components 20 by other software components 20. Specifying 200 software component rules also comprises specifying rules 210 on passing data to a software component, receiving data from a software component, manipulating software component 20 properties, and librarying or cataloging software components 20. Specifying 200 software component rules may also comprise specifying rules for designating software component function points, where these rules for designating software component function points allow implementing software component interfaces required by a particular tier 30 to which the software component 20 belongs. Specifying 200 software component rules comprises specifying rules for manipulating software component 20 properties such as rules for adding, changing, and removing properties from a software component. This may include specifying at least one modification software component rule 200 whereby a software component 20 created using the set of software component rules 200 can be modified individually, or an entire set of software component 20 rules can be manipulated, added, or deleted at one time. Other manipulating rules may be specified. By way of example and not limitation, it is often desirable to have a template iterator class to facilitate accessing associations. Such a template iterator class can be based at any software component's 20 associations and can be used to iterate through all software components 20 in the association or only through a specific software component type. Librarying software components rules 210 are also specified including rules for adding, changing, and removing software components 20 from a software component 20 inventory 700 as well as rules on searching for and selectively retrieving software components 20 from inventory 700. This may include specifying a set of library rules to allow grouping a set of software components 20 created using the software component rules 210 into an interrogatable inventory 700 of software components, thus allowing for selectively placing software components 20 into and retrieving software components 20 from inventory 700. Additionally, library rules allow for addition off-the-shelf software components 20 to inventory 700. Software components 20 may execute processes independently, reacting to received messages to start and continue their own processing and sending messages to other software components 20 to start and continue processing. Accordingly, the present invention incorporates software component rules 210 to allow asynchronous behavior in its basic architecture. Asynchronous behavior means that each software component 20 executes within its own thread and time frame, informing dependent software components 20 of its status or providing them with information when significant events occur. Because all present invention software components 20 operate independently, any software component 20 can be queried for its status. De-coupled software components 20 in the present invention system communicate through the present invention's messaging system, which is also an asynchronous process. Messages communicate events, information, and status between software components 20. Each software component 20 may thus be event-driven, reacting to messages and events that are generated by other software components 20 in the system. In turn, each software component 20 generates its own events and communicates them back to the other software components 20 in the system. The result of this architecture is that software components 20 operate independently, simplifying maintenance and increasing software component 20 usage. Tier rules 310 must also be specified 300, including rules 310 on how tiers 30 are associatable with a set of software components 20 created using the software component rules 210. Tier rules 310 comprise interface rules to allow tiers 30 to interface programmatically; software component manipulation rules to allow addition, modification, and removal of software components 20 from a tier, and rules for testing software components 20 to ensure that these software components 20 comply with tier rules 310. Additionally, tier rules 310 allow for extending tiers 30 such as by specifying rules on allowing modification of software component 20 attributes for software components 20 associated with tier 30. Tier rules 310 further comprise framework rules to specify how to allow the specification of dependencies a framework 40 has to other frameworks 40; how properties and interfaces are grouped; what interfaces are used; and where software component 20 behavior belongs within a tier 30. Framework rules may further comprise rules on specifying at least one package 42 for a framework 40 where the package 42 further comprises a set of interfaces to provide a specific behavior. Tier rules 310 are also specified for associating tiers 30 with software components 20, linking and setting processing sequencing, and processing states. Additionally, it is often desirable to redefine software components 20 within tiers 30 or add or delete entire tiers 30 from an application. Accordingly, association rules provide for software components 20 created using software component rules 210 to be associated or disassociated from tiers 30. Tier rules 300 may further include behavior rules, interface rules, and rules defining dependencies on other tiers 30. Assembly rules 410 are specified 400, comprising rules on methods of assembly of tiers 30 and software components 20 into final applications, by way of example and not limitation including specifying a basic design structure comprising base components for software components 20 in tiers 30 and specifying a set of standard interfaces for the software components 20 categorized as belonging to the tier 30. Additionally, assembly rules 410 may exist for defining component dependencies, including connection rules for applications. Assembly rules 410 may further comprise testing rules to ensure software components 20 adhere to requirements such as to tier interfaces, framework interfaces, and package interfaces. Further, one or more rules may exist to defining component dependencies, including connection rules, for on-the-fly applications as well as define how software components 20 advertise behavior capabilities present in that software component 20 including by way of example and not limitation communication interfaces. Referring now to FIG. 5, a life cycle flowchart, the present invention's methodology allows application development to drive changes to the present invention's architecture using a set of life cycle rules. By way of example and not limitation, rules that define a desired software architecture are either designed as described above or selected from a preexisting set of rules. Thus, a software architecture designed using the present invention's method generates software components 20, tiers 30, and applications by using software component rules 210, tier rules 310, and assembly rules 410 for an initial design 50. The initial design may have a predetermined number of initial tiers 30. The system implemented is put into production 52 and periodically reviewed for adjustments that may be necessary 54. If any tier 30 is determined to be in need of adjustment 56, it can be removed or otherwise modified 58. As additional requirements arise 60, new software components 20 are created or existing software components 20 modified 62, 64. Tiers 30 may be added, modified, or deleted 66 as application requirements dictate. Referring now to FIG. 6, once a list of required models and software components 20 is determined 70, software components 20 are logically grouped 72. A determination 74, 76 is then made to determine if any of the software components 20 already exist in inventory 700. Whenever possible, software components 20 are reused 78 from inventory 700. Software components 20 that do not fit the current architecture may be restructured to ensure conformance while retaining the original intent of the requirement. Additional software components 20 may be created 80 as needed after review of specifications and current inventory 700. After new or modified software components 20 successfully pass a testing and validation phase, new or modified software components 20 are assessed for suitability 82 to become part of inventory 700. Software components 20 that have potential for reuse are added 88 to inventory 700. These new or modified software components 20 may thus be integrated into a current architecture, expanding the current architecture, i.e., adding 86 one or more tiers 30 to accommodate them. By definition via the rigid implementation of standard interfaces, a software component 20 from one tier 30 can be used by any software component 20 from any other tier, making tier 30 relationships of little importance. However, in practice it is likely that certain software components 20 will primarily be used by certain other software components 20. In the operation of the preferred embodiment, referring back to FIG. 4, a system designer using the present invention method to create a software architecture specifies 50 a set of software component rules 210 for creating software components 20. The system designer also specifies 300 a set of tier rules 310 for creating tiers 30. The system designer also specifies 400 a set of assembly rules 410. Linkage rules within assembly rules 410 allow for selected tiers 30 to be standalone, such as Testing or Wizard tiers 30. The system designer also specifies a set of interfaces for each tier 30, the interfaces defining a set of functionality capable within the tier 30. In some cases, a set of tiers 30 will be specified, each tier 30 within a set having the same defined set of functionality capability. Once a software architecture is architected, a user of that software architecture uses the architecture and rules to specify an extensible N-tier architecture comprising a plurality of tiers 30, wherein each tier 30 is associatable with at least one software component 20. Software components 20, in turn, are specified according software component rules 200 that comprise rules on properties and interfaces for software components 20. Referring now to FIG. 4 through FIG. 6, the method of present invention for system design for an N-tier architecture generally envisions implementing a set of principles, rules, and methods to effect a life cycle approach to creation of software-based applications using an architecture created using the present invention's rules and methods as discussed herein above. A set of rules are designed an implemented, by way of example and not limitation comprising rules 210 on creation and characteristics of software components 20; rules 310 on tiers 30 and maintenance of software components 20 within an inventory 700, including addition, modification, location, extraction, and deletion of software components within inventory 700; and rules 410 on building tiers 30 and applications. In some implementations, it may be desirable to have a base set of software components 20 which can be used, either as templates or as actual software components 20. Accordingly, in these instances, a software designer would specify and create a base set of architected frameworks 40. The present invention can be embodied in the form of computer-implemented processes and apparatuses for practicing those processes. Various aspects of the present invention can also be embodied in the form of computer program code embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other computer-readable storage medium, wherein, when the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the invention. The present invention can also be embodied in the form of computer program code, for example, whether stored in a storage medium, loaded into and/or executed by a computer, or transmitted as a propagated computer data or other signal over some transmission or propagation medium, such as over electrical wiring or cabling, through fiber optics, or via electromagnetic radiation, or otherwise embodied in a carrier wave, wherein, when the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the invention. When implemented on a general-purpose microprocessor, the computer program code segments configure the microprocessor to create specific logic circuits to carry out the desired process. Therefore, a system for designing a software architecture for use in generating software components for building software applications can comprise numerous means for specifying a set of software component rules for creating software components, tiers, and assembly rules, all of which will be familiar to those of ordinary skill in the computer arts, including, by way of example and not limitation, keyboards, mice, drag-and-drop interfaces, text editors, graphical editors, OLE interfaces, and the like or any combination thereof. These means may further comprise manual processes, heuristic processes, automated processes, and the like, or any combination thereof, such as expert system driven or implemented designs, neural networks, and the like. It will be understood that various changes in the details, materials, and arrangements of the parts which have been described and illustrated above in order to explain the nature of this invention may be made by those skilled in the art without departing from the principle and scope of the invention as recited in the following claims.
|
Same subclass Same class Consider this |
||||||||||
