z-logo
Premium
Exploiting design patterns to automate validation of class invariants
Author(s) -
Malloy Brian A.,
Power James F.
Publication year - 2006
Publication title -
software testing, verification and reliability
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.216
H-Index - 49
eISSN - 1099-1689
pISSN - 0960-0833
DOI - 10.1002/stvr.327
Subject(s) - computer science , parsing , class (philosophy) , visitor pattern , programming language , constraint (computer aided design) , measure (data warehouse) , exploit , granularity , flexibility (engineering) , object (grammar) , object constraint language , software design pattern , pragmatics , data mining , natural language processing , artificial intelligence , unified modeling language , engineering , linguistics , mechanical engineering , statistics , computer security , mathematics , software , applications of uml , philosophy
In this paper, techniques are presented that exploit two design patterns, the Visitor pattern and the Decorator pattern, to validate invariants about the data attributes in a C++ class automatically. To investigate the pragmatics involved in using the two patterns, a study of an existing, well‐tested application, keystone , a parser and front‐end for the C++ language, is presented. Results from the study indicate that these two patterns provide flexibility in terms of the frequency and level of granularity of validation of the class invariants, which are expressed in the Object Constraint Language (OCL). The quantitative results measure the impact of these approaches and the additional faults uncovered through validation of the case study. Copyright © 2005 John Wiley & Sons, Ltd.

This content is not available in your region!

Continue researching here.

Having issues? You can contact us here