Sei sulla pagina 1di 14

Metrici Software si Ingineria Calitatii

Student: Bogheanu Dragos-Stefan


Master: Inginerie Software
Profesor: Eugen Ganea

2. Documentul de proiectare
Pentru generarea diagrama de clase sa folosit programul Visual Paradigm,
program care oferea cateva plusuri in proiectarea diagramelor de clase ,ce premite
exportarea digramei ca imagine cat si posibilitatea de a exportul in fisierele de tip
XMI

Diagrama de clase in Visual Paradigm pentru pachetul Entities:

Diagrama de clase in Visual Paradigm pentru pachetul GFX:

Diagrama de clase in Visual Paradigm pentru pachetul Level:

Diagrama de clase in Visual Paradigm pentru pachetul Net:

Diagrama de clase in Visual Paradigm:

Diagrama de secvente pentru metoda Run():

Diagrama de secvente pentru metoda Init():

Diagrama de secvente pentru metoda Render():

5. SDMetrics
Utilizarea programului SDMetrics - instrument de msurare a calitii de proiectare OO
n UML ,analizeaz structura de modelelor UML. Datele de intrare sunt formate dintr-un fisier
XMI care contine atat use case-urile cat si diagrama de clase.
SDMetrics se utilizeaza pentru estimarea calitatii activitatii de proiectare software,
utilizand metrici orientate pe obiecte.

METRICS:
NumAttr - The number of attributes in the class
NumOps- The number of operations in a class
NumPubOps - The number of public operations in a class.
Setters - The number of operations with a name starting with 'set'.
Getters - The number of operations with a name starting with 'get', 'is', or 'has'.
Nesting - The nesting level of the class
IFImpl -The number of interfaces the class implements
NOC -The number of children of the class (UML Generalization).
NumDesc -The number of descendents of the class (UML Generalization).

NumAnc -The number of ancestors of the class.


DIT -The depth of the class in the inheritance hierarchy.
CLD -Class to leaf depth. The longest path from the class to a leaf node in the inheritance
hierarchy below the class.
OpsInh -The number of inherited operations
AttrInh -The number of inherited attributes.
Dep_Out -The number of elements on which this class depends.
Dep_In -The number of elements that depend on this class.
NumAssEl_ssc -The number of associated elements in the same scope (namespace) as the class.
NumAssEl_sb -The number of associated elements in the same scope branch as the class.
NumAssEl_nsb -The number of associated elements not in the same scope branch as the class.
EC_Attr -The number of times the class is externally used as attribute type.
IC_Attr -The number of attributes in the class having another class or interface as their type.
EC_Par -The number of times the class is externally used as parameter type.
IC_Par -The number of parameters in the class having another class or interface as their type.
Connectors -The number of connectors owned by the class.
InstSpec -The number of instance specification where the class is a classifier.
LLInst -The number of lifelines that represent a property of which this class is the type.
MsgSent -The number of messages sent.
MsgRecv -The number of messages received.
MsgSelf -The number of messages sent to instances of the same class.
Diags -The number of times the class appears on a diagram.

Metricile pentru urmatoarea diagrama sunt:

Rezultat metricilor pentru diagrama de clase

Potrebbero piacerti anche