A Type System for Components
In modern distributed systems, dynamic reconfiguration, i.e., changing at runtime the communication pattern of a program, is challenging. Generally, it is difficult to guarantee that such modifications will not disrupt ongoing computations. In a previous paper, a solution to this problem was proposed by extending the object-oriented language ABS with a component model allowing the programmer to: i) perform updates on objects by means of communication ports and their rebinding; and ii) precisely specify when such updates can safely occur in an object by means of critical sections. However, improper rebind operations could still occur and lead to runtime errors. The present paper introduces a type system for this component model that extends the ABS type system with the notion of ports and a precise analysis that statically enforces that no object will attempt illegal rebinding.
KeywordsComponent Model Type System Operational Semantic Safe State Typing Rule
Unable to display preview. Download preview PDF.
- 2.Alliance, O.: Osgi Service Platform, Release 3. IOS Press, Inc.(2003)Google Scholar
- 3.Bhatti, N.T., Hiltunen, M.A., Schlichting, R.D., Chiu, W.: Coyote: A system for constructing fine-grain configurable communication services. ACM Trans. Comput. Syst. 16(4) (1998)Google Scholar
- 4.Bruneton, E., Coupaye, T., Leclercq, M., Quema, V., Stefani, J.-B.: The Fractal Component Model and its Support in Java. Software - Practice and Experience 36(11-12) (2006)Google Scholar
- 7.Clarke, D.G., Potter, J., Noble, J.: Ownership types for flexible alias protection. In: OOPSLA, pp. 48–64 (1998)Google Scholar
- 8.Coulson, G., Blair, G., Grace, P., Joolia, A., Lee, K., Ueyama, J.: A component model for building systems software. In: Proc. IASTED Software Engineering and Applications, SEA 2004 (2004)Google Scholar
- 9.Dardha, O., Giachino, E., Lienhardt, M.: A Type System for Components. Full version (2013), http://www.cs.unibo.it/~giachino/
- 11.Giachino, E., Lascu, T.A.: Lock Analysis for an Asynchronous Object Calculus. Presented at ICTCS (2012), http://www.cs.unibo.it/~giachino/
- 12.Hogg, J., Lea, D., Wills, A., de Champeaux, D., Holt, R.: The geneva convention – on the treatment of object aliasing. OOPS Messenger (1992)Google Scholar
- 13.Johnsen, E., Hähnle, R., Schäfer, J., Schlatte, R., Steffen, M.: Abs: A core language for abstract behavioral specification. In: Aichernig, B.K., de Boer, F.S., Bonsangue, M.M. (eds.) FMCO 2010. LNCS, vol. 6957, pp. 142–164. Springer, Heidelberg (2011)Google Scholar