A new way of crosscutting roles in set oriented programming

In the past twenty years, dozens of collaboration-based languages have emerged. Often they have an abstraction to denote a collaboration. Most of them use a form of single inheritance to build collaboration from another one. In this model, when a collaboration uses another one, every role class in t...

Full description

Saved in:
Bibliographic Details
Main Authors: Saeid Masoumi, Ali Mahjur
Format: Article
Language:English
Published: Springer 2022-02-01
Series:Journal of King Saud University: Computer and Information Sciences
Subjects:
Online Access:http://www.sciencedirect.com/science/article/pii/S1319157819308109
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:In the past twenty years, dozens of collaboration-based languages have emerged. Often they have an abstraction to denote a collaboration. Most of them use a form of single inheritance to build collaboration from another one. In this model, when a collaboration uses another one, every role class in the sub collaboration inherits from a role class in the super collaboration which has the same name. This affects the reusability of roles and collaborations and makes them semi interactive.To overcome this problem, this paper uses a new collaboration-based language named Set Oriented Programming (SOP). In SOP, collaborations, instead of being inherited, are composed with each other. To improve the reusability of SOP roles and to make them interactive, events are used. Events cause interaction of roles by crosscutting them. Moreover, a new context problem is discussed and dynamic context solution is proposed by delegations. Finally, we show that events improve the reusability and delegations concur context problem.
ISSN:1319-1578