Method and system for generating, applying, and defining a pattern
First Claim
1. A method in a data processing system having a plurality of patterns, wherein each of the plurality of patterns has an associated element type, the method comprising the steps of:
- receiving an indication of an element type, wherein the element type is a class, link, or any known object-oriented component of a software program;
displaying a matching one of the plurality of patterns, the matching pattern having an associated element type that matches the received element type;
receiving from a user an indication of a selection of the matching pattern;
receiving an indication of a variation;
modifying the matching pattern based on the variation;
receiving an identification of a language; and
generating software code reflecting the modified matching pattern, wherein the software code is generated in the language.
8 Assignments
0 Petitions
Accused Products
Abstract
The present invention relates a method and systems for generating, applying and defining patterns for software development. The software development tool receives an indication of a pattern, generates software code reflecting the pattern, and stores identification information for the pattern in a comment associated with the generated software code. The software development tool receives an indication of the software element, determines whether the software element is capable of playing the role, and when it is determined that the software element is capable of playing the role, designates that the software element plays the role in the pattern. The software development tool displays a plurality of software elements to a user, receives an indication of a selected one of the plurality of software elements, receives an indication of a user-defined pattern role that the selected software element plays in a pattern, and stores the plurality of software elements as the pattern.
146 Citations
22 Claims
-
1. A method in a data processing system having a plurality of patterns, wherein each of the plurality of patterns has an associated element type, the method comprising the steps of:
-
receiving an indication of an element type, wherein the element type is a class, link, or any known object-oriented component of a software program;
displaying a matching one of the plurality of patterns, the matching pattern having an associated element type that matches the received element type;
receiving from a user an indication of a selection of the matching pattern;
receiving an indication of a variation;
modifying the matching pattern based on the variation;
receiving an identification of a language; and
generating software code reflecting the modified matching pattern, wherein the software code is generated in the language. - View Dependent Claims (2, 3, 4)
-
-
5. A method in a data processing system having a pattern, wherein the pattern has a first participant playing a first role in the pattern and a second participant playing a second role in the pattern, the method comprising the steps of:
-
receiving an indication of a first of a plurality of software elements, wherein the first of the plurality of software elements is a substantiation of an element type;
wherein the element type is a class, link, or any known object-oriented component of a software program;
determining whether the first software element is capable of playing the first role;
when it is determined that the first software element is capable of playing the first role;
determining whether a second of the plurality of software elements is capable of playing the second role, wherein the second of the plurality of software elements is a substantiation of an element type;
when it is determined that the second software element is capable of playing the second role;
designating that the first software element plays the first role in the pattern; and
designating that the second software element plays the second role in the pattern. - View Dependent Claims (6, 7, 8, 9, 10)
-
-
11. A method in a data processing system for creating a pattern having a first particular with a first role name, and a second particular with a second role name, wherein the pattern is based on code having a first software element with a first coded name and a second software element with a second coded name, the method comprising the steps of:
-
receiving an indication of the first software element, wherein the first software element is a substantiation of an element type;
wherein the element type is a class, link, or any known object-oriented component of a software program;
receiving an indication that the first software element corresponds to the first participant;
replacing the first coded name of the first software element with the first role name of the first participant;
receiving an indication of the second software element, wherein the second software element is a substantiation of an element type;
receiving an indication that the second software element corresponds to the second participant;
replacing the second coded name of the second software element with the second role name of the second participant; and
storing the code with the first coded name and the second coded name as the pattern.
-
-
12. A computer-readable medium containing instructions for controlling a data processing system to perform a method, the data processing system having a plurality of patterns, wherein each of the plurality of patterns has an associated element type, the method comprising the steps of:
-
receiving an indication of an element type, wherein the element type is a class, link, or any known object oriented component of a software program;
displaying a matching one of the plurality of patterns, the matching pattern having an associated element type that matches the received element type;
receiving from a user an indication of a selection of the matching pattern;
receiving an indication of a variation;
modifying the matching pattern based on the variation;
receiving an identification of a language; and
generating software code reflecting the modified matching pattern, wherein the software code is generated in the language. - View Dependent Claims (13, 14, 15)
-
-
16. A computer-readable medium containing instructions for controlling a data processing system to perform a method, the data processing system having a pattern, wherein the pattern has a first participant playing a first role in the pattern and a second participant playing a second role in the pattern, the method comprising the steps of:
-
receiving an indication of a first of a plurality of software elements, wherein the first of the plurality of software elements is a substantiation of an element type;
wherein the element type is a class, link, or any known object-oriented component of a software program;
determining whether the first software element is capable of playing the first role;
when it is determined that the first software element is capable of playing the first role;
determining whether a second of the plurality of software elements is capable of playing the second role, wherein the second of the plurality of software elements is a substantiation of an element type;
when it is determined that the second software element is capable of playing the second role;
designating that the first software element plays the first role in the pattern; and
designating that the second software element plays the second role in the pattern. - View Dependent Claims (17, 18, 19, 20, 21)
-
-
22. A computer-readable medium containing instructions for controlling a data processing system to perform a method, the data processing system having a pattern having a first participant with a first role name, and a second participant with a second role name, wherein the pattern is based on code having a first software element with a first coded name and a second software element with a second coded name, the method comprising the steps of:
-
receiving an indication of the first software element, wherein the first software element is a substantiation of an element type;
wherein the element type is a class, link, or any known object-oriented component of a software program;
receiving an indication that the first software element corresponds to the first participant;
replacing the first coded name of the first software element with the first role name of the first participant;
receiving an indication of the second software element, wherein the second software element is a substantiation of an element type;
receiving an indication that the second software element corresponds to the second participant;
replacing the second coded name of the second software element with the second role name of the second participant; and
storing the code with the first coded name and the second coded name as the pattern.
-
Specification