IP Library Granted Patent US 7,861,218
Granted Patent B2
US 7,861,218 · App. 10/975,780 · Granted Dec 28, 2010

Computer method and system for enforcing derived union constraints

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,861,218
App. No.
10/975,780
Granted
Dec 28, 2010
Kind
B2
Abstract

A computer method and system preserves derived union constraints and enforces the same in generated target code. The method includes (a) providing a model element having one or more derived union properties, (b) tracking derived union constraints from the derived union properties of the model element, and (c) interpreting the tracked derived union constraints and generating therefrom an implemenation that enforces the derived union constraint. Tracking may be by annotating the model element accordingly.

Claims (27)

1. In a programming model using a modeling language, a Computer method for enforcing derived union constraints comprising:

given the modeling language is of the Unified Modeling Language (UML) type, using the modeling language, defining metaclasses and having model elements as instances of metaclasses, model elements including properties having respective values, and UML-derived-union-constraints being distinct from stereotypes and being constraints on model elements defined by a superset of values of a respective property;

providing a model element having one or more derived union properties, each derived union property having a superset of values denoted by the property;

tracking UML-derived-union-constraints from the one or more derived union properties of the model element, including keeping track of derived union items of the model element;

interpreting the tracked UML-derived-union-constraints and generating therefrom an Application Program Interface code implementation that enforces the UML-derived-union-constraint, including generating code implementing overriding operations on classes that contain subsetting properties for the one or more derived union properties of the model element, wherein the tracking provides to the interpreting indications of which properties the operations represent a superset; and

outputting the generated Application Program Interface code to a user.

2. A method as claimed in claim 1 wherein the step of interpreting and generating employs EMF (Eclipse Modeling Framework).

3. A method as claimed in claim 1 wherein the step of generating generates target programming language code that enforces the UML-derived-union-constraints.

4. A method as claimed in claim 1 wherein the step of tracking includes recording derived union constraint information as an annotation to the model element.

5. A method as claimed in claim 1 wherein the step of tracking includes accounting for nested UML-derived-union-constraints.

6. A computer program product implementing modeling of derived union constraints, the computer program product comprising:

a computer readable physical storage medium having computer readable code embodied therewith and controlling a processor to implement modeling of Unified Modeling Language (UML) derived union constraints, by carrying out the steps of:

providing a model element having one or more derived union properties;

tracking UML-derived-union-constraints from the one or more derived union properties of the model element, including keeping track of derived union items of the model element; and

interpreting the tracked UML-derived-union-constraints and generating therefrom a code implementation that enforces the UML-derived-union-constraints, including generating code implementing overriding operations on classes that contain subletting properties for the one or more derived union properties of the model element, wherein the tracking provides to the interpreting indications of which properties the operations represent a surperset.

7. A computer program product as claimed in claim 6 wherein the step of interpreting and generating employs EMF (Eclipse Modeling Framework).

8. A computer program product as claimed in claim 7 wherein the step of generating generates JAVA code that enforces the UML-derived-union-constraints.

9. A computer program product as claimed in claim 7 wherein the step of tracking includes recording derived union constraint information as an annotation to the model element.

10. A computer program product as claimed in claim 7 wherein the step of tracking includes accounting for nested UML-derived-union-constraints.

11. A computer readable storage medium comprising computer readable code controlling a processor in a manner implementing_derived union constraints in a target code, by carrying out the steps of:

providing a model element having one or more derived union properties;

recording UML-derived-union-constraints from the one or more derived union properties, including keeping track of derived union items of the model element;

and

interpreting the recorded UML-derived-union-constraints and generating target code therefrom that implements the derived union constraint, including generating code implementing overriding operations on classes that contain subsetting properties for the one or more derived union properties of the model element, wherein the tracking provides to the interpreting indications of which properties the operations represent a surperset.

12. A computer readable storage medium as claimed in claim 11 wherein the step of interpreting and generating employs EMF (Eclipse Modeling Framework).

13. A computer readable storage medium as claimed in claim 11 wherein the target code is JAVA.

14. A computer readable storage medium as claimed in claim 11 wherein the step of recording includes recording derived union constraint information as an annotation to the model element.

Assignments (4)
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE PATENT NUMBERS 10342096;10671117; 10716375; 10716376;10795407;10795408; AND 10827591 PREVIOUSLY RECORDED AT REEL: 58314 FRAME: 657. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Recorded Feb 29, 2024
From: RAKUTEN, INC.
To: RAKUTEN GROUP, INC.
Reel/Frame 068066/0103 →
CHANGE OF NAME Recorded Dec 6, 2021
From: RAKUTEN, INC.
To: RAKUTEN GROUP, INC.
Reel/Frame 058314/0657 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 17, 2015
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: RAKUTEN, INC.
Reel/Frame 035176/0368 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 28, 2004
From: HUSSEY, KENNETH EARLE
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 015946/0955 →