System for configuration programming6925632Abstract In a development platform, a classifier for a given application defines a data model of an application model as a pattern (an object model) from a finite number of patterns (object models) that represent the possible permutations of data models. In addition, the development platform has a finite number of service objects that perform various functions/services on the object model from which the application model adopts one or more service objects. The object models and the service objects are generic to the development platform and usually a set of finite number of object models and a set of finite number of service objects can interface the application model with the various third party resources and tools. Claims 1. A method for creating application software comprising the steps of: Description BACKGROUND OF THE INVENTION
The data model describes data structures representing the application data based upon basic data patterns. The service objects, which are software components, provide the functional or business processes of the application. These software components are linked into a flow to invoke services and/or to operate on the data and interface with resources. The manner in which the software components are linked is the flow logic of the application model. Results of the functional or business processes performed on the data model can be presented in a form compatible to a physical device (such as a computer monitor or a printer) or in a form compatible to an application software in memory. The components and operation of an application program according to the present invention can be better understood in relation to the process for creating the application program. In a development platform of the present invention, a classifier defines a data model as a specific set of object models corresponding to application data based upon a finite number of basic data patterns. The object models define all application data within the limitations of the basic data patterns. Furthermore, the object models can be defined recursively to create complex data structures using the basic data patterns. In addition, the development platform has a set of selectable service objects that perform various functions/services on object models. At run time, the service objects recognize the basic data patterns within an object model and selectively operate in accordance with the defined the basic data patterns. Since the operation of the service objects is independent of the application data, changes in application data does not require changes to the service objects. The service objects usually represent functions/services that provide for the interfacing with the various third party resources and tools. The bridge between the development platform and the Application Programming Interfaces (APIs) of the third party resources and tools can be performed by storing and implementing service objects that are compatible with the third party APIs and are also compatible with the defined object model of the data model. FIG. 2 illustrates a development platform 200 according to an embodiment of the present invention. The development platform 200 can be used to create application software in accordance with an embodiment of the present invention. As shown in FIG. 2, the development platform 200 has two principal components, an object development module 210 and an object application programs interface (API) module 220. The development platform 200 may be implemented as software/firmware embedded in a processor executable medium such as Read Only Memory (ROM), Random Access Memory (RAM), Flash memory, magnetic and optical disk and disk drives and the like. The development platform 200 may also be implemented in hardware such as application specific integrated circuit (ASIC) and the like. The processor executable medium also includes carrier signals containing processor executable instructions therein. The object development module 210 translates the data of an application model 110 in a manner that is generic to the development platform 200. In particular, the data model of the application model is defined as a set of object models based upon basic data patterns. The classification method will be described with reference to FIG. 3. This allows various functions of the object API module 220 to be applied to the object models based on the basic patterns. With reference to FIG. 3 in conjunction with FIG. 2, the object development module 210 creates a data dictionary 230 which defines the object models. FIG. 3 illustrates a process for creation of the data dictionary 230. The process includes a classifier 232, a data dictionary database 234 and a data dictionary manager 236. The data dictionary 230 is developed to represent the data for specified application data. Turning to the classifier 232, generally a data model 310 can be defined from a potentially infinite number of possible data formats. However, in accordance with the invention, these possible data formats can be classified as object models 330. The object models are based upon a finite number of basic data patterns recognized in the development platform 200. The classifier 232 performs this task by classifying a data model 310 into a set of object models 330 having the following basic data patterns: primitive; class; and object array. A primitive represents a basic element. It can be data such as Boolean, Short, Integer, Long, Float, Double, Date, Time, Date & Time, Currency, Business Calendar, Alphanumeric Characters, Big Integer and so forth. A class represents structured data. It is composed of multiple attributes, each of which is also one of the basic data patterns. An object array is an array with a set of objects, all having the same basic data pattern, as its child elements. It should be noted that a characteristic of the class and object array types is their recursive nature. An attribute of a class or element of an object array can be another class or object array. This recursiveness of certain object types provide for creation of a complex data model from a finite set of basic data patterns. Using the classification method described above, a finite number of possible data patterns used to define a data model 310 that can have a potentially infinite number of possible variations. Thus, only a finite number of data patterns in the object models 330 need to be interpreted. The classifier 232 can operate in various ways. It can be a program which receives information regarding the data model 310 corresponding to the application model 110 and automatically map the data model 310 to an appropriate set of object models 330. Alternatively, a programmer could simply use a text editor program to enter information defining the object models 330 in a format recognized by the system. Preferably, the development platform 200 includes an interactive program to aid a user in creating appropriate object models 330 for a data model 310. Once properly classified, the object models 330 are stored in the data dictionary database 234. Again, the data dictionary database may take many forms. An example of the data dictionary database 234 with definitions for different object models 330 is provided in the appendix hereto. The object models 330 in the data dictionary database 234 must be uniquely identified so that they can be properly accessed. The unique identification can be done with a unique name or a unique identification number (ID) in the data dictionary database 234. With the object models 330 stored in the data dictionary database 234, the object API module 220 can now be utilized to select and organize the various functions to be performed on the data of the object models 330. FIG. 4 illustrates service objects within the object API module 220. The service objects comprise device manager sub-modules 4101-410N that are functional/business blocks to perform a function or a process on data of the object models 330. Generally, the service objects of the object API module 220 are a collection of device managers 4101-410N that have adopted many system functions and third party APIs to build a layer of service objects 4201-420M that performs functions/services on the object models 330. Specifically, a finite number of services is identified for each resource or tool (e.g., graphic user interface (GUI), database, transport, transaction and etc.) and a service object 4201-420M is created for each service that a device manager 4101-410N is to provide. Each service object 4201-420M is designed to perform a particular service one of the object models 330. One feature of the service object 4201-420M is that it performs a function/service on one or more object models 330 based on the pattern information of the object models 330 from the data dictionary database 234. During operation, prior to the performance of a service object, the object API module 220 calls the data dictionary manager 236, which manages all the object models 330 that are stored in the data dictionary database 234. The object API module 220 accesses the object models 330 in the data dictionary database 234 which are relevant to the operation of the service object to determine the data patterns of those object model 330. Once the determination is made, the object API module 220 passes the data patterns to the pertinent service object that is to perform the functional/service process. Because there are only a finite number of data patterns with which an object model 330 can be represented, a service object 4201-420M having a finite set of functions/services can be designed to address each possible data pattern of the object models 330. Therefore, once the data pattern of an object model 330 has been identified, a dispatching takes place within the service object 4201-420M to perform an appropriate function/service process for the data pattern of a particular object model 330. Since object models 330 can be defined recursively, the appropriate function/service process could also be recursive. It should be noted that because the object model 330 is processed based on the identified pattern, a change in the object model 330 will be recognized by the object API module 220 at runtime when it interrogates the data dictionary database 234 via the data dictionary manager 236 and this information is passed to the service object 4201-420M prior to the service object's 4201-420M performance. The service object 4201-420M being informed of the changed pattern processes the object model 330 in accordance with the changed pattern. This feature is advantageous in that it allows the data model 310 (and thus, the separate object models 330) to be dynamically altered, which will be detected and the object models 330 are processed accordingly. Specifically, the service object 4201-420M performing processes on an object model 330 will recognize the current data patterns and dynamically alter its process to adapt to the modified object model 330. The features described above allows for the runtime reconfiguration of the data model 310 of the application model 110, which is advantageous over a previously known method that requires the program codes to be reprogrammed, linked, compiled and debugged whenever the data model 310 is modified. Another aspect of the invention is the event driven approach between the application model 110 and the service objects 4201-420M, or program flow. Specifically, the data model 310 (in object model 330 form) and associated service objects 4201-420M are configured based on flow to link services, where various utility functions (business functions) that are performed on the object model 330 are event driven by data change and/or event and not code driven as in previously known programming approaches. According to one aspect of the invention, the object models 330 and service objects 4201-420M are linked such that one or more data changes in an object model 330 causes specified service objects 4201-420M to be notified of the data changes. With reference to FIG. 5, the object model 530 may include a data change registry 532 that provides for any service object (such as service object A) to register for notification on various data changes. When a data change occurs at the object model 530, the registered service object (service object A) is notified and the service object determines if the data change is a change that requires processing. If the service object so determines then the service object performs a process based on the data change. According to the aspect of the invention, the object model notifies the relevant service objects of the data change but does not actively cause the service objects to perform a process due to the data change. Instead, the service object makes that determination upon receiving notification. Additionally, a process performed by the service object may also cause a data change that affects other service objects (such as service object B). In this instance, the service object may be configured to trigger a notification to other service objects upon execution or completion. Continuing with FIG. 5, a flow process of an event driven approach is illustrated in accordance with the invention. At stage 1, a data change has occurred in the object model 530. The object model 530 accesses the data change registry 532 to determine which service objects should be notified of the data change (the service objects have previously registered for notification of the various data changes). Once the determination is made, the object model 530 notifies the pertinent service objects of the data change. At stage 2, service object A receives notification that a data change has occurred. The service object A determines whether the data change requires performance of a process and if so, service object A performs the process. At stage 3, the service object A outputs the result of the process which may have caused further data change in the object model and may affect other service objects. In one embodiment, the object model A reviews its data change registry to determine if the data change requires notification to other service objects. In this instance, the service object A determines that service object B requires notification and notifies service object B of the data change. At stage 4, the service object B receives a notification from service object A and determines whether the data change is of the type that requires processing. If so, the function B block performs the required process and outputs the result of the process. This flow process may be repeated for other service objects until the flow process triggered by the data change has been satisfied. Turning back to FIG. 2, the object API Module 220 interface bridges with the specific APIs of the resources and tools of the third party. In accordance with one embodiment, the classification method (e.g., primitive, class, object array) that sets the finite set of object models of data models is iterated against the third party APIs to determine which object models are recognized by the third party APIs. For instance, the classification method is iterated against a transport tool JMS, wherein a list of object models that are recognized by the JMS is compiled and device drivers based on the object models are built and stored within the object API module. Thus, when an object model of a data model is to be interfaced with JMS, the object API module determines which device driver can be used to allow the object model to be interfaced. Alternatively, the object models that allow for the interface with JMS, for example, may be stored in the object API module and when an object model of a data model is to be interfaced with JMS, the classifier begins an iteration process on the object model that transforms the object model pattern into one recognized by the JMS. The transformed model is then interfaced with JMS. According to one aspect of the invention, for each service object, a fixed pattern of input and output parameters can be defined so that all the service objects have uniform APIs, thereby significantly simplifying the programming logic. According to various aspects of the invention, a programming tool may take a data model of the application model and perform an iterative process using classification of primitive, class and object array to define a pattern that describes the data model, which is stored in the data dictionary as an object model. A complete change in the data model may require the re-use of the programming tool to define an object model; however certain alterations and modifications may be performed by a data dictionary Editor that implements the changes during the runtime. Because there are finite services available in the object API module, the service objects may be displayed in templates of a GUI that are dragged and dropped into programs during creation of the application module. In one embodiment, the language that is used to construct an application model may be Extensible Markup Language (XML) but other languages may be used to construct the application model. The present invention is not limited to a development platform which operates as described above. Rather, any development process can be used within the meaning of the present invention which creates a set of object models for representing data and a set of service objects for performing functions with respect to the object models. Embodiments of the invention provides various benefits such as reduced programming time, reduced programming code size and programming may be performed by less specialized programmers. Having thus far described at least one illustrative embodiment of the invention, various alterations, modifications and improvements will readily occur to those skilled in the art. Such alterations, modifications and improvements are intended to be within the scope and spirit of the invention. Accordingly, the foregoing description is by way of example only and is not intended as limiting. Accordingly, the invention is defined by the following claims and equivalents thereof.
|
Same subclass Same class Consider this |
||||||||||
