{"title":"和平队:学会解决不同环境之间的冲突","authors":"Nicolás Cardozo, Ivana Dusparic, Jorge H. Castro","doi":"10.1145/3117802.3117803","DOIUrl":null,"url":null,"abstract":"Context-oriented Programming enables dynamic behavioral adaptations with the purpose of presenting the most appropriate behavior to the situations in software systems' surrounding execution environment. However, as multiple situations may be sensed simultaneously, different such adaptations may be applicable, generating conflicts in systems' execution. Deciding which behavioral adaptation to use in every situation is normally left to developers, who are therefore required to foresee and resolve all possible conflicts between adaptations manually at design time. Due to systems' high dynamicity, combinations of situations and interactions between adaptations might be unfeasible to foresee and may vary during the system execution. In response to this, we posit an automated conflict resolution mechanism that accounts for the system uncertainty and dynamics. The mechanism builds on W-Learning, a Reinforcement Learning algorithm that captures the relationships between simultaneously proposed adaptations over time, updating their appropriateness as the system progresses. As a consequence, the system itself learns which of the potentially conflicting adaptations is most appropriate for the current combination of the sensed situations, according to the system's global payoff. We implement a proof-of-concept vehicle cruise-control system, illustrating the situations in which multiple conflicting adaptations are proposed. We demonstrate that the system learns which adaptation should be executed for every combination of the sensed contexts, such that high-level goals of the underlying system remain satisfied.","PeriodicalId":162398,"journal":{"name":"Proceedings of the 9th ACM International Workshop on Context-Oriented Programming","volume":"5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-06-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Peace COrP: learning to solve conflicts between contexts\",\"authors\":\"Nicolás Cardozo, Ivana Dusparic, Jorge H. Castro\",\"doi\":\"10.1145/3117802.3117803\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Context-oriented Programming enables dynamic behavioral adaptations with the purpose of presenting the most appropriate behavior to the situations in software systems' surrounding execution environment. However, as multiple situations may be sensed simultaneously, different such adaptations may be applicable, generating conflicts in systems' execution. Deciding which behavioral adaptation to use in every situation is normally left to developers, who are therefore required to foresee and resolve all possible conflicts between adaptations manually at design time. Due to systems' high dynamicity, combinations of situations and interactions between adaptations might be unfeasible to foresee and may vary during the system execution. In response to this, we posit an automated conflict resolution mechanism that accounts for the system uncertainty and dynamics. The mechanism builds on W-Learning, a Reinforcement Learning algorithm that captures the relationships between simultaneously proposed adaptations over time, updating their appropriateness as the system progresses. As a consequence, the system itself learns which of the potentially conflicting adaptations is most appropriate for the current combination of the sensed situations, according to the system's global payoff. We implement a proof-of-concept vehicle cruise-control system, illustrating the situations in which multiple conflicting adaptations are proposed. We demonstrate that the system learns which adaptation should be executed for every combination of the sensed contexts, such that high-level goals of the underlying system remain satisfied.\",\"PeriodicalId\":162398,\"journal\":{\"name\":\"Proceedings of the 9th ACM International Workshop on Context-Oriented Programming\",\"volume\":\"5 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2017-06-19\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 9th ACM International Workshop on Context-Oriented Programming\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3117802.3117803\",\"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 of the 9th ACM International Workshop on Context-Oriented Programming","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3117802.3117803","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Peace COrP: learning to solve conflicts between contexts
Context-oriented Programming enables dynamic behavioral adaptations with the purpose of presenting the most appropriate behavior to the situations in software systems' surrounding execution environment. However, as multiple situations may be sensed simultaneously, different such adaptations may be applicable, generating conflicts in systems' execution. Deciding which behavioral adaptation to use in every situation is normally left to developers, who are therefore required to foresee and resolve all possible conflicts between adaptations manually at design time. Due to systems' high dynamicity, combinations of situations and interactions between adaptations might be unfeasible to foresee and may vary during the system execution. In response to this, we posit an automated conflict resolution mechanism that accounts for the system uncertainty and dynamics. The mechanism builds on W-Learning, a Reinforcement Learning algorithm that captures the relationships between simultaneously proposed adaptations over time, updating their appropriateness as the system progresses. As a consequence, the system itself learns which of the potentially conflicting adaptations is most appropriate for the current combination of the sensed situations, according to the system's global payoff. We implement a proof-of-concept vehicle cruise-control system, illustrating the situations in which multiple conflicting adaptations are proposed. We demonstrate that the system learns which adaptation should be executed for every combination of the sensed contexts, such that high-level goals of the underlying system remain satisfied.