Indicating hierarchy diversion in a class diagram
AssigneeInternational Business Machines Corporation
InventorsSandeep Kohli, Sarika Sinha
Life of this patent
Estimating the term…
Abstract
Indicating hierarchy diversion in a class diagram. A class inheritance structure for at least one parent class contained in computer program code can be identified to determine a class hierarchy corresponding to the parent class. For at least one child class in the class hierarchy that is a child of the parent class, a parent-child similarity value corresponding to a parent-child diversion of the child class from the parent class can be calculated via a processor. The class diagram can be generated. The class diagram can indicate at least the parent class, the child class and the parent-child similarity value. The class diagram can be presented.
Claims25
A system comprising:
- a processor configured to initiate executable operations comprising:
- identifying a class inheritance structure for at least one parent class contained in computer program code to determine a class hierarchy corresponding to the parent class;
- for at least one child class in the class hierarchy that is a child of the parent class, calculating a parent-child similarity value corresponding to a parent-child diversion of the child class from the parent class, the parent-child similarity value comprising at least one numeral;
- based on the parent-child similarity value corresponding to the parent-child diversion of the child class from the parent class and parent-child similarity values of other children of the parent class, determining standard deviation for the parent-child similarity value corresponding to the parent-child diversion of the child class from the parent class;
- generating, by the processor, the class diagram, the class diagram indicating at least the parent class, the child class, the parent-child similarity value, and the standard deviation;
- and
- presenting the class diagram.
A computer program product for indicating hierarchy diversion in a class diagram, the computer program product comprising a computer readable storage device having program code embodied therewith, wherein the computer readable storage device is not a transitory, propagating signal per se, the program code executable by a processor to perform a method comprising:
- identifying, by the processor, a class inheritance structure for at least one parent class contained in computer program code to determine a class hierarchy corresponding to the parent class;
- for at least one child class in the class hierarchy that is a child of the parent class, calculating, by the processor, a parent-child similarity value corresponding to a parent-child diversion of the child class from the parent class, the parent-child similarity value comprising at least one numeral;
- based on the parent-child similarity value corresponding to the parent-child diversion of the child class from the parent class and parent-child similarity values of other children of the parent class, determining standard deviation for the parent-child similarity value corresponding to the parent-child diversion of the child class from the parent class;
- generating, by the processor, the class diagram, the class diagram indicating at least the parent class, the child class, the parent-child similarity value, and the standard deviation;
- and
- presenting, by the processor, the class diagram.
A computer program product for indicating hierarchy diversion in a class diagram, the computer program product comprising a computer readable storage device having program code embodied therewith, wherein the computer readable storage device is not a transitory, propagating signal per se, the program code executable by a processor to perform a method comprising:
- identifying a class inheritance structure for at least one parent class contained in computer program code to determine a class hierarchy corresponding to the parent class;
- for at least one pair of sibling child classes in the class hierarchy calculating a sibling similarity value corresponding to a similarity of the sibling child classes, the sibling similarity value comprising at least one numeral;
- based on the sibling similarity value, determining standard deviation for the sibling similarity value corresponding to a diversion of the child classes;
- generating the class diagram, the class diagram indicating the parent class, the sibling child classes and the sibling similarity value;
- and
- presenting the class diagram.
Dependencies are inferred from the claim text.