{"title":"具有多个角色的对象的方法调度和类型安全","authors":"R. Wong, H. L. Chau","doi":"10.1109/TOOLS.1997.681877","DOIUrl":null,"url":null,"abstract":"The association between an instance and a class is exclusive and permanent in many class based, object oriented database systems. Therefore, these systems have serious difficulties for applications in which objects take on different and multiple roles over time. Recently, some researchers have proposed the use of roles to tackle these problems. Although many of them have realized the importance and difficulties to solve the type problems caused by roles, formal semantics and type issues of roles have not been addressed. We develop an expressive yet semantically sound type calculus for objects with multiple roles. While the rich role modeling constructs are introduced, the calculus can still be expressed in a neat way by using the polymorphism of overloaded functions. We show the important properties of the calculus which include Subject Reduction, Strong Normalization and Confluence. The calculus described in the paper provides a foundation for object-with-role models. We show that the calculus is general enough to be applied to various role models with little modification.","PeriodicalId":276758,"journal":{"name":"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)","volume":"151 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1997-11-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Method dispatching and type safety for objects with multiple roles\",\"authors\":\"R. Wong, H. L. Chau\",\"doi\":\"10.1109/TOOLS.1997.681877\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The association between an instance and a class is exclusive and permanent in many class based, object oriented database systems. Therefore, these systems have serious difficulties for applications in which objects take on different and multiple roles over time. Recently, some researchers have proposed the use of roles to tackle these problems. Although many of them have realized the importance and difficulties to solve the type problems caused by roles, formal semantics and type issues of roles have not been addressed. We develop an expressive yet semantically sound type calculus for objects with multiple roles. While the rich role modeling constructs are introduced, the calculus can still be expressed in a neat way by using the polymorphism of overloaded functions. We show the important properties of the calculus which include Subject Reduction, Strong Normalization and Confluence. The calculus described in the paper provides a foundation for object-with-role models. We show that the calculus is general enough to be applied to various role models with little modification.\",\"PeriodicalId\":276758,\"journal\":{\"name\":\"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)\",\"volume\":\"151 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1997-11-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/TOOLS.1997.681877\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TOOLS.1997.681877","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Method dispatching and type safety for objects with multiple roles
The association between an instance and a class is exclusive and permanent in many class based, object oriented database systems. Therefore, these systems have serious difficulties for applications in which objects take on different and multiple roles over time. Recently, some researchers have proposed the use of roles to tackle these problems. Although many of them have realized the importance and difficulties to solve the type problems caused by roles, formal semantics and type issues of roles have not been addressed. We develop an expressive yet semantically sound type calculus for objects with multiple roles. While the rich role modeling constructs are introduced, the calculus can still be expressed in a neat way by using the polymorphism of overloaded functions. We show the important properties of the calculus which include Subject Reduction, Strong Normalization and Confluence. The calculus described in the paper provides a foundation for object-with-role models. We show that the calculus is general enough to be applied to various role models with little modification.