Abstract
We have explored the use of a generic ontology component to separate and encapsulate the design pattern logic of the GoF creational design patterns. We used a unique generic ontology as a runtime component in the creational patterns and then analyzed and compared the implementations with those of traditional GoF creational patterns. We concluded after experimental analysis that ontology driven solutions to creational design patterns not only mitigate the drawbacks identified in the creational patterns but also make the patterns a plug and play parameterized and reusable component whereby the desired objects can be created on the fly. Once the pattern parameters i.e. the participant classes are fed into the pattern ontology, the pattern functionality embedded within the ontological component becomes ready to use. This not only decouples the pattern logic from application logic but also decouples the pattern participant classes from each other. Thus the patterns become reusable even at the implementation level.
- Budinsky, F., Finnie, M., Yu, P., Vlissides, J. Automatic code generation from design patterns. IBM Systems Journal, 35, 2 (1996), 151--171. Google ScholarDigital Library
- Chaturvedi, A., and Prabhakar, T. V. Ontology -- driven MVC: A variant of MVC architectural style. In Proceedings of the International Conference on Software Engineering and New Technologies (ICSENT'12) (Hammamet, Tunisia, December 15--17, 2012) 2012, 158--174.Google Scholar
- Chaturvedi, A., and Prabhakar, T. V. Ontological visitor pattern. In Indian Conference on Patterns and Pattern Languages of Programs (GuruPLoP'13) (Bangalore, India, March 3--4, 2013) 2013.Google Scholar
- Chaturvedi, A. and Prabhakar T. V. 2013. Ontology -- driven observer pattern. In Proceedings of the International Workshop on Ontologies meet Advanced Information Systems (OAIS'13) (Genoa, Italy, September 1--4, 2013) Springer International Publishing Switzerland, 158--174.Google Scholar
- Gamma E., Helm, R., Johnson, R., Vlissides, J. Design Patterns Elements of Reusable Object-Oriented Software. Addison-Wesley, 1995. Google ScholarDigital Library
- Garcia, A., Sant'Anna, C., Figueiredo, E., Kulesza, U., Lucena, C., Staa, A. Modularizing design patterns with aspects: A quantitative study. LNCS Transactions on Aspect-Oriented Software Development, Springer, 1 (2005), 36--74. Google ScholarDigital Library
- Gruber, T. A translation approach to portable ontology specification. Knowledge Acquisition, 5, 2 (1993), 199--220. Google ScholarDigital Library
- Hannemann, J., and Kiczales, G. Design pattern implementation in java and aspect. In Proceedings of the 17th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications (OOPSLA'02). 37, 11 (2002), 161--173. Google ScholarDigital Library
- JArchitect: A tool to evaluate java code base, http://www.javadepend.com/. Accessed on 10 April 2012.Google Scholar
- Noble, J. Natural creation-a composite pattern for creating objects. In Proceedings of Technology of Object Oriented Languages and Systems (TOOLS), 1999, 78--88. Google ScholarDigital Library
- Protégé ontology editor, http://protege.stanford.edu/, Accessed on 5 March 2012.Google Scholar
- Soukup, J. Implementing patterns. In Coplien J. O., Schmidt, D. C. (eds.) Pattern Languages of Program Design. Addison Wesley, (1995), 395--412. Google ScholarDigital Library
Index Terms
- Ontology driven creational design patterns as parameterized and reusable components
Recommendations
Ontology driven builder pattern: a plug and play component
SAC '14: Proceedings of the 29th Annual ACM Symposium on Applied ComputingWe separate and encapsulate the builder pattern logic in an ontology component which increases the reusability of the pattern at the implementation level as well. By extracting the pattern logic into a separate component, it becomes easy to change the ...
Ontology driven creational design patterns: creating objects on the fly
RACS '13: Proceedings of the 2013 Research in Adaptive and Convergent SystemsWe have explored the use of a generic ontology component to separate and encapsulate the design pattern logic of the GoF creational design patterns. We used a unique generic ontology as a runtime component in the creational patterns and then analyzed ...
Reusable Integrated Components of Patterns
TOOLS '00: Proceedings of the Technology of Object-Oriented Languages and Systems (TOOLS 34'00)Patterns are reusable entities, which give solutions to generic and recurring problems. Patterns exist at different phases of Software Development Life Cycle (SDLC) namely analysis phase, design phase, coding phase etc. Patterns in each phase are ...
Comments