摘要:
A computer-implemented method for streaming object models with a plurality of versioned states. The method comprises the steps of streaming out each versioned state for each nonderived classifier-level feature; streaming out each versioned state of each unowned object within the model; streaming out versioned state of each owned object not yet streamed out; streaming out the versioned state of each link not represented by a reference; and streaming out a version graph using normal XMI.
摘要:
A method is provided by a computer system processing XMI-based XML documents. The method compares two such XMI-based XML documents for identical content. The method begins with the step of parsing each of the documents to create for each a semantic graph of the document's objects. Next, a list of names of properties for each of the objects having significant order is read. For each of the objects, and then for each object's property not listed as having significant order, values of said properties are sorted. Finally, the objects of the semantic graphs are compared.
摘要:
A computer-implemented method is provided for merging a source version into a target version of a model in an object oriented repository. The method comprises the steps of building a first list as a collection of versions that occur only in a history of the source version; and, building a second list as a collection of versions that occur only in a history of the target version. Next, a dual history is created as a union of the first and second lists. After this, either the first or the second list is identified as the non-preferred history wherein either the source or the target version is preferred. The first list is then added to the history of the target version. Any conflicts occurring in the dual history are next reported; and, such conflicts are resolved by adding the target version to a list of end versions on each conflicting attribute value and link occurring in the non-preferred history.
摘要:
In a computing system executing a repository program, a computer-implemented method is disclosed for merging updates to models stored in the repository with a user's incomplete work-in-progress currently being executed by the computer system. Once a repository transaction is begun, for each package within a model that is checked out by the user, a check-in operation is performed. The model is extracted for use by a modeling tool and the repository transaction is aborted, thereby undoing the check-in but leaving the extracted model intact for use by the modeling tool. A report may be generated of any inconsistencies between the model and modeling rules imposed by the check-in operation of the repository.
摘要:
A computer-implemented object-oriented method for controlling access to a multiplicity of objects is disclosed. The method includes creating specific access control object types, each including a pre-check method for implementing a pre-defined access control policy. Each one of the multiplicity of objects to be controlled is then associated with one of the access control objects. Next, upon an attempt to invoke a feature of any one of the multiplicity of objects, a determination is made if one of the multiplicity of objects is linked to an access control object, and if yes; the pre-check method for the access control object associated with the one of the multiplicity of objects is performed to determine whether to grant access.
摘要:
A computer-implemented method for converting a UML rendering of an RSM-based metamodel to a UML rendering of a MOF-based metamodel. The method includes the steps of removing inheritance from classes defined within a Repository Services Model (“RSM”) and removing each explicit “construct” operation from each class in the RSM-based metamodel Next, each use in the RSM-based metamodel of an RSM type is changed to use a non-RSM type. After this, each element of the RSM-based metamodel is converted to a corresponding MOF-based element and a determination is made as to whether or not the RSM naming service is used in the RSM-based metamodel, and if so “name” attributes are added that would have been inherited from the RSM classes. A > stereotype is added to the UML rendering of the MOF-based metamodel; and the MOF properties are set on the UML rendering.
摘要:
In a computer system executing a repository program and having a memory, a method is disclosed for versioning a UML model in the repository in accordance with an updated XML representation of the UML model. The method includes the steps of identifying differences between UML objects in the UML model and XML objects in the XML file. Where there is a difference between one of the UML objects and one of the XML objects, it is reserved as a ghost object. The ghost object is updated to match each corresponding one of the XML objects. Objects whose target references have been changed are reserved and updated. Finally, the UML objects are updated in the repository that refer to ghost objects updated in the preceding step. The method includes making changes to the ghost object Attributes, References and owned elements to match Attributes, References and owned elements, respectively, found in the XML object.
摘要:
The invention disclosed is an object-oriented apparatus and method in a computer system for a programming language compiler to select optimal pointer kinds for code generation. The invention offers important advantages over current compiler practice. In Particular, the invention provides improved performance for compiled programs through generation of more optimal selection of pointer kinds and variable allocations. Also, the invention provides a general framework for optimizing pointer usage, as opposed to leaving such optimization to special cases.
摘要:
The disclosed method creates a source object for each source language element parsed by the compiler and associates each such created source object with objects created from source language elements to produce source-mapped objects. Next, the source-mapped objects are transformed into corresponding machine-instruction objects and a binary file of the machine-instruction objects is created by: i) adjusting a source data object to a source object associated with a machine instruction object, thereby identifying a lowest level of inlining where the call history of the source object differs from the call history of the previous source object to which the source data object was adjusted; ii) if the source data object identifies no differences from the previous source object, then continuing at step i) for the next machine instruction; and, iii) for each level of the call history beginning with the level returned in the preceding step and continuing through the last level, putting information obtained from the source data object in a source table stored in the binary file.
摘要:
An embodiment of the present invention is a technique for processing an authorization rule. An object type is created for a return type of an operation in the rule authorizing a request for information. A current container is established. A propositional expression in the rule is processed to record the object type as a resulting context from the propositional expression in the current container.