Whitby智能教学系统的重构
Refactoring the Whitby Intelligent Tutoring System for Clean Architecture
摘要:
Whitby是智能教学系统应用程序的服务器端,用于学习系统理论过程分析(STPA),这是一种用于确保可以用系统模型表示的任何东西的安全性的方法。驱动惠特比背后推理的底层逻辑是情境演算,这是一种具有情境、动作和对象排序的多排序逻辑。情境演算应用于本体创作和应急支架:惠特比内的主要活动。因此,许多流畅度和动作在Whitby中从这两个子应用程序和Whitby本身聚合,但是所有这些都可以通过不依赖于任何流畅度或动作的公共情况查询接口获得。惠特比的每个STPA项目都是一个单一的情景术语,它被查询包括本体论的流利程度,并确定提供什么样的教学干预。最初惠特比是用Prolog编写的,使用模块系统。为了获得更清晰的架构和实现,并提高代码重用性和可扩展性,最初的应用程序被重构为Logtalk。这种重构包括将情境演算推理器、本体创作框架和应急脚手架框架解耦到可以在其他应用程序中重用的第三方库中。这种提取是通过Logtalk协议和类别反转依赖关系来实现的,Logtalk协议和类别是可重用的接口和组件,提供功能上内聚的谓词声明和谓词定义集。在本文中,Whitby的两个迭代的架构进行评估的动机背后的重构:干净的架构,使代码重用和可扩展性。
英文摘要:
Whitby is the server-side of an Intelligent Tutoring System application for learning System-Theoretic Process Analysis (STPA), a methodology used to ensure the safety of anything that can be represented with a systems model. The underlying logic driving the reasoning behind Whitby is Situation Calculus, which is a many-sorted logic with situation, action, and object sorts. The Situation Calculus is applied to Ontology Authoring and Contingent Scaffolding: the primary activities within Whitby. Thus many fluents and actions are aggregated in Whitby from these two sub-applications and from Whitby itself, but all are available through a common situation query interface that does not depend upon any of the fluents or actions. Each STPA project in Whitby is a single situation term, which is queried for fluents that include the ontology, and to determine what pedagogical interventions to offer. Initially Whitby was written in Prolog using a module system. In the interest of a cleaner architecture and implementation with improved code reuse and extensibility, the initial application was refactored into Logtalk. This refactoring includes decoupling the Situation Calculus reasoner, Ontology Authoring framework, and Contingent Scaffolding framework into third-party libraries that can be reused in other applications. This extraction was achieved by inverting dependencies via Logtalk protocols and categories, which are reusable interfaces and components that provide functionally cohesive sets of predicate declarations and predicate definitions. In this paper the architectures of two iterations of Whitby are evaluated with respect to the motivations behind the refactor: clean architecture enabling code reuse and extensibility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。