发明名称 |
Generating constraints in a class model |
摘要 |
A method of generating code from a class model for a modeled system. The class model specifies a plurality of elements of a modeling language and dependencies between elements of a plurality of elements. In operations the method analyzes the class model to identify a first possible source of under-specification with respect to the modeled system in the class model by using pattern recognition to find an occurrence of a first problem pattern of a plurality of problem patterns in the class model, the plurality of problem patterns are then stored in a repository. The method also includes identifying a set of constraint patterns where the at least first constraint pattern is linked in the repository to the first problem pattern. A user may then select a constraint pattern which is utilized in instantiating constraints and generating code based on the class model and the instantiated constraints. |
申请公布号 |
US8918756(B2) |
申请公布日期 |
2014.12.23 |
申请号 |
US201213456745 |
申请日期 |
2012.04.26 |
申请人 |
International Business Machines Corporation |
发明人 |
Wahler Michael S.;Koehler Jana |
分类号 |
G06F9/44 |
主分类号 |
G06F9/44 |
代理机构 |
Suiter Swantz pc llo |
代理人 |
Suiter Swantz pc llo |
主权项 |
1. A method for generating code from a class model for a modeled system, said class model specifying a plurality of elements of a modeling language, dependencies between and constraints on elements of said plurality of elements, the method comprising:
an analysis step for analyzing said class model to identify a first possible source of under-specification with respect to the modeled system in said class model by using pattern recognition to find an occurrence of a first problem pattern of a plurality of problem patterns in said class model, said plurality of problem patterns being stored in a repository; a selection step for selecting a set of constraint patterns comprising at least a first constraint pattern, said at least first constraint pattern being linked in said repository to said first problem pattern, said at least first constraint pattern being a resolution to said first possible source of under-specification in the class model; a presentation step for presenting said set of constraint patterns to a user; a reception step for receiving a user selection from said user, said user selection comprising a selected constraint pattern from said set of constraint patterns; an instantiation step for instantiating constraints from said selected constraint pattern; and a code generation step for generating code based on said class model and the instantiated constraints. |
地址 |
Armonk NY US |