15|))((|
)}(),(),(
),(Re),({))((
CarcCl
ToyCarcRaceCarcJeepc
ntalCarcTaxicCarcCl
The concussion: all class diagram quantity
characteristics matching with structural key features
of Design Pattern Strategy.
5. Interface Segregation Design Principle
As it was shown in the previous sub point,
considering class diagram matches to Strategy
Design pattern.
When class diagrams, implementing Strategy
Design Pattern are created the condition:
truecP
cPiCi
public
c
)(
)()(),(
(19)
Condition (19) provides flexibility of strategy
Designe Pattern (Gamma et al, 1994).
But the same condition contradicts to (9).
6. Liskov Substitution Design Principle
In order to check whether this diagram satisfies
the Liskov Substitution Design Principle, check it by
(10)-(12).
Consider C. As there are no classes, containing
references to another ones, the conclusion to be
made: that class diagram does not satisfy to Liskov
Substitution Design Principle. In other words, if any
of the conditions (10)-(12) is not proved, class
diagram does not satisfy this principle.
7. Dependency Inversion Design Principle
Review class diagram. Define association links
in it.
21
))(())(( iiCarcFCarcF
aggr
As the condition formulated in (13) is proved
then the concussion: that this class diagram is
designed according to Dependency Inversion Design
Principle.
7 CONCLUSIONS
The approach of class diagrams verification
according to SOLID Design Principles is proposed
in this paper.
Formalization of checking correspondence of
class diagram to SOLID principles (5)-(13),
proposed in this paper, allows designing methods
and techniques for automated checking whether
analytical representation of class diagrams meets to
SOLID design principles. Applying of these
methods and techniques allows estimating class
diagram features before performing different
operations with it.
The application of the suggested approach will
allow:
- increase the quality results of risk assessment
method, proposed in the paper (Tombe et al., 2014).
Before risk assessment, class diagram can be
verified for meeting SOLID. Results can be
estimated in two ways, namely, increasing the range
of risk factors or defining which diagrams need
further estimation;
- improve the structure of metamodel for further
transformation (Wang et al., 2014). Metamodels
contain initial information for designing ontologies,
profiles and other activities in Model-Driven
Development. That is why class diagram refinement,
when its verification is one of the refinement
techniques operations, allows improving the class
diagram quality.
REFERENCES
Chebanyuk E. 2013. Algebra Describing Software Static
Models. International Journal “Information
Technologies and Knowledge”, Vol.7, Number 1,
2013. ISSN 1313-0455 (printed) ISSN 1313-048X
(online), pg. 83-93.
Chebanyuk E., Markov K., 2015. Software Model
Cognitive Value. International Journal “Information
Theories and Applications”, Vol.22, Number 4, 2015.
ISSN 1310-0513 (printed), ISSN 1313-0463 (online),
pg. 338-355.
Gamma E., Helm R., Johnson R., and Vlissides J., 1994.
(the GangOfFour) Design Patterns: Elements of
Reusable Object-Oriented Software. AddisonWesley
Professional, • ISBN 978-0201633610 , ISBN 0-201-
63361-2 . 431 pg.
Ikram S. 2005. Design Patterns (Strategy Pattern) Part – II.
C# Corner. http://www.c-sharpcorner.com/
UploadFile/saif_ikram/DesignPatternsPart208312005
062925AM/DesignPatternsPart2.aspx.
López-Fernández J.J., Guerra E., de Lara J., 2014.
Assessing the Quality of Meta-models. In Boulanger
F., Famelis M. and Ratiu D., editors, Proceedings of
11th Workshop on Model Driven Engineering,
Verification and Validation MoDeVVa 2014, co-
located with Models 2014, Valencia, Spain, September
30th 2014. pg. 3-12.
Martin R., 2000. Design Principles and Design Patterns.
http://www.objectmentor.com/resources/articles/Princ
iples_and_Patterns.pdf.
Martin R., Martin M. 2006. Agile Principles, Patterns, and
Practices in C#. Prentice Hall, 2006. ISBN-10: 0-13-
185725-8, ISBN-13: 978-0-13-185725-4. Pg: 768.
Miller G.A., 1956. “The Magical Number Seven Plus or
Minus Two: Some Limits on Our Capacity for