Abstract
This paper describes a solution to a real world problem using a combination of well-known patterns. The problem deals with combining state machines that represent core concerns and crosscutting concerns in a loosely coupled manner. The state based behaviors are modeled with state machines and implemented with the State Pattern[3]. The coordination between the loosely coupled state machines is achieved with the Interceptor Pattern[9][11]. The Abstract Factory Pattern[3] is used to shield the original state machine developers from being aware that their state machines are being combined in new and different ways.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Aldawud, O., Elrad, T., Bader, A.: Aspect-oriented Modeling- Bridging the Gap Between Design and Implementation. In: Proceedings of the First ACM SIGPLAN/SIGSOFT International Conference on Generative Programming and Component Engineering (GPCE), Pittsburgh, PA, October 6–8, 2002, pp. 189–202 (2002)
AOSD web site, http://aosd.net
Gamma, H., Johnson, V.: Design Patterns, Elements of Reusable Software Design. Addison-Wesley, Reading (1995)
Filman, R.E., Friedman, D.P.: Aspect-Oriented Programming is Quantification and Obliviousness. In: Workshop on Advanced Separation of Concerns, OOPSLA 2000, Minneapolis (October 2000)
France, R., Kim, D., Ghosh, S., Song, E.: A UML-Based Pattern Specification Technique. IEEE Transactions on Software Engineering 30, 193–2006 (2004)
Kiczales, G., et al.: Aspect-Oriented Programming. In: Aksit, M., Matsuoka, S. (eds.) ECOOP 1997. LNCS, vol. 1241, pp. 220–242. Springer, Heidelberg (1997)
Mahoney, M., Elrad, T.: A Pattern Based Approach to Aspect-Orientation for State Based Systems. In: Workshop on Best Practices in Applying Aspect-Oriented Software Development (BPAOSD 2007) at the Sixth International Conference on Aspect-Oriented Software Development (AOSD 2007), Vancouver, BC (March 2007)
Mahoney, M., Bader, A., Elrad, T., Aldawud, O.: Using Aspects to Abstract and Modularize Statecharts. In: The 5th Aspect-Oriented Modeling Workshop in Conjunction with UML 2004, Lisbon, Portugal (October 2004)
Bosak, R.: Daily Development Blog (April 2007), http://dailydevelopment.blogspot.com/2007/04/interceptor-design-pattern.html
Prehofer, C.: Plug-and-Play Composition of Features and Feature Interactions with Statechart Diagrams. In: International Workshop on Feature Interaction in Telecommunications and Software Systems, Ottawa, Canada, June 2003. IOS Press, Amsterdam (2003)
Schmidt, D.C., Stal, M., Rohnert, H., Buschmann, F.: Pattern-Oriented Software Architecture - Patterns for Concurrent and Networked Objects, vol. 2. Wiley and Sons Ltd., Chichester (2000)
Volter, M.: Patterns for Handling Cross-Cutting Concerns in Model-Driven Software Development. In: 10th European Conference on Pattern Languages of Programs (EuroPlop 2005), Irsee, Germany (July 2005)
Telelogic Tau, http://telelogic.com
ILogix Rhapsody, http://telelogic.com
Core J2EE Patterns - Interceptor Filters, Core J2EE Pattern Catalog, http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Mahoney, M., Elrad, T. (2009). A Pattern Story for Combining Crosscutting Concern State Machines. In: Noble, J., Johnson, R. (eds) Transactions on Pattern Languages of Programming I. Lecture Notes in Computer Science, vol 5770. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-10832-7_7
Download citation
DOI: https://doi.org/10.1007/978-3-642-10832-7_7
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-10831-0
Online ISBN: 978-3-642-10832-7
eBook Packages: Computer ScienceComputer Science (R0)